CMS 3D CMS Logo

RPCMonitorDigi.h
Go to the documentation of this file.
1 #ifndef RPCMonitorDigi_h
2 #define RPCMonitorDigi_h
3 
8 
15 
16 #include <string>
17 #include <array>
18 #include <map>
19 
20 class RPCMonitorDigi : public DQMEDAnalyzer {
21 public:
22  explicit RPCMonitorDigi(const edm::ParameterSet &);
23  ~RPCMonitorDigi() override = default;
24 
25 protected:
26  void analyze(const edm::Event &, const edm::EventSetup &) override;
27  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
30  const RPCDetId &,
31  const RPCGeometry *rpcGeo,
32  const std::string &,
33  std::map<std::string, MonitorElement *> &);
35  void bookSectorRingME(DQMStore::IBooker &, const std::string &, std::map<std::string, MonitorElement *> &);
37  void bookWheelDiskME(DQMStore::IBooker &, const std::string &, std::map<std::string, MonitorElement *> &);
39  void bookRegionME(DQMStore::IBooker &, const std::string &, std::map<std::string, MonitorElement *> &);
40 
41 private:
43 
44  void performSourceOperation(std::map<RPCDetId, std::vector<RPCRecHit> > &, std::string);
45  int stripsInRoll(const RPCDetId &id, const RPCGeometry *rpcGeo) const;
46 
47  static const std::array<std::string, 3> regionNames_;
50  int counter;
51 
56 
59 
61 
62  std::map<std::string, std::map<std::string, MonitorElement *> > meMuonCollection;
63  std::map<std::string, MonitorElement *> wheelDiskMuonCollection;
64  std::map<std::string, MonitorElement *> regionMuonCollection;
65  std::map<std::string, MonitorElement *> sectorRingMuonCollection;
66 
67  std::map<std::string, std::map<std::string, MonitorElement *> > meNoiseCollection;
68  std::map<std::string, MonitorElement *> wheelDiskNoiseCollection;
69  std::map<std::string, MonitorElement *> regionNoiseCollection;
70  std::map<std::string, MonitorElement *> sectorRingNoiseCollection;
71 
74 
78 
80 };
81 
82 #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_
~RPCMonitorDigi() override=default
RPCMonitorDigi(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::string noiseFolder_
void bookSectorRingME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement *> &)
Booking of MonitoringElement at Sector/Ring level.
static const std::array< std::string, 3 > regionNames_
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
MonitorElement * NumberOfRecHitMuon_
std::map< std::string, MonitorElement * > regionMuonCollection
std::map< std::string, MonitorElement * > sectorRingNoiseCollection
void bookWheelDiskME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement *> &)
Booking of MonitoringElemnt at Wheel/Disk level.
edm::EDGetTokenT< RPCRecHitCollection > rpcRecHitLabel_
edm::EDGetTokenT< DcsStatusCollection > scalersRawToDigiLabel_
std::map< std::string, std::map< std::string, MonitorElement * > > meNoiseCollection
void bookRegionME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement *> &)
Booking of MonitoringElemnt at region (Barrel/Endcap) level.
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
std::map< std::string, MonitorElement * > regionNoiseCollection
MonitorElement * noiseRPCEvents_
MonitorElement * NumberOfMuon_
int stripsInRoll(const RPCDetId &id, const RPCGeometry *rpcGeo) const
std::string subsystemFolder_
void bookRollME(DQMStore::IBooker &, const RPCDetId &, const RPCGeometry *rpcGeo, const std::string &, std::map< std::string, MonitorElement *> &)
Booking of MonitoringElement for one RPCDetId (= roll)
Definition: Run.h:45
edm::EDGetTokenT< reco::CandidateView > muonLabel_