CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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...
 
virtual ~CSCTriggerElectronicsMapping ()
 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
 

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 ( )

Constructor.

Definition at line 6 of file CSCTriggerElectronicsMapping.cc.

6 {}
CSCTriggerElectronicsMapping::~CSCTriggerElectronicsMapping ( )
virtual

Destructor.

Definition at line 8 of file CSCTriggerElectronicsMapping.cc.

8 {}

Member Function Documentation

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

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(), errorMatrix2Lands_multiChannel::id, and CSCTriggerMapping::myName().

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