CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCTriggerSimpleMapping.cc
Go to the documentation of this file.
3 #include <iostream>
4 #include <fstream>
5 #include <sstream>
6 
8 
10 
11 int CSCTriggerSimpleMapping::hwId( int endcap, int station, int sector, int subsector, int cscid ) const {
12 
13  int id = 0;
15  int chamber = CSCTriggerNumbering::chamberFromTriggerLabels(sector,subsector,station,cscid);
16  // This is ONLY for Slice Test Nov-2005
17 
18  id = CSCDetId::rawIdMaker(endcap,station,ring,chamber,0);
19 
20  if ( debugV() ) std::cout << myName() << ": hardware id for endcap " << endcap <<
21  " station " << station << " sector " << sector << " subsector " << subsector <<
22  " cscid " << cscid << " = " << id << std::endl;
23  return id;
24 }
int chamber(int endcap, int station, int sector, int subsector, int cscid) const
static int rawIdMaker(int iendcap, int istation, int iring, int ichamber, int ilayer)
Definition: CSCDetId.h:146
bool debugV(void) const
static int ringFromTriggerLabels(int station, int triggerCSCID)
virtual ~CSCTriggerSimpleMapping()
Destructor.
int hwId(int endcap, int station, int sector, int subsector, int cscid) const
const std::string & myName(void) const
tuple cout
Definition: gather_cfg.py:41
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)