CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCSegtoRPC.h
Go to the documentation of this file.
1 #ifndef CSCSEGTORPC_H
2 #define CSCSEGTORPC_H
3 
4 
8 
9 
10 class CSCSegtoRPC {
11 public:
12  explicit CSCSegtoRPC(edm::Handle<CSCSegmentCollection> allCSCSegments,const edm::EventSetup& iSetup, const edm::Event& iEvent, bool debug, double eyr);
13  ~CSCSegtoRPC();
15 
16 private:
19  bool inclcsc;
20  double MaxD;
21 };
22 
23 class CSCStationIndex{
24 public:
26  CSCStationIndex(int region, int station, int ring, int chamber):
27  _region(region),
28  _station(station),
29  _ring(ring),
30  _chamber(chamber){}
32  int region() const {return _region;}
33  int station() const {return _station;}
34  int ring() const {return _ring;}
35  int chamber() const {return _chamber;}
36  bool operator<(const CSCStationIndex& cscind) const{
37  if(cscind.region()!=this->region())
38  return cscind.region()<this->region();
39  else if(cscind.station()!=this->station())
40  return cscind.station()<this->station();
41  else if(cscind.ring()!=this->ring())
42  return cscind.ring()<this->ring();
43  else if(cscind.chamber()!=this->chamber())
44  return cscind.chamber()<this->chamber();
45  return false;
46  }
47 
48 private:
49  int _region;
50  int _station;
51  int _ring;
52  int _chamber;
53 };
54 
56 public:
57  static ObjectMapCSC* GetInstance(const edm::EventSetup& iSetup);
58  std::set<RPCDetId> GetRolls(CSCStationIndex cscstationindex){return mapInstance->rollstoreCSC[cscstationindex];}
59 //protected:
60  std::map<CSCStationIndex,std::set<RPCDetId> > rollstoreCSC;
61  ObjectMapCSC(const edm::EventSetup& iSetup);
62 private:
64 };
65 
66 #endif
int chamber() const
Definition: RPCEfficiency.h:86
CSCStationIndex(int region, int station, int ring, int chamber)
Definition: CSCSegtoRPC.h:26
int station() const
Definition: RPCEfficiency.h:84
double MaxD
Definition: CSCSegtoRPC.h:20
int iEvent
Definition: GenABIO.cc:243
bool inclcsc
Definition: CSCSegtoRPC.h:19
int ring() const
Definition: RPCEfficiency.h:85
static ObjectMapCSC * GetInstance(const edm::EventSetup &iSetup)
Definition: CSCSegtoRPC.cc:16
RPCRecHitCollection * thePoints()
Definition: CSCSegtoRPC.h:14
RPCRecHitCollection * _ThePoints
Definition: CSCSegtoRPC.h:17
CSCSegtoRPC(edm::Handle< CSCSegmentCollection > allCSCSegments, const edm::EventSetup &iSetup, const edm::Event &iEvent, bool debug, double eyr)
Definition: CSCSegtoRPC.cc:59
std::map< CSCStationIndex, std::set< RPCDetId > > rollstoreCSC
Definition: CSCSegtoRPC.h:60
static ObjectMapCSC * mapInstance
Definition: CSCSegtoRPC.h:63
edm::OwnVector< RPCRecHit > RPCPointVector
Definition: CSCSegtoRPC.h:18
bool operator<(const CSCStationIndex &cscind) const
Definition: CSCSegtoRPC.h:36
ObjectMapCSC(const edm::EventSetup &iSetup)
Definition: CSCSegtoRPC.cc:23
int region() const
Definition: RPCEfficiency.h:83
#define debug
Definition: MEtoEDMFormat.h:34
std::set< RPCDetId > GetRolls(CSCStationIndex cscstationindex)
Definition: CSCSegtoRPC.h:58