CMS 3D CMS Logo

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

#include <CSCReadoutMappingForSliceTest.h>

Inheritance diagram for CSCReadoutMappingForSliceTest:
CSCReadoutMapping CSCReadoutMappingFromFile

Public Member Functions

 CSCReadoutMappingForSliceTest ()
 Constructor. More...
 
 ~CSCReadoutMappingForSliceTest () override
 Destructor. More...
 
- Public Member Functions inherited from CSCReadoutMapping
void addRecord (int endcap, int station, int ring, int chamber, int vmecrate, int dmb, int tmb, int tsector, int cscid, int ddu, int dcc)
 
int chamber (int endcap, int station, int vmecrate, int dmb, int tmb) const
 
int crate (const CSCDetId &) const
 returns vmecrate given CSCDetId More...
 
 CSCReadoutMapping ()
 Default constructor. More...
 
int dccId (const CSCDetId &) const
 returns DCC# given CSCDetId More...
 
int dduId (const CSCDetId &) const
 returns DDU# given CSCDetId More...
 
bool debugV (void) const
 
CSCDetId detId (int endcap, int station, int vmecrate, int dmb, int tmb, int cfeb, int layer=0) const
 
int dmbId (const CSCDetId &) const
 returns dmbId given CSCDetId More...
 
CSCLabel findHardwareId (const CSCDetId &) const
 returns hardware ids given chamber id More...
 
const std::string & myName (void) const
 
void setDebugV (bool dbg)
 
virtual ~CSCReadoutMapping ()
 Destructor. More...
 

Private Member Functions

int hwId (int endcap, int station, int vme, int dmb, int tmb) const override
 

Detailed Description

Author
Tim Cox A CSCReadoutMapping using encoding of hardware labels appropriate for CSC Slice Test from Winter 2005 to Summer 2006 (at least).

Definition at line 13 of file CSCReadoutMappingForSliceTest.h.

Constructor & Destructor Documentation

◆ CSCReadoutMappingForSliceTest()

CSCReadoutMappingForSliceTest::CSCReadoutMappingForSliceTest ( )

Constructor.

Definition at line 6 of file CSCReadoutMappingForSliceTest.cc.

6 {}

◆ ~CSCReadoutMappingForSliceTest()

CSCReadoutMappingForSliceTest::~CSCReadoutMappingForSliceTest ( )
override

Destructor.

Definition at line 8 of file CSCReadoutMappingForSliceTest.cc.

8 {}

Member Function Documentation

◆ hwId()

int CSCReadoutMappingForSliceTest::hwId ( int  endcap,
int  station,
int  vme,
int  dmb,
int  tmb 
) const
overrideprivatevirtual

Build a unique integer out of the readout electronics labels.

In general this must depend on endcap and station, as well as vme crate number and dmb slot number. In principle perhaps tmb slot number might not be neighbour of dmb? But for slice test (Nov-2005 on) only relevant labels are vme and dmb.

Implements CSCReadoutMapping.

Definition at line 10 of file CSCReadoutMappingForSliceTest.cc.

10  {
11  int id = 0;
12 
13  // This is ONLY for Slice Test Nov-2005 and onwards...
14 
15  id = vmecrate * 16 + dmb;
16 
17  // LogDebug("CSC") << " hardware id for endcap " << endcap <<
18  // " station " << station << " vmecrate " << vmecrate << " dmb slot " << dmb <<
19  // " tmb slot " << tmb << " = " << id;
20  return id;
21 }

References triggerObjects_cff::id.

triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29