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
RPCMonitorDigi::~RPCMonitorDigi
~RPCMonitorDigi() override=default
dqm::impl::MonitorElement
Definition: MonitorElement.h:99
RPCMonitorDigi::counter
int counter
Definition: RPCMonitorDigi.h:50
Muon.h
DcsStatus.h
RPCMonitorDigi::NumberOfRecHitMuon_
MonitorElement * NumberOfRecHitMuon_
Definition: RPCMonitorDigi.h:57
RPCMonitorDigi::muEtaCut_
float muEtaCut_
Definition: RPCMonitorDigi.h:52
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:211
RPCDetId
Definition: RPCDetId.h:16
RPCMonitorDigi::NumberOfMuon_
MonitorElement * NumberOfMuon_
Definition: RPCMonitorDigi.h:58
RPCMonitorDigi::sectorRingNoiseCollection
std::map< std::string, MonitorElement * > sectorRingNoiseCollection
Definition: RPCMonitorDigi.h:70
DQMStore.h
RPCMonitorDigi::subsystemFolder_
std::string subsystemFolder_
Definition: RPCMonitorDigi.h:73
RPCMonitorDigi::numberOfDisks_
int numberOfDisks_
Definition: RPCMonitorDigi.h:60
RPCMonitorDigi::noiseFolder_
std::string noiseFolder_
Definition: RPCMonitorDigi.h:49
RPCMonitorDigi::meMuonCollection
std::map< std::string, std::map< std::string, MonitorElement * > > meMuonCollection
Definition: RPCMonitorDigi.h:62
RPCMonitorDigi::RPCMonitorDigi
RPCMonitorDigi(const edm::ParameterSet &)
Definition: RPCMonitorDigi.cc:17
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:7
RPCMonitorDigi::wheelDiskNoiseCollection
std::map< std::string, MonitorElement * > wheelDiskNoiseCollection
Definition: RPCMonitorDigi.h:68
RPCMonitorDigi::regionMuonCollection
std::map< std::string, MonitorElement * > regionMuonCollection
Definition: RPCMonitorDigi.h:64
RPCMonitorDigi::muonLabel_
edm::EDGetTokenT< reco::CandidateView > muonLabel_
Definition: RPCMonitorDigi.h:75
RPCMonitorDigi::muPtCut_
float muPtCut_
Definition: RPCMonitorDigi.h:52
RPCMonitorDigi::scalersRawToDigiLabel_
edm::EDGetTokenT< DcsStatusCollection > scalersRawToDigiLabel_
Definition: RPCMonitorDigi.h:77
DQMEDAnalyzer.h
RPCMonitorDigi::regionNames_
static const std::array< std::string, 3 > regionNames_
Definition: RPCMonitorDigi.h:47
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:144
edm::ParameterSet
Definition: ParameterSet.h:47
RPCMonitorDigi::useMuonDigis_
bool useMuonDigis_
Definition: RPCMonitorDigi.h:42
Event.h
RPCMonitorDigi::stripsInRoll
int stripsInRoll(const RPCDetId &id, const RPCGeometry *rpcGeo) const
Definition: RPCBookDetUnitME.cc:205
RPCMonitorDigi::meNoiseCollection
std::map< std::string, std::map< std::string, MonitorElement * > > meNoiseCollection
Definition: RPCMonitorDigi.h:67
RPCMonitorDigi::numberOfInnerRings_
int numberOfInnerRings_
Definition: RPCMonitorDigi.h:60
RPCMonitorDigi::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: RPCMonitorDigi.cc:44
edm::EventSetup
Definition: EventSetup.h:58
RPCMonitorDigi::noiseRPCEvents_
MonitorElement * noiseRPCEvents_
Definition: RPCMonitorDigi.h:54
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:213
edm::ESGetToken< RPCGeometry, MuonGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RPCMonitorDigi::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: RPCMonitorDigi.cc:113
RPCMonitorDigi::sectorRingMuonCollection
std::map< std::string, MonitorElement * > sectorRingMuonCollection
Definition: RPCMonitorDigi.h:65
RPCMonitorDigi::rpcGeomToken_
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
Definition: RPCMonitorDigi.h:79
RPCMonitorDigi::globalFolder_
std::string globalFolder_
Definition: RPCMonitorDigi.h:72
RPCMonitorDigi::regionNoiseCollection
std::map< std::string, MonitorElement * > regionNoiseCollection
Definition: RPCMonitorDigi.h:69
RPCMonitorDigi::bookSectorRingME
void bookSectorRingME(DQMStore::IBooker &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement at Sector/Ring level.
Definition: RPCBookDetUnitME.cc:62
RPCMonitorDigi::useRollInfo_
bool useRollInfo_
Definition: RPCMonitorDigi.h:53
RPCMonitorDigi::muonFolder_
std::string muonFolder_
Definition: RPCMonitorDigi.h:48
dqm::implementation::IBooker
Definition: DQMStore.h:43
RPCMonitorDigi::wheelDiskMuonCollection
std::map< std::string, MonitorElement * > wheelDiskMuonCollection
Definition: RPCMonitorDigi.h:63
RPCGeometry
Definition: RPCGeometry.h:20
genParticles_cff.map
map
Definition: genParticles_cff.py:11
RPCMonitorDigi::rpcRecHitLabel_
edm::EDGetTokenT< RPCRecHitCollection > rpcRecHitLabel_
Definition: RPCMonitorDigi.h:76
ParameterSet.h
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
RPCGeometry.h
RPCMonitorDigi
Definition: RPCMonitorDigi.h:20
RPCMonitorDigi::muonRPCEvents_
MonitorElement * muonRPCEvents_
Definition: RPCMonitorDigi.h:55