CMS 3D CMS Logo

Public Member Functions | Private Member Functions

CSCTriggerSimpleMapping Class Reference

#include <CSCTriggerSimpleMapping.h>

Inheritance diagram for CSCTriggerSimpleMapping:
CSCTriggerMapping CSCTriggerMappingFromFile

List of all members.

Public Member Functions

 CSCTriggerSimpleMapping ()
 Constructor.
virtual ~CSCTriggerSimpleMapping ()
 Destructor.

Private Member Functions

int hwId (int endcap, int station, int sector, int subsector, int cscid) const

Detailed Description

Definition at line 13 of file CSCTriggerSimpleMapping.h.


Constructor & Destructor Documentation

CSCTriggerSimpleMapping::CSCTriggerSimpleMapping ( )

Constructor.

Definition at line 7 of file CSCTriggerSimpleMapping.cc.

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

Destructor.

Definition at line 9 of file CSCTriggerSimpleMapping.cc.

{}

Member Function Documentation

int CSCTriggerSimpleMapping::hwId ( int  endcap,
int  station,
int  sector,
int  subsector,
int  cscid 
) const [private, virtual]

Build a unique integer out of labels present or easily derivable from the readout.

Implements CSCTriggerMapping.

Definition at line 11 of file CSCTriggerSimpleMapping.cc.

References CSCTriggerMapping::chamber(), CSCTriggerNumbering::chamberFromTriggerLabels(), gather_cfg::cout, CSCTriggerMapping::debugV(), errorMatrix2Lands_multiChannel::id, CSCTriggerMapping::myName(), CSCDetId::rawIdMaker(), relativeConstraints::ring, and CSCTriggerNumbering::ringFromTriggerLabels().

                                                                                                       {
 
  int id = 0;
  int ring = CSCTriggerNumbering::ringFromTriggerLabels(station,cscid);
  int chamber = CSCTriggerNumbering::chamberFromTriggerLabels(sector,subsector,station,cscid);
  // This is ONLY for Slice Test Nov-2005
  
  id = CSCDetId::rawIdMaker(endcap,station,ring,chamber,0);
  
  if ( debugV() ) std::cout << myName() << ": hardware id for endcap " << endcap <<
    " station " << station << " sector " << sector << " subsector " << subsector <<
    " cscid " << cscid << " = " << id << std::endl;
  return id;
}