#include <CSCTriggerSimpleMapping.h>
Public Member Functions | |
CSCTriggerSimpleMapping () | |
Constructor. | |
virtual | ~CSCTriggerSimpleMapping () |
Destructor. | |
Private Member Functions | |
int | hwId (int endcap, int station, int sector, int subsector, int cscid) const |
Definition at line 13 of file CSCTriggerSimpleMapping.h.
CSCTriggerSimpleMapping::CSCTriggerSimpleMapping | ( | ) |
CSCTriggerSimpleMapping::~CSCTriggerSimpleMapping | ( | ) | [virtual] |
int CSCTriggerSimpleMapping::hwId | ( | int | endcap, |
int | station, | ||
int | sector, | ||
int | subsector, | ||
int | cscid | ||
) | const [private, virtual] |
Build a unique integer out of labels present or easily derivable from the readout.
Implements CSCTriggerMapping.
Definition at line 11 of file CSCTriggerSimpleMapping.cc.
References CSCTriggerMapping::chamber(), CSCTriggerNumbering::chamberFromTriggerLabels(), gather_cfg::cout, CSCTriggerMapping::debugV(), CSCTriggerMapping::myName(), CSCDetId::rawIdMaker(), relativeConstraints::ring, and CSCTriggerNumbering::ringFromTriggerLabels().
{ int id = 0; int ring = CSCTriggerNumbering::ringFromTriggerLabels(station,cscid); int chamber = CSCTriggerNumbering::chamberFromTriggerLabels(sector,subsector,station,cscid); // This is ONLY for Slice Test Nov-2005 id = CSCDetId::rawIdMaker(endcap,station,ring,chamber,0); if ( debugV() ) std::cout << myName() << ": hardware id for endcap " << endcap << " station " << station << " sector " << sector << " subsector " << subsector << " cscid " << cscid << " = " << id << std::endl; return id; }