CMS 3D CMS Logo

RPCMonitorDigi.h
Go to the documentation of this file.
1 #ifndef RPCMonitorDigi_h
2 #define RPCMonitorDigi_h
3 
7 
10 
16 
17 #include <string>
18 #include <array>
19 #include <map>
20 
21 class RPCMonitorDigi : public DQMEDAnalyzer {
22 public:
23  explicit RPCMonitorDigi(const edm::ParameterSet &);
24  ~RPCMonitorDigi() override = default;
25 
26 protected:
27  void analyze(const edm::Event &, const edm::EventSetup &) override;
28  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
31  const RPCDetId &,
32  const RPCGeometry *rpcGeo,
33  const std::string &,
34  std::map<std::string, MonitorElement *> &);
36  void bookSectorRingME(DQMStore::IBooker &, const std::string &, std::map<std::string, MonitorElement *> &);
38  void bookWheelDiskME(DQMStore::IBooker &, const std::string &, std::map<std::string, MonitorElement *> &);
40  void bookRegionME(DQMStore::IBooker &, const std::string &, std::map<std::string, MonitorElement *> &);
41 
42 private:
44 
45  void performSourceOperation(std::map<RPCDetId, std::vector<RPCRecHit> > &, std::string);
46  int stripsInRoll(const RPCDetId &id, const RPCGeometry *rpcGeo) const;
47 
48  static const std::array<std::string, 3> regionNames_;
51  int counter;
52 
57 
60 
62 
63  std::map<std::string, std::map<std::string, MonitorElement *> > meMuonCollection;
64  std::map<std::string, MonitorElement *> wheelDiskMuonCollection;
65  std::map<std::string, MonitorElement *> regionMuonCollection;
66  std::map<std::string, MonitorElement *> sectorRingMuonCollection;
67 
68  std::map<std::string, std::map<std::string, MonitorElement *> > meNoiseCollection;
69  std::map<std::string, MonitorElement *> wheelDiskNoiseCollection;
70  std::map<std::string, MonitorElement *> regionNoiseCollection;
71  std::map<std::string, MonitorElement *> sectorRingNoiseCollection;
72 
75 
79 };
80 
81 #endif
std::map< std::string, std::map< std::string, MonitorElement * > > meMuonCollection
std::string globalFolder_
std::string muonFolder_
std::map< std::string, MonitorElement * > wheelDiskNoiseCollection
std::map< std::string, MonitorElement * > sectorRingMuonCollection
MonitorElement * muonRPCEvents_
void bookSectorRingME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement at Sector/Ring level.
~RPCMonitorDigi() override=default
RPCMonitorDigi(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::string noiseFolder_
int stripsInRoll(const RPCDetId &id, const RPCGeometry *rpcGeo) const
void bookRollME(DQMStore::IBooker &, const RPCDetId &, const RPCGeometry *rpcGeo, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement for one RPCDetId (= roll)
static const std::array< std::string, 3 > regionNames_
MonitorElement * NumberOfRecHitMuon_
std::map< std::string, MonitorElement * > regionMuonCollection
std::map< std::string, MonitorElement * > sectorRingNoiseCollection
edm::EDGetTokenT< RPCRecHitCollection > rpcRecHitLabel_
edm::EDGetTokenT< DcsStatusCollection > scalersRawToDigiLabel_
std::map< std::string, std::map< std::string, MonitorElement * > > meNoiseCollection
void performSourceOperation(std::map< RPCDetId, std::vector< RPCRecHit > > &, std::string)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::map< std::string, MonitorElement * > wheelDiskMuonCollection
void bookWheelDiskME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at Wheel/Disk level.
std::map< std::string, MonitorElement * > regionNoiseCollection
MonitorElement * noiseRPCEvents_
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:45
edm::EDGetTokenT< reco::CandidateView > muonLabel_