#include <ModuleMapper.h>
|
| ModuleMapper (const int year=2019) |
|
| ~ModuleMapper () |
|
std::string | getHwFromString (const std::string &key) |
| Get the Hw From String.
|
|
std::string | getSwFromString (const std::string &key) |
| Get the Sw From String.
|
|
std::string | getHwFromSw (const std::string &key) |
| Get the Hw From Sw.
|
|
std::string | getSwFromHw (const std::string &key) |
| Get the Sw From Hw.
|
|
std::string | getStringFromHw (const std::string &key) |
| Get the String From Hw.
|
|
std::string | getStringFromSw (const std::string &key) |
| Get the String From Sw.
|
|
std::vector< std::string > | getHybridStrings () |
| Get the Hybrid Strings.
|
|
void | getStrings (std::vector< std::string > &strings) |
| Get list of string modules.
|
|
void | getHws (std::vector< std::string > &hws) |
| Get list of hw names.
|
|
void | getSws (std::vector< std::string > &sws) |
| Get list of sw names.
|
|
std::map< std::string, std::map< int, int > > | buildChannelSvtIDMap () |
| Build global svt id map for all FebHybrid combinations.
|
|
int | getSvtIDFromHWChannel (int channel, std::string hwTag, std::map< std::string, std::map< int, int > > svtid_map) |
| Return global svt id for channel by providing local channel number and F<n>H<m> of channel.
|
|
void | buildApvChannelMap () |
| Used to generate apv channel map and read in thresholds from database.
|
|
void | ReadThresholdsFile (std::string filename) |
| Used to read svt channel DAQ threshold values from daq thresholds file.
|
|
std::pair< std::string, int > | findApvChannel (std::string feb, std::string hybrid, int channel) |
| get APV channel number given feb, hybrid, and channel number
|
|
int | getThresholdValue (std::string feb, std::string hybrid, int channel) |
| Get channel DAQ threshold.
|
|
|
typedef std::map< std::string, std::string >::iterator | strmap_it |
| description
|
|
|
int | year_ {2019} |
| description
|
|
std::map< std::string, std::string > | hw_to_sw |
| description
|
|
std::map< std::string, std::string > | sw_to_hw |
| description
|
|
std::map< std::string, std::string > | hw_to_string |
| description
|
|
std::map< std::string, std::string > | string_to_hw |
| description
|
|
std::map< std::string, std::string > | sw_to_string |
| description
|
|
std::map< std::string, std::string > | string_to_sw |
| description
|
|
std::map< std::string, std::map< std::string, std::vector< int > > > | apvChannelMap_ |
| description
|
|
std::map< std::string, std::vector< int > > | thresholdsIn_ |
| description
|
|
Definition at line 11 of file ModuleMapper.h.
◆ strmap_it
typedef std::map<std::string,std::string>::iterator strmap_it |
|
private |
◆ ModuleMapper()
◆ ~ModuleMapper()
◆ buildApvChannelMap()
void buildApvChannelMap |
( |
| ) |
|
Used to generate apv channel map and read in thresholds from database.
Definition at line 572 of file ModuleMapper.cxx.
◆ buildChannelSvtIDMap()
std::map< std::string, std::map< int, int > > buildChannelSvtIDMap |
( |
| ) |
|
Build global svt id map for all FebHybrid combinations.
- Returns
- std::map<std::string, std::map<int,int>>
Definition at line 505 of file ModuleMapper.cxx.
◆ findApvChannel()
std::pair< std::string, int > findApvChannel |
( |
std::string |
feb, |
|
|
std::string |
hybrid, |
|
|
int |
channel |
|
) |
| |
get APV channel number given feb, hybrid, and channel number
- Parameters
-
- Returns
- std::pair<std::string,int>
Definition at line 708 of file ModuleMapper.cxx.
◆ getHwFromString()
std::string getHwFromString |
( |
const std::string & |
key | ) |
|
|
inline |
Get the Hw From String.
- Parameters
-
- Returns
- std::string
Definition at line 25 of file ModuleMapper.h.
◆ getHwFromSw()
std::string getHwFromSw |
( |
const std::string & |
key | ) |
|
|
inline |
Get the Hw From Sw.
- Parameters
-
- Returns
- std::string
Definition at line 41 of file ModuleMapper.h.
◆ getHws()
void getHws |
( |
std::vector< std::string > & |
hws | ) |
|
|
inline |
◆ getHybridStrings()
std::vector< std::string > getHybridStrings |
( |
| ) |
|
Get the Hybrid Strings.
- Returns
- std::vector<std::string>
Definition at line 548 of file ModuleMapper.cxx.
◆ getStringFromHw()
std::string getStringFromHw |
( |
const std::string & |
key | ) |
|
|
inline |
Get the String From Hw.
- Parameters
-
- Returns
- std::string
Definition at line 57 of file ModuleMapper.h.
◆ getStringFromSw()
std::string getStringFromSw |
( |
const std::string & |
key | ) |
|
|
inline |
Get the String From Sw.
- Parameters
-
- Returns
- std::string
Definition at line 65 of file ModuleMapper.h.
◆ getStrings()
void getStrings |
( |
std::vector< std::string > & |
strings | ) |
|
|
inline |
Get list of string modules.
- Returns
- strings
Definition at line 79 of file ModuleMapper.h.
◆ getSvtIDFromHWChannel()
int getSvtIDFromHWChannel |
( |
int |
channel, |
|
|
std::string |
hwTag, |
|
|
std::map< std::string, std::map< int, int > > |
svtid_map |
|
) |
| |
Return global svt id for channel by providing local channel number and F<n>H<m> of channel.
- Parameters
-
- Returns
- int
Definition at line 532 of file ModuleMapper.cxx.
◆ getSwFromHw()
std::string getSwFromHw |
( |
const std::string & |
key | ) |
|
|
inline |
Get the Sw From Hw.
- Parameters
-
- Returns
- std::string
Definition at line 49 of file ModuleMapper.h.
◆ getSwFromString()
std::string getSwFromString |
( |
const std::string & |
key | ) |
|
|
inline |
Get the Sw From String.
- Parameters
-
- Returns
- std::string
Definition at line 33 of file ModuleMapper.h.
◆ getSws()
void getSws |
( |
std::vector< std::string > & |
sws | ) |
|
|
inline |
◆ getThresholdValue()
int getThresholdValue |
( |
std::string |
feb, |
|
|
std::string |
hybrid, |
|
|
int |
channel |
|
) |
| |
Get channel DAQ threshold.
- Parameters
-
- Returns
- std::pair<std::string,int>
Definition at line 749 of file ModuleMapper.cxx.
◆ ReadThresholdsFile()
void ReadThresholdsFile |
( |
std::string |
filename | ) |
|
Used to read svt channel DAQ threshold values from daq thresholds file.
- Parameters
-
Definition at line 676 of file ModuleMapper.cxx.
◆ apvChannelMap_
std::map<std::string,std::map<std::string,std::vector<int> > > apvChannelMap_ |
|
private |
◆ hw_to_string
std::map<std::string,std::string> hw_to_string |
|
private |
◆ hw_to_sw
std::map<std::string, std::string> hw_to_sw |
|
private |
◆ string_to_hw
std::map<std::string,std::string> string_to_hw |
|
private |
◆ string_to_sw
std::map<std::string,std::string> string_to_sw |
|
private |
◆ sw_to_hw
std::map<std::string, std::string> sw_to_hw |
|
private |
◆ sw_to_string
std::map<std::string,std::string> sw_to_string |
|
private |
◆ thresholdsIn_
std::map<std::string, std::vector<int> > thresholdsIn_ |
|
private |
◆ year_
The documentation for this class was generated from the following files: