CMS 3D CMS Logo

Public Member Functions | Private Member Functions

CSCReadoutMappingForSliceTest Class Reference

#include <CSCReadoutMappingForSliceTest.h>

Inheritance diagram for CSCReadoutMappingForSliceTest:
CSCReadoutMapping CSCReadoutMappingFromFile

List of all members.

Public Member Functions

 CSCReadoutMappingForSliceTest ()
 Constructor.
virtual ~CSCReadoutMappingForSliceTest ()
 Destructor.

Private Member Functions

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

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

Constructor.

Definition at line 6 of file CSCReadoutMappingForSliceTest.cc.

{}
CSCReadoutMappingForSliceTest::~CSCReadoutMappingForSliceTest ( ) [virtual]

Destructor.

Definition at line 8 of file CSCReadoutMappingForSliceTest.cc.

{}

Member Function Documentation

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;
}