Go to the documentation of this file.
14 std::map<int, int>::const_iterator it =
hw2sw_.find(hid);
18 std::cout <<
myName_ <<
": for requested hw id = " << hid <<
", found sw id = " << cid << std::endl;
20 std::cout <<
myName_ <<
": ERROR, cannot find requested hw id = " << hid <<
" in mapping." << std::endl;
27 int lid = cid +
layer;
41 Connection newRecord(rendcap, rstation, rsector, rsubsector, rcscid, cendcap, cstation, csector, csubsector, ccscid);
43 int hid =
hwId(rendcap, rstation, rsector, rsubsector, rcscid);
44 int sid =
swId(cendcap, cstation, csector, csubsector, ccscid);
47 if (
hw2sw_.insert(std::make_pair(hid, sid)).second) {
CSCDetId detId(int endcap, int station, int sector, int subsector, int cscid, int layer=0) const
virtual int hwId(int endcap, int station, int sector, int subsector, int cscid) const =0
CSCTriggerMapping()
Default constructor.
static int rawIdMaker(int iendcap, int istation, int iring, int ichamber, int ilayer)
int swId(int endcap, int station, int sector, int subsector, int cscid) const
void addRecord(int rendcap, int rstation, int rsector, int rsubsector, int rcscid, int cendcap, int cstation, int csector, int csubsector, int ccscid)
constexpr std::array< uint8_t, layerIndexSize > layer
std::map< int, int > hw2sw_
virtual ~CSCTriggerMapping()
Destructor.
static int ringFromTriggerLabels(int station, int triggerCSCID)
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)
int chamber(int endcap, int station, int sector, int subsector, int cscid) const
std::vector< Connection > mapping_