CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CondFormats/CSCObjects/src/CSCTriggerSimpleMapping.cc

Go to the documentation of this file.
00001 #include "CondFormats/CSCObjects/interface/CSCTriggerSimpleMapping.h"
00002 #include "DataFormats/MuonDetId/interface/CSCTriggerNumbering.h"
00003 #include <iostream>
00004 #include <fstream>
00005 #include <sstream>
00006 
00007 CSCTriggerSimpleMapping::CSCTriggerSimpleMapping(){}
00008 
00009 CSCTriggerSimpleMapping::~CSCTriggerSimpleMapping(){}
00010 
00011 int CSCTriggerSimpleMapping::hwId( int endcap, int station, int sector, int subsector, int cscid ) const {
00012  
00013   int id = 0;
00014   int ring = CSCTriggerNumbering::ringFromTriggerLabels(station,cscid);
00015   int chamber = CSCTriggerNumbering::chamberFromTriggerLabels(sector,subsector,station,cscid);
00016   // This is ONLY for Slice Test Nov-2005
00017   
00018   id = CSCDetId::rawIdMaker(endcap,station,ring,chamber,0);
00019   
00020   if ( debugV() ) std::cout << myName() << ": hardware id for endcap " << endcap <<
00021     " station " << station << " sector " << sector << " subsector " << subsector <<
00022     " cscid " << cscid << " = " << id << std::endl;
00023   return id;
00024 }