12 int hid =
hwId( endcap, station, sector, subsector, cscid );
14 std::map<int,int>::const_iterator it =
hw2sw_.find( hid );
15 if ( it !=
hw2sw_.end() ) {
18 ", found sw id = " << cid << std::endl;
22 " in mapping." << std::endl;
28 int cid =
chamber( endcap, station, sector, subsector, cscid );
29 int lid = cid + layer;
34 int cendcap,
int cstation,
int csector,
int csubsector,
int ccscid ) {
36 Connection newRecord( rendcap, rstation, rsector, rsubsector, rcscid, cendcap, cstation, csector, csubsector, ccscid );
38 int hid =
hwId( rendcap, rstation, rsector, rsubsector, rcscid );
39 int sid =
swId( cendcap, cstation, csector, csubsector, ccscid );
41 if (
hw2sw_.insert( std::make_pair( hid, sid) ).second ) {
std::map< int, int > hw2sw_
int chamber(int endcap, int station, int sector, int subsector, int cscid) const
static int rawIdMaker(int iendcap, int istation, int iring, int ichamber, int ilayer)
static int ringFromTriggerLabels(int station, int triggerCSCID)
CSCTriggerMapping()
Default constructor.
void addRecord(int rendcap, int rstation, int rsector, int rsubsector, int rcscid, int cendcap, int cstation, int csector, int csubsector, int ccscid)
virtual int hwId(int endcap, int station, int sector, int subsector, int cscid) const =0
std::vector< Connection > mapping_
virtual ~CSCTriggerMapping()
Destructor.
int swId(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)