CMS 3D CMS Logo

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

#include <CSCTriggerElectronicsMapping.h>

Inheritance diagram for CSCTriggerElectronicsMapping:
CSCTriggerMapping CSCTriggerElectronicsMappingFromFile

Public Member Functions

 CSCTriggerElectronicsMapping ()
 Constructor. More...
 
 ~CSCTriggerElectronicsMapping () 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 SPboardId, int FPGA, int cscid, int zero1=0, int zero2=0) const override
 

Additional Inherited Members

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

Detailed Description

Definition at line 13 of file CSCTriggerElectronicsMapping.h.

Constructor & Destructor Documentation

◆ CSCTriggerElectronicsMapping()

CSCTriggerElectronicsMapping::CSCTriggerElectronicsMapping ( )

Constructor.

Definition at line 6 of file CSCTriggerElectronicsMapping.cc.

6 {}

◆ ~CSCTriggerElectronicsMapping()

CSCTriggerElectronicsMapping::~CSCTriggerElectronicsMapping ( )
override

Destructor.

Definition at line 8 of file CSCTriggerElectronicsMapping.cc.

8 {}

Member Function Documentation

◆ hwId()

int CSCTriggerElectronicsMapping::hwId ( int  SPboardId,
int  FPGA,
int  cscid,
int  zero1 = 0,
int  zero2 = 0 
) const
overrideprivatevirtual

Build a unique integer out of labels present in or easily derivable from the readout.

Implements CSCTriggerMapping.

Definition at line 10 of file CSCTriggerElectronicsMapping.cc.

References gather_cfg::cout, CSCTriggerMapping::debugV(), triggerObjects_cff::id, and CSCTriggerMapping::myName().

10  {
11  int id = 0;
12 
13  id = ((cscid) | (FPGA << 4) | (SPboardID << 8));
14 
15  if (debugV())
16  std::cout << myName() << ": hardware id for SP Board Id " << SPboardID << " FPGA " << FPGA << " cscid " << cscid
17  << " = " << id << std::endl;
18  return id;
19 }
const std::string & myName(void) const
bool debugV(void) const