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) {
static int rawIdMaker(int iendcap, int istation, int iring, int ichamber, int ilayer)
static int ringFromTriggerLabels(int station, int triggerCSCID)
CSCTriggerMapping()
Default constructor.
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)
std::map< int, int > hw2sw_
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
virtual ~CSCTriggerMapping()
Destructor.
int chamber(int endcap, int station, int sector, int subsector, int cscid) const
CSCDetId detId(int endcap, int station, int sector, int subsector, int cscid, int layer=0) const
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)
std::vector< Connection > mapping_
virtual int hwId(int endcap, int station, int sector, int subsector, int cscid) const =0