CMS 3D CMS Logo

Public Member Functions | Private Member Functions

CSCTriggerElectronicsMapping Class Reference

#include <CSCTriggerElectronicsMapping.h>

Inheritance diagram for CSCTriggerElectronicsMapping:
CSCTriggerMapping CSCTriggerElectronicsMappingFromFile

List of all members.

Public Member Functions

 CSCTriggerElectronicsMapping ()
 Constructor.
virtual ~CSCTriggerElectronicsMapping ()
 Destructor.

Private Member Functions

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

Detailed Description

Definition at line 13 of file CSCTriggerElectronicsMapping.h.


Constructor & Destructor Documentation

CSCTriggerElectronicsMapping::CSCTriggerElectronicsMapping ( )

Constructor.

Definition at line 6 of file CSCTriggerElectronicsMapping.cc.

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

Destructor.

Definition at line 8 of file CSCTriggerElectronicsMapping.cc.

{}

Member Function Documentation

int CSCTriggerElectronicsMapping::hwId ( int  SPboardId,
int  FPGA,
int  cscid,
int  zero1 = 0,
int  zero2 = 0 
) const [private, virtual]

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

                                                                                                       {
 
  int id = 0;
    
  id = ((cscid) | (FPGA << 4) | (SPboardID << 8));
  
  if ( debugV() ) std::cout << myName() << ": hardware id for SP Board Id " << SPboardID 
                            << " FPGA " << FPGA << " cscid " << cscid  << " = " << id << std::endl;
  return id;
}