CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCMonitorDigi.h
Go to the documentation of this file.
1 #ifndef RPCMonitorDigi_h
2 #define RPCMonitorDigi_h
3 
9 
12 
19 
20 #include<string>
21 #include<map>
22 
24  public:
25  explicit RPCMonitorDigi( const edm::ParameterSet&);
27 
28  virtual void analyze( const edm::Event&, const edm::EventSetup& );
29 
30  virtual void beginJob();
31 
33 
34  virtual void endJob(void);
35  void beginRun(const edm::Run& r, const edm::EventSetup& c);
36 
38  // std::map<std::string, MonitorElement*> bookRollME(RPCDetId& , const edm::EventSetup&, std::string );
39  void bookRollME(RPCDetId& , const edm::EventSetup&, const std::string &, std::map<std::string, MonitorElement*> &);
40 
42  // std::map<std::string, MonitorElement*> bookSectorRingME(std::string);
43  void bookSectorRingME(const std::string&, std::map<std::string, MonitorElement*> &);
44 
46  // std::map<std::string, MonitorElement*> bookWheelDiskME(std::string );
47  void bookWheelDiskME(const std::string &, std::map<std::string, MonitorElement*> &);
48 
49 
50 
52  // std::map<std::string, MonitorElement*> bookRegionME(std::string );
53  void bookRegionME(const std::string &, std::map<std::string, MonitorElement*> &);
54 
55  private:
56 
57  enum detectorRegions{EM = 0, B = 1, EP= 2, ALL=3};
58 
60 
61  void performSourceOperation(std::map < RPCDetId , std::vector<RPCRecHit> > &, std::string );
62  void makeDcsInfo(const edm::Event& ) ;
63  int stripsInRoll(RPCDetId & ,const edm::EventSetup& );
64 
65  static const std::string regionNames_[3];
68  int counter;
69 
72  bool dcs_;
77 
80 
82  // int muonCounter_, noiseCounter_;
83 
84  std::map< std::string, std::map<std::string, MonitorElement*> > meMuonCollection;
85  std::map<std::string, MonitorElement*> wheelDiskMuonCollection;
86  std::map<std::string, MonitorElement*> regionMuonCollection;
87  std::map<std::string, MonitorElement*> sectorRingMuonCollection;
88 
89  std::map<std::string, std::map<std::string, MonitorElement*> > meNoiseCollection;
90  std::map<std::string, MonitorElement*> wheelDiskNoiseCollection;
91  std::map<std::string, MonitorElement*> regionNoiseCollection;
92  std::map<std::string, MonitorElement*> sectorRingNoiseCollection;
93 
96 
99 
103 
104 
105 
106 };
107 
108 #endif
std::map< std::string, MonitorElement * > regionMuonCollection
std::map< std::string, MonitorElement * > sectorRingNoiseCollection
std::string globalFolder_
std::string muonFolder_
std::string RootFileName
virtual void endJob(void)
std::map< std::string, MonitorElement * > wheelDiskMuonCollection
std::map< std::string, MonitorElement * > regionNoiseCollection
std::map< std::string, std::map< std::string, MonitorElement * > > meNoiseCollection
MonitorElement * muonRPCEvents_
RPCMonitorDigi(const edm::ParameterSet &)
DQMStore * dbe
DQM store.
void makeDcsInfo(const edm::Event &)
void bookRollME(RPCDetId &, const edm::EventSetup &, const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement for one RPCDetId (= roll)
std::string noiseFolder_
std::map< std::string, MonitorElement * > wheelDiskNoiseCollection
static const std::string regionNames_[3]
Geometry.
Data Format.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
MonitorElement * NumberOfRecHitMuon_
void bookWheelDiskME(const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at Wheel/Disk level.
int stripsInRoll(RPCDetId &, const edm::EventSetup &)
edm::EDGetTokenT< RPCRecHitCollection > rpcRecHitLabel_
edm::EDGetTokenT< DcsStatusCollection > scalersRawToDigiLabel_
void performSourceOperation(std::map< RPCDetId, std::vector< RPCRecHit > > &, std::string)
virtual void beginJob()
MonitorElement * noiseRPCEvents_
std::map< std::string, MonitorElement * > sectorRingMuonCollection
std::map< std::string, std::map< std::string, MonitorElement * > > meMuonCollection
void bookSectorRingME(const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElement at Sector/Ring level.
void bookRegionME(const std::string &, std::map< std::string, MonitorElement * > &)
Booking of MonitoringElemnt at region (Barrel/Endcap) level.
MonitorElement * NumberOfMuon_
std::string subsystemFolder_
Definition: Run.h:41
edm::EDGetTokenT< reco::CandidateView > muonLabel_