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  void makeDcsInfo(const edm::Event& ) ;
52  int stripsInRoll(RPCDetId & ,const edm::EventSetup& );
53 
54  static const std::string regionNames_[3];
57  int counter;
58 
59  bool dcs_;
64 
67 
69  // int muonCounter_, noiseCounter_;
70 
71  std::map< std::string, std::map<std::string, MonitorElement*> > meMuonCollection;
72  std::map<std::string, MonitorElement*> wheelDiskMuonCollection;
73  std::map<std::string, MonitorElement*> regionMuonCollection;
74  std::map<std::string, MonitorElement*> sectorRingMuonCollection;
75 
76  std::map<std::string, std::map<std::string, MonitorElement*> > meNoiseCollection;
77  std::map<std::string, MonitorElement*> wheelDiskNoiseCollection;
78  std::map<std::string, MonitorElement*> regionNoiseCollection;
79  std::map<std::string, MonitorElement*> sectorRingNoiseCollection;
80 
83 
86 
90 
91 
92 
93 };
94 
95 #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 &)
void makeDcsInfo(const edm::Event &)
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:41
edm::EDGetTokenT< reco::CandidateView > muonLabel_