CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCMonitorDigi.h
Go to the documentation of this file.
1 #ifndef RPCMonitorDigi_h
2 #define RPCMonitorDigi_h
3 
9 //DQMServices
13 
21 
22 #include<string>
23 #include<map>
24 
25 class RPCMonitorDigi : public DQMEDAnalyzer {
26  public:
27  explicit RPCMonitorDigi( const edm::ParameterSet&);
29 
30 
31  protected:
32 
33  virtual void analyze( const edm::Event&, const edm::EventSetup& );
34  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
36  void bookRollME(DQMStore::IBooker &,RPCDetId& , const edm::EventSetup&, const std::string &, std::map<std::string, MonitorElement*> &);
38  void bookSectorRingME(DQMStore::IBooker &,const std::string&, std::map<std::string, MonitorElement*> &);
40  void bookWheelDiskME(DQMStore::IBooker &,const std::string &, std::map<std::string, MonitorElement*> &);
42  void bookRegionME(DQMStore::IBooker &,const std::string &, std::map<std::string, MonitorElement*> &);
43 
44  private:
45 
46  enum detectorRegions{EM = 0, B = 1, EP= 2, ALL=3};
47 
49 
50  void performSourceOperation(std::map < RPCDetId , std::vector<RPCRecHit> > &, std::string );
51  int stripsInRoll(RPCDetId & ,const edm::EventSetup& );
52 
53  static const std::string regionNames_[3];
56  int counter;
57 
62 
65 
67  // int muonCounter_, noiseCounter_;
68 
69  std::map< std::string, std::map<std::string, MonitorElement*> > meMuonCollection;
70  std::map<std::string, MonitorElement*> wheelDiskMuonCollection;
71  std::map<std::string, MonitorElement*> regionMuonCollection;
72  std::map<std::string, MonitorElement*> sectorRingMuonCollection;
73 
74  std::map<std::string, std::map<std::string, MonitorElement*> > meNoiseCollection;
75  std::map<std::string, MonitorElement*> wheelDiskNoiseCollection;
76  std::map<std::string, MonitorElement*> regionNoiseCollection;
77  std::map<std::string, MonitorElement*> sectorRingNoiseCollection;
78 
81 
84 
88 
89 
90 
91 };
92 
93 #endif
std::map< std::string, MonitorElement * > regionMuonCollection
std::map< std::string, MonitorElement * > sectorRingNoiseCollection
std::string globalFolder_
std::string muonFolder_
std::string RootFileName
std::map< std::string, MonitorElement * > wheelDiskMuonCollection
std::map< std::string, MonitorElement * > regionNoiseCollection
std::map< std::string, std::map< std::string, MonitorElement * > > meNoiseCollection
MonitorElement * muonRPCEvents_
void bookSectorRingME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement at Sector/Ring level.
RPCMonitorDigi(const edm::ParameterSet &)
std::string noiseFolder_
std::map< std::string, MonitorElement * > wheelDiskNoiseCollection
static const std::string regionNames_[3]
Geometry.
Data Format.
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void bookRollME(DQMStore::IBooker &, RPCDetId &, const edm::EventSetup &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement for one RPCDetId (= roll)
MonitorElement * NumberOfRecHitMuon_
int stripsInRoll(RPCDetId &, const edm::EventSetup &)
edm::EDGetTokenT< RPCRecHitCollection > rpcRecHitLabel_
edm::EDGetTokenT< DcsStatusCollection > scalersRawToDigiLabel_
void performSourceOperation(std::map< RPCDetId, std::vector< RPCRecHit > > &, std::string)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void bookWheelDiskME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at Wheel/Disk level.
MonitorElement * noiseRPCEvents_
std::map< std::string, MonitorElement * > sectorRingMuonCollection
std::map< std::string, std::map< std::string, MonitorElement * > > meMuonCollection
void bookRegionME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at region (Barrel/Endcap) level.
MonitorElement * NumberOfMuon_
std::string subsystemFolder_
Definition: Run.h:43
edm::EDGetTokenT< reco::CandidateView > muonLabel_