CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
CSCTriggerSimpleMapping Class Reference

#include <CSCTriggerSimpleMapping.h>

Inheritance diagram for CSCTriggerSimpleMapping:
CSCTriggerMapping CSCTriggerMappingFromFile

Public Member Functions

 CSCTriggerSimpleMapping ()
 Constructor. More...
 
 ~CSCTriggerSimpleMapping () override
 Destructor. More...
 
- Public Member Functions inherited from CSCTriggerMapping
void addRecord (int rendcap, int rstation, int rsector, int rsubsector, int rcscid, int cendcap, int cstation, int csector, int csubsector, int ccscid)
 
int chamber (int endcap, int station, int sector, int subsector, int cscid) const
 
 CSCTriggerMapping ()
 Default constructor. More...
 
bool debugV (void) const
 
CSCDetId detId (int endcap, int station, int sector, int subsector, int cscid, int layer=0) const
 
virtual void fill (void)=0
 
const std::string & myName (void) const
 
void setDebugV (bool dbg)
 
virtual ~CSCTriggerMapping ()
 Destructor. More...
 

Private Member Functions

int hwId (int endcap, int station, int sector, int subsector, int cscid) const override
 

Additional Inherited Members

- Public Types inherited from CSCTriggerMapping
typedef struct CSCTriggerMapping::CSCTriggerConnection Connection
 

Detailed Description

Definition at line 13 of file CSCTriggerSimpleMapping.h.

Constructor & Destructor Documentation

◆ CSCTriggerSimpleMapping()

CSCTriggerSimpleMapping::CSCTriggerSimpleMapping ( )

Constructor.

Definition at line 7 of file CSCTriggerSimpleMapping.cc.

7 {}

◆ ~CSCTriggerSimpleMapping()

CSCTriggerSimpleMapping::~CSCTriggerSimpleMapping ( )
override

Destructor.

Definition at line 9 of file CSCTriggerSimpleMapping.cc.

9 {}

Member Function Documentation

◆ hwId()

int CSCTriggerSimpleMapping::hwId ( int  endcap,
int  station,
int  sector,
int  subsector,
int  cscid 
) const
overrideprivatevirtual

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(), makeMuonMisalignmentScenario::endcap, triggerObjects_cff::id, CSCTriggerMapping::myName(), CSCDetId::rawIdMaker(), relativeConstraints::ring, CSCTriggerNumbering::ringFromTriggerLabels(), and relativeConstraints::station.

11  {
12  int id = 0;
14  int chamber = CSCTriggerNumbering::chamberFromTriggerLabels(sector, subsector, station, cscid);
15  // This is ONLY for Slice Test Nov-2005
16 
18 
19  if (debugV())
20  std::cout << myName() << ": hardware id for endcap " << endcap << " station " << station << " sector " << sector
21  << " subsector " << subsector << " cscid " << cscid << " = " << id << std::endl;
22  return id;
23 }
const std::string & myName(void) const
static int rawIdMaker(int iendcap, int istation, int iring, int ichamber, int ilayer)
Definition: CSCDetId.h:146
static int ringFromTriggerLabels(int station, int triggerCSCID)
int chamber(int endcap, int station, int sector, int subsector, int cscid) const
bool debugV(void) const
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)