CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhotonOfflineClient.h
Go to the documentation of this file.
1 #ifndef PhotonOfflineClient_H
2 #define PhotonOfflineClient_H
3 
6 //
10 
11 // EgammaCoreTools
13 
14 
15 #include "TFile.h"
16 #include "TH1.h"
17 #include "TH2.h"
18 #include "TTree.h"
19 #include "TVector3.h"
20 #include "TProfile.h"
21 //
22 
23 
28 
29 //DQM services
33 
34 //
35 
36 #include <vector>
37 #include <string>
38 
51 // forward declarations
52 class TFile;
53 class TH1F;
54 class TH2F;
55 class TProfile;
56 class TTree;
57 
58 
60 {
61 
62  public:
63 
64  //
65  explicit PhotonOfflineClient( const edm::ParameterSet& pset ) ;
66  virtual ~PhotonOfflineClient();
67 
68 
69  virtual void analyze(const edm::Event&, const edm::EventSetup& ) ;
70  virtual void beginJob() ;
71  virtual void endJob() ;
72  virtual void endLuminosityBlock( const edm::LuminosityBlock& , const edm::EventSetup& ) ;
73  virtual void endRun(const edm::Run& , const edm::EventSetup& ) ;
74  virtual void runClient();
75 
76  MonitorElement* bookHisto(std::string histoName, std::string title, int bin, double min, double max);
77 
78  std::vector<std::vector<MonitorElement*> > book2DHistoVector(std::string histoType, std::string histoName, std::string title,
79  int xbin, double xmin, double xmax,
80  int ybin=1,double ymin=1, double ymax=2);
81  std::vector<std::vector<std::vector<MonitorElement*> > > book3DHistoVector(std::string histoType, std::string histoName, std::string title,
82  int xbin, double xmin, double xmax,
83  int ybin=1,double ymin=1, double ymax=2);
84 
85 
86 
87  MonitorElement* retrieveHisto(std::string dir, std::string name);
88 
89  private:
90 
97 
102 
103  std::vector<std::vector<MonitorElement*> > p_convFractionVsEta_;
104  std::vector<std::vector<std::vector<MonitorElement*> > > p_convFractionVsPhi_;
105  std::vector<std::vector<MonitorElement*> > p_convFractionVsEt_;
106 
107  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsEta_;
108  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsPhi_;
109  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsEt_;
110 
112 
113 
115  void dividePlots(MonitorElement* dividend, MonitorElement* numerator, double denominator);
116 
117 
120 
122 
123  double cutStep_;
127 
128  double etMin;
129  double etMax;
130  int etBin;
131  double etaMin;
132  double etaMax;
133  int etaBin;
134  double phiMin;
135  double phiMax;
136  int phiBin;
137 
139  bool batch_;
140 
141  std::string outputFileName_;
142  std::string inputFileName_;
143 
144  std::stringstream currentFolder_;
145 
150 
151  std::vector<std::string> types_;
152  std::vector<std::string> parts_;
153 
154 
155 };
156 
157 
158 
159 
160 
161 #endif
std::vector< std::string > parts_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
PhotonOfflineClient(const edm::ParameterSet &pset)
std::vector< std::vector< MonitorElement * > > p_badChannelsFractionVsEta_
std::vector< std::string > types_
#define min(a, b)
Definition: mlp_lapack.h:161
std::vector< std::vector< MonitorElement * > > p_convFractionVsEta_
virtual void endRun(const edm::Run &, const edm::EventSetup &)
std::vector< std::vector< MonitorElement * > > p_convFractionVsEt_
MonitorElement * p_convFractionVsEtaLoose_
MonitorElement * p_vertexReconstructionEfficiencyVsEta_
std::vector< std::vector< std::vector< MonitorElement * > > > book3DHistoVector(std::string histoType, std::string histoName, std::string title, int xbin, double xmin, double xmax, int ybin=1, double ymin=1, double ymax=2)
std::vector< std::vector< MonitorElement * > > book2DHistoVector(std::string histoType, std::string histoName, std::string title, int xbin, double xmin, double xmax, int ybin=1, double ymin=1, double ymax=2)
const T & max(const T &a, const T &b)
std::vector< std::vector< MonitorElement * > > p_badChannelsFractionVsPhi_
MonitorElement * p_efficiencyVsEtHLT_
void dividePlots(MonitorElement *dividend, MonitorElement *numerator, MonitorElement *denominator)
std::stringstream currentFolder_
MonitorElement * p_efficiencyVsEtaLoose_
MonitorElement * p_convFractionVsEtaTight_
MonitorElement * retrieveHisto(std::string dir, std::string name)
MonitorElement * bookHisto(std::string histoName, std::string title, int bin, double min, double max)
MonitorElement * p_efficiencyVsEtaHLT_
MonitorElement * p_efficiencyVsEtLoose_
MonitorElement * p_efficiencyVsEtaTight_
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
MonitorElement * p_convFractionVsEtTight_
dbl *** dir
Definition: mlp_gen.cc:35
std::vector< std::vector< MonitorElement * > > p_badChannelsFractionVsEt_
edm::ParameterSet parameters_
MonitorElement * p_convFractionVsEtLoose_
std::vector< std::vector< std::vector< MonitorElement * > > > p_convFractionVsPhi_
MonitorElement * p_efficiencyVsEtTight_
Definition: Run.h:33