#include <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 |
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.
{ int id = 0; // This is ONLY for Slice Test Nov-2005 and onwards... id = vmecrate * 16 + dmb; // LogDebug("CSC") << " hardware id for endcap " << endcap << // " station " << station << " vmecrate " << vmecrate << " dmb slot " << dmb << // " tmb slot " << tmb << " = " << id; return id; }