CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TDTTPGClient.h
Go to the documentation of this file.
1 #ifndef DQM_L1TMONITORCLIENT_L1TDTTPG_H
2 #define DQM_L1TMONITORCLIENT_L1TDTTPG_H
3 
10 
11 #include <memory>
12 #include <iostream>
13 #include <fstream>
14 #include <string>
15 #include <vector>
16 #include <map>
17 #include <TH1F.h>
18 #include <TH2F.h>
19 #include <TProfile2D.h>
20 
22 
23 public:
24 
27 
29  virtual ~L1TDTTPGClient();
30 
31 protected:
32 
34  void beginJob(void);
35 
37  void beginRun(const edm::Run& r, const edm::EventSetup& c);
38 
40  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
41 
42  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
43  const edm::EventSetup& context) ;
44 
46  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
47  const edm::EventSetup& c);
48 
50  void endRun(const edm::Run& r, const edm::EventSetup& c);
51 
53  void endJob();
54 
55 private:
56 
57  void initialize();
58  void makeRatioHisto(MonitorElement *ratioME, std::string &nName, std::string &dName);
59  void setMapPhLabel(MonitorElement *me);
60  void setMapThLabel(MonitorElement *me);
61  TH1F * get1DHisto(std::string meName, DQMStore * dbi);
62  TH2F * get2DHisto(std::string meName, DQMStore * dbi);
63  TProfile2D * get2DProfile(std::string meName, DQMStore * dbi);
64  TProfile * get1DProfile(std::string meName, DQMStore * dbi);
65 
68  std::string monitorName_;
69  std::string input_dir_;
70  std::string output_dir_;
71  int counterLS_;
75 
76  // -------- member data --------
77 // MonitorElement * clientHisto;
83 
84 };
85 
86 #endif
std::string input_dir_
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
DQM Client Diagnostic.
int prescaleEvt_
units of lumi sections
void setMapThLabel(MonitorElement *me)
void makeRatioHisto(MonitorElement *ratioME, std::string &nName, std::string &dName)
edm::ParameterSet parameters_
MonitorElement * dttpgphmapcorrf
prescale on number of events
MonitorElement * dttpgphmapbxf[3]
TProfile * get1DProfile(std::string meName, DQMStore *dbi)
void analyze(const edm::Event &e, const edm::EventSetup &c)
Fake Analyze.
virtual ~L1TDTTPGClient()
Destructor.
TH2F * get2DHisto(std::string meName, DQMStore *dbi)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
TH1F * get1DHisto(std::string meName, DQMStore *dbi)
MonitorElement * dttpgthmapbxf[3]
void endJob()
Endjob.
L1TDTTPGClient(const edm::ParameterSet &ps)
Constructor.
int prescaleLS_
counter
std::string output_dir_
TProfile2D * get2DProfile(std::string meName, DQMStore *dbi)
MonitorElement * dttpgthmaphf
void setMapPhLabel(MonitorElement *me)
MonitorElement * dttpgphmap2ndf
std::string monitorName_
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
DQMStore * dbe_
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
int counterEvt_
counter
void beginJob(void)
BeginJob.
Definition: Run.h:33