CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTSegtoRPC.h
Go to the documentation of this file.
1 #ifndef DTSEGTORPC_H
2 #define DTSEGTORPC_H
3 
4 
8 
9 
10 class DTSegtoRPC {
11 public:
12  explicit DTSegtoRPC(edm::Handle<DTRecSegment4DCollection> all4DSegments,const edm::EventSetup& iSetup, const edm::Event& iEvent,bool debug, double eyr);
13  ~DTSegtoRPC();
15 
16 private:
19  bool incldt;
20  bool incldtMB4;
21  double MinCosAng;
22  double MaxD;
23  double MaxDrb4;
25  std::vector<uint32_t> extrapolatedRolls;
26 };
27 
28 class DTStationIndex{
29 public:
31  DTStationIndex(int region, int wheel, int sector, int station) :
32  _region(region),
33  _wheel(wheel),
34  _sector(sector),
35  _station(station){}
37  int region() const {return _region;}
38  int wheel() const {return _wheel;}
39  int sector() const {return _sector;}
40  int station() const {return _station;}
41  bool operator<(const DTStationIndex& dtind) const{
42  if(dtind.region()!=this->region())
43  return dtind.region()<this->region();
44  else if(dtind.wheel()!=this->wheel())
45  return dtind.wheel()<this->wheel();
46  else if(dtind.sector()!=this->sector())
47  return dtind.sector()<this->sector();
48  else if(dtind.station()!=this->station())
49  return dtind.station()<this->station();
50  return false;
51  }
52 
53 private:
54  int _region;
55  int _wheel;
56  int _sector;
57  int _station;
58 };
59 
60 class ObjectMap{
61 public:
62  static ObjectMap* GetInstance(const edm::EventSetup& iSetup);
63  std::set<RPCDetId> GetRolls(DTStationIndex dtstationindex){return mapInstance->rollstoreDT[dtstationindex];}
64 //protected:
65  std::map<DTStationIndex,std::set<RPCDetId> > rollstoreDT;
66  ObjectMap(const edm::EventSetup& iSetup);
67 private:
69 };
70 
71 #endif
double MaxDistanceBetweenSegments
Definition: DTSegtoRPC.h:24
int wheel() const
Definition: RPCEfficiency.h:52
std::set< RPCDetId > GetRolls(DTStationIndex dtstationindex)
Definition: DTSegtoRPC.h:63
edm::OwnVector< RPCRecHit > RPCPointVector
Definition: DTSegtoRPC.h:18
static ObjectMap * mapInstance
Definition: DTSegtoRPC.h:68
DTSegtoRPC(edm::Handle< DTRecSegment4DCollection > all4DSegments, const edm::EventSetup &iSetup, const edm::Event &iEvent, bool debug, double eyr)
Definition: DTSegtoRPC.cc:70
std::map< DTStationIndex, std::set< RPCDetId > > rollstoreDT
Definition: DTSegtoRPC.h:65
int iEvent
Definition: GenABIO.cc:243
RPCRecHitCollection * thePoints()
Definition: DTSegtoRPC.h:14
double MaxD
Definition: DTSegtoRPC.h:22
DTStationIndex(int region, int wheel, int sector, int station)
Definition: DTSegtoRPC.h:31
std::vector< uint32_t > extrapolatedRolls
Definition: DTSegtoRPC.h:25
double MaxDrb4
Definition: DTSegtoRPC.h:23
static ObjectMap * GetInstance(const edm::EventSetup &iSetup)
Definition: DTSegtoRPC.cc:17
bool incldtMB4
Definition: DTSegtoRPC.h:20
bool incldt
Definition: DTSegtoRPC.h:19
int station() const
Definition: RPCEfficiency.h:54
int region() const
Definition: RPCEfficiency.h:51
ObjectMap(const edm::EventSetup &iSetup)
Definition: DTSegtoRPC.cc:24
bool operator<(const DTStationIndex &dtind) const
Definition: DTSegtoRPC.h:41
double MinCosAng
Definition: DTSegtoRPC.h:21
int sector() const
Definition: RPCEfficiency.h:53
#define debug
Definition: MEtoEDMFormat.h:34
RPCRecHitCollection * _ThePoints
Definition: DTSegtoRPC.h:17