CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TEfficiency_Harvesting.h
Go to the documentation of this file.
1 #ifndef DQMOFFLINE_L1TRIGGER_L1TEFFICIENCYHARVESTING_H
2 #define DQMOFFLINE_L1TRIGGER_L1TEFFICIENCYHARVESTING_H
3 
4 /*
5  * \file L1TEfficiencyHarvesting.h
6  *
7  * $Date: 2013/03/18 17:17:52 $
8  * $Revision: 1.2 $
9  * \author J. Pela, C. Battilana
10  *
11  */
12 
13 // system include files
14 #include <memory>
15 #include <unistd.h>
16 
17 // user include files
24 
26 
31 
32 #include <TString.h>
33 
34 #include <iostream>
35 #include <fstream>
36 #include <vector>
37 
38 //
39 // Efficiency helper class declaration
40 //
41 
43 
44  public:
45 
47  m_dir(dir), m_plotName(plotName), m_dbe(dbe), m_effHisto(0) { };
48 
50 
52 
53  // book efficiency histo
54  void book(bool verbose);
55 
56  // compute efficiency
57  void computeEfficiency(bool verbose);
58 
59  private :
60 
64 
66 
67 };
68 
69 //
70 // DQM class declaration
71 //
72 
74 
75 public:
76 
77  L1TEfficiency_Harvesting(const edm::ParameterSet& ps); // Constructor
78  virtual ~L1TEfficiency_Harvesting(); // Destructor
79 
80 protected:
81 
82  // Event
83  void analyze (const edm::Event& e, const edm::EventSetup& c);
84 
85  // Job
86  void beginJob();
87  void endJob ();
88 
89  // Run
90  void beginRun(const edm::Run& run, const edm::EventSetup& iSetup);
91  void endRun (const edm::Run& run, const edm::EventSetup& iSetup);
92 
93  // Luminosity Block
94  virtual void beginLuminosityBlock(edm::LuminosityBlock const& lumiBlock, edm::EventSetup const& c);
95  virtual void endLuminosityBlock (edm::LuminosityBlock const& lumiBlock, edm::EventSetup const& c);
96 
97 private:
98 
99  // bool
100  bool m_verbose;
101 
102  std::vector<L1TEfficiencyPlotHandler> m_plotHandlers;
103 
104 };
105 
106 #endif
L1TEfficiency_Harvesting(const edm::ParameterSet &ps)
virtual void endLuminosityBlock(edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
std::vector< L1TEfficiencyPlotHandler > m_plotHandlers
void endRun(const edm::Run &run, const edm::EventSetup &iSetup)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
L1TEfficiencyPlotHandler(std::string dir, std::string plotName, DQMStore *dbe)
void analyze(const edm::Event &e, const edm::EventSetup &c)
dbl *** dir
Definition: mlp_gen.cc:35
void beginRun(const edm::Run &run, const edm::EventSetup &iSetup)
Definition: Run.h:36