CMS 3D CMS Logo

RPCMonitorDigi.h
Go to the documentation of this file.
1 #ifndef RPCMonitorDigi_h
2 #define RPCMonitorDigi_h
3 
7 
11 
17 
18 #include <string>
19 #include <array>
20 #include <map>
21 
23 {
24 public:
25  explicit RPCMonitorDigi( const edm::ParameterSet&);
26  ~RPCMonitorDigi() override = default;
27 
28 protected:
29  void analyze( const edm::Event&, const edm::EventSetup& ) override;
30  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
32  void bookRollME(DQMStore::IBooker &, const RPCDetId& , const RPCGeometry* rpcGeo, const std::string &, std::map<std::string, MonitorElement*> &);
34  void bookSectorRingME(DQMStore::IBooker &,const std::string&, std::map<std::string, MonitorElement*> &);
36  void bookWheelDiskME(DQMStore::IBooker &,const std::string &, std::map<std::string, MonitorElement*> &);
38  void bookRegionME(DQMStore::IBooker &,const std::string &, std::map<std::string, MonitorElement*> &);
39 
40 private:
41 
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 
79 
80 
81 };
82 
83 #endif
std::map< std::string, MonitorElement * > regionMuonCollection
std::map< std::string, MonitorElement * > sectorRingNoiseCollection
std::string globalFolder_
std::string muonFolder_
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() override=default
RPCMonitorDigi(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::string noiseFolder_
std::map< std::string, MonitorElement * > wheelDiskNoiseCollection
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_
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_