CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TEMUEventInfoClient.h
Go to the documentation of this file.
1 #ifndef DQM_L1TMONITORCLIENT_L1TEMUEventInfoClient_H
2 #define DQM_L1TMONITORCLIENT_L1TEMUEventInfoClient_H
3 
9 
10 #include <memory>
11 #include <iostream>
12 #include <fstream>
13 #include <string>
14 #include <vector>
15 #include <map>
16 #include <TH1F.h>
17 #include <TH2F.h>
18 #include <TProfile2D.h>
19 
20 class DQMStore;
21 
23 
24 public:
25 
28 
30  virtual ~L1TEMUEventInfoClient();
31 
32 protected:
33 
35  void beginJob(void);
36 
38  void beginRun(const edm::Run& r, const edm::EventSetup& c);
39 
41  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
42 
43  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
44  const edm::EventSetup& context) ;
45 
47  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
48  const edm::EventSetup& c);
49 
51  void endRun(const edm::Run& r, const edm::EventSetup& c);
52 
54  void endJob();
55 
56 private:
57 
58  void initialize();
59  TH1F * get1DHisto(std::string meName, DQMStore * dbi);
60  TH2F * get2DHisto(std::string meName, DQMStore * dbi);
61  TProfile2D * get2DProfile(std::string meName, DQMStore * dbi);
62  TProfile * get1DProfile(std::string meName, DQMStore * dbi);
64  std::string StringToUpper(std::string strToConvert);
65 
67  std::string monitorDir_;
68  bool verbose_;
69  int counterLS_;
73  int nChannels;
74 
82 
83  std::map<std::string, DataValue> s_mapDataValues;
84  std::map<std::string, EmulValue> s_mapEmulValues;
85  std::map<int, int> emulatorMap;
86 
87  Float_t setSummary(MonitorElement*);
88  static const int nsys_=18;
89  static const int nsysmon_=11;
90 
91  Float_t reportSummary;
92  Float_t summarySum;
94  std::vector<std::string> dataMask;
95  std::vector<std::string> emulMask;
96  std::string syslabel_ [nsysmon_];
97  std::string syslabelext_[nsysmon_];
99 
100  // -------- member data --------
101 
105 
106 
107 };
108 
109 #endif
std::string StringToUpper(std::string strToConvert)
std::vector< std::string > emulMask
std::string syslabelext_[nsysmon_]
std::map< std::string, EmulValue > s_mapEmulValues
MonitorElement * reportSummaryContent_[nsys_]
void beginJob(void)
BeginJob.
TH1F * get1DHisto(std::string meName, DQMStore *dbi)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
Float_t setSummary(MonitorElement *)
virtual ~L1TEMUEventInfoClient()
Destructor.
TProfile2D * get2DProfile(std::string meName, DQMStore *dbi)
MonitorElement * reportSummary_
L1TEMUEventInfoClient(const edm::ParameterSet &ps)
Constructor.
std::vector< std::string > dataMask
edm::ParameterSet parameters_
int nChannels
prescale on number of events
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
DQM Client Diagnostic.
std::string syslabel_[nsysmon_]
TProfile * get1DProfile(std::string meName, DQMStore *dbi)
MonitorElement * reportSummaryMap_
std::map< std::string, DataValue > s_mapDataValues
std::map< int, int > emulatorMap
int prescaleEvt_
units of lumi sections
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Fake Analyze.
TH2F * get2DHisto(std::string meName, DQMStore *dbi)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
Definition: Run.h:31