Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:56

0001 #include "CondFormats/CSCObjects/interface/CSCTriggerSimpleMapping.h"
0002 #include "DataFormats/MuonDetId/interface/CSCTriggerNumbering.h"
0003 #include <iostream>
0004 #include <fstream>
0005 #include <sstream>
0006 
0007 CSCTriggerSimpleMapping::CSCTriggerSimpleMapping() {}
0008 
0009 CSCTriggerSimpleMapping::~CSCTriggerSimpleMapping() {}
0010 
0011 int CSCTriggerSimpleMapping::hwId(int endcap, int station, int sector, int subsector, int cscid) const {
0012   int id = 0;
0013   int ring = CSCTriggerNumbering::ringFromTriggerLabels(station, cscid);
0014   int chamber = CSCTriggerNumbering::chamberFromTriggerLabels(sector, subsector, station, cscid);
0015   // This is ONLY for Slice Test Nov-2005
0016 
0017   id = CSCDetId::rawIdMaker(endcap, station, ring, chamber, 0);
0018 
0019   if (debugV())
0020     std::cout << myName() << ": hardware id for endcap " << endcap << " station " << station << " sector " << sector
0021               << " subsector " << subsector << " cscid " << cscid << " = " << id << std::endl;
0022   return id;
0023 }