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
RPCMonitorDigi::~RPCMonitorDigi
~RPCMonitorDigi() override=default
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
RPCMonitorDigi::counter
int counter
Definition: RPCMonitorDigi.h:51
Muon.h
DcsStatus.h
RPCMonitorDigi::NumberOfRecHitMuon_
MonitorElement * NumberOfRecHitMuon_
Definition: RPCMonitorDigi.h:58
RPCMonitorDigi::muEtaCut_
float muEtaCut_
Definition: RPCMonitorDigi.h:53
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
RPCMonitorDigi::performSourceOperation
void performSourceOperation(std::map< RPCDetId, std::vector< RPCRecHit > > &, std::string)
Definition: RPCMonitorDigi.cc:214
RPCDetId
Definition: RPCDetId.h:16
RPCMonitorDigi::NumberOfMuon_
MonitorElement * NumberOfMuon_
Definition: RPCMonitorDigi.h:59
RPCMonitorDigi::sectorRingNoiseCollection
std::map< std::string, MonitorElement * > sectorRingNoiseCollection
Definition: RPCMonitorDigi.h:71
DQMStore.h
RPCMonitorDigi::subsystemFolder_
std::string subsystemFolder_
Definition: RPCMonitorDigi.h:74
RPCMonitorDigi::numberOfDisks_
int numberOfDisks_
Definition: RPCMonitorDigi.h:61
RPCMonitorDigi::noiseFolder_
std::string noiseFolder_
Definition: RPCMonitorDigi.h:50
RPCMonitorDigi::meMuonCollection
std::map< std::string, std::map< std::string, MonitorElement * > > meMuonCollection
Definition: RPCMonitorDigi.h:63
RPCMonitorDigi::RPCMonitorDigi
RPCMonitorDigi(const edm::ParameterSet &)
Definition: RPCMonitorDigi.cc:18
RPCMonitorDigi::bookRollME
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: RPCBookDetUnitME.cc:8
RPCMonitorDigi::wheelDiskNoiseCollection
std::map< std::string, MonitorElement * > wheelDiskNoiseCollection
Definition: RPCMonitorDigi.h:69
RPCMonitorDigi::regionMuonCollection
std::map< std::string, MonitorElement * > regionMuonCollection
Definition: RPCMonitorDigi.h:65
RPCMonitorDigi::muonLabel_
edm::EDGetTokenT< reco::CandidateView > muonLabel_
Definition: RPCMonitorDigi.h:76
RPCMonitorDigi::muPtCut_
float muPtCut_
Definition: RPCMonitorDigi.h:53
RPCMonitorDigi::scalersRawToDigiLabel_
edm::EDGetTokenT< DcsStatusCollection > scalersRawToDigiLabel_
Definition: RPCMonitorDigi.h:78
DQMEDAnalyzer.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RPCMonitorDigi::regionNames_
static const std::array< std::string, 3 > regionNames_
Definition: RPCMonitorDigi.h:48
RPCDetId.h
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
RPCRecHitCollection.h
RPCMonitorDigi::bookWheelDiskME
void bookWheelDiskME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at Wheel/Disk level.
Definition: RPCBookDetUnitME.cc:197
edm::ParameterSet
Definition: ParameterSet.h:36
RPCMonitorDigi::useMuonDigis_
bool useMuonDigis_
Definition: RPCMonitorDigi.h:43
Event.h
RPCMonitorDigi::stripsInRoll
int stripsInRoll(const RPCDetId &id, const RPCGeometry *rpcGeo) const
Definition: RPCBookDetUnitME.cc:279
RPCMonitorDigi::meNoiseCollection
std::map< std::string, std::map< std::string, MonitorElement * > > meNoiseCollection
Definition: RPCMonitorDigi.h:68
RPCMonitorDigi::numberOfInnerRings_
int numberOfInnerRings_
Definition: RPCMonitorDigi.h:61
RPCMonitorDigi::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: RPCMonitorDigi.cc:43
edm::EventSetup
Definition: EventSetup.h:57
RPCMonitorDigi::noiseRPCEvents_
MonitorElement * noiseRPCEvents_
Definition: RPCMonitorDigi.h:55
RPCMonitorDigi::bookRegionME
void bookRegionME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at region (Barrel/Endcap) level.
Definition: RPCBookDetUnitME.cc:287
RPCMonitorDigi::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: RPCMonitorDigi.cc:116
RPCMonitorDigi::sectorRingMuonCollection
std::map< std::string, MonitorElement * > sectorRingMuonCollection
Definition: RPCMonitorDigi.h:66
RPCMonitorDigi::globalFolder_
std::string globalFolder_
Definition: RPCMonitorDigi.h:73
RPCMonitorDigi::regionNoiseCollection
std::map< std::string, MonitorElement * > regionNoiseCollection
Definition: RPCMonitorDigi.h:70
RPCMonitorDigi::bookSectorRingME
void bookSectorRingME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement at Sector/Ring level.
Definition: RPCBookDetUnitME.cc:76
Frameworkfwd.h
RPCMonitorDigi::useRollInfo_
bool useRollInfo_
Definition: RPCMonitorDigi.h:54
RPCMonitorDigi::muonFolder_
std::string muonFolder_
Definition: RPCMonitorDigi.h:49
dqm::implementation::IBooker
Definition: DQMStore.h:43
RPCMonitorDigi::wheelDiskMuonCollection
std::map< std::string, MonitorElement * > wheelDiskMuonCollection
Definition: RPCMonitorDigi.h:64
RPCGeometry
Definition: RPCGeometry.h:20
genParticles_cff.map
map
Definition: genParticles_cff.py:11
RPCMonitorDigi::rpcRecHitLabel_
edm::EDGetTokenT< RPCRecHitCollection > rpcRecHitLabel_
Definition: RPCMonitorDigi.h:77
ParameterSet.h
edm::Event
Definition: Event.h:73
RPCGeometry.h
RPCMonitorDigi
Definition: RPCMonitorDigi.h:21
RPCMonitorDigi::muonRPCEvents_
MonitorElement * muonRPCEvents_
Definition: RPCMonitorDigi.h:56