#include <CondFormats/CSCObjects/interface/CSCReadoutMappingForSliceTest.h>
Public Member Functions | |
CSCReadoutMappingForSliceTest () | |
Constructor. | |
virtual | ~CSCReadoutMappingForSliceTest () |
Destructor. | |
Private Member Functions | |
int | hwId (int endcap, int station, int vme, int dmb, int tmb) const |
Build a unique integer out of the readout electronics labels. |
Definition at line 13 of file CSCReadoutMappingForSliceTest.h.
CSCReadoutMappingForSliceTest::CSCReadoutMappingForSliceTest | ( | ) |
CSCReadoutMappingForSliceTest::~CSCReadoutMappingForSliceTest | ( | ) | [virtual] |
int CSCReadoutMappingForSliceTest::hwId | ( | int | endcap, | |
int | station, | |||
int | vme, | |||
int | dmb, | |||
int | tmb | |||
) | const [private, virtual] |
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.
00010 { 00011 00012 int id = 0; 00013 00014 // This is ONLY for Slice Test Nov-2005 and onwards... 00015 00016 id = vmecrate * 16 + dmb; 00017 00018 // LogDebug("CSC") << " hardware id for endcap " << endcap << 00019 // " station " << station << " vmecrate " << vmecrate << " dmb slot " << dmb << 00020 // " tmb slot " << tmb << " = " << id; 00021 return id; 00022 }