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 
16 
17 #include<string>
18 #include<map>
19 
21  public:
22  explicit RPCMonitorDigi( const edm::ParameterSet&);
24 
25  virtual void analyze( const edm::Event&, const edm::EventSetup& );
26 
27  virtual void beginJob();
28 
30 
31  virtual void endJob(void);
32  void beginRun(const edm::Run& r, const edm::EventSetup& c);
33 
35  // std::map<std::string, MonitorElement*> bookRollME(RPCDetId& , const edm::EventSetup&, std::string );
36  void bookRollME(RPCDetId& , const edm::EventSetup&, const std::string &, std::map<std::string, MonitorElement*> &);
37 
39  // std::map<std::string, MonitorElement*> bookSectorRingME(std::string);
40  void bookSectorRingME(const std::string&, std::map<std::string, MonitorElement*> &);
41 
43  // std::map<std::string, MonitorElement*> bookWheelDiskME(std::string );
44  void bookWheelDiskME(const std::string &, std::map<std::string, MonitorElement*> &);
45 
46 
47 
49  // std::map<std::string, MonitorElement*> bookRegionME(std::string );
50  void bookRegionME(const std::string &, std::map<std::string, MonitorElement*> &);
51 
52  private:
53 
54  enum detectorRegions{EM = 0, B = 1, EP= 2, ALL=3};
55 
57 
58  void performSourceOperation(std::map < RPCDetId , std::vector<RPCRecHit> > &, std::string );
59  void makeDcsInfo(const edm::Event& ) ;
60  int stripsInRoll(RPCDetId & ,const edm::EventSetup& );
61 
62  static const std::string regionNames_[3];
63  std::string muonFolder_;
64  std::string noiseFolder_;
65  int counter;
66 
69  bool dcs_;
74 
77 
79  // int muonCounter_, noiseCounter_;
80 
81  std::map< std::string, std::map<std::string, MonitorElement*> > meMuonCollection;
82  std::map<std::string, MonitorElement*> wheelDiskMuonCollection;
83  std::map<std::string, MonitorElement*> regionMuonCollection;
84  std::map<std::string, MonitorElement*> sectorRingMuonCollection;
85 
86  std::map<std::string, std::map<std::string, MonitorElement*> > meNoiseCollection;
87  std::map<std::string, MonitorElement*> wheelDiskNoiseCollection;
88  std::map<std::string, MonitorElement*> regionNoiseCollection;
89  std::map<std::string, MonitorElement*> sectorRingNoiseCollection;
90 
91  std::string globalFolder_;
92  std::string subsystemFolder_;
93 
95  std::string RootFileName;
96 
99 };
100 
101 #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
edm::InputTag muonLabel_
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_
dictionary map
Definition: Association.py:205
std::map< std::string, MonitorElement * > wheelDiskNoiseCollection
static const std::string regionNames_[3]
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::InputTag rpcRecHitLabel_
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:33