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 "RooGlobalFunc.h"
37 #include "RooRealVar.h"
38 #include "RooDataSet.h"
39 #include "RooBreitWigner.h"
40 #include "RooDataHist.h"
41 #include "RooFitResult.h"
42 
43 #include <vector>
44 #include <string>
45 
57 // forward declarations
58 class TFile;
59 class TH1F;
60 class TH2F;
61 class TProfile;
62 class TTree;
63 
64 
66 {
67 
68  public:
69 
70  //
71  explicit PhotonOfflineClient( const edm::ParameterSet& pset ) ;
72  virtual ~PhotonOfflineClient();
73 
74 
75  virtual void analyze(const edm::Event&, const edm::EventSetup& ) ;
76  virtual void beginJob() ;
77  virtual void endJob() ;
78  virtual void endLuminosityBlock( const edm::LuminosityBlock& , const edm::EventSetup& ) ;
79  virtual void endRun(const edm::Run& , const edm::EventSetup& ) ;
80  virtual void runClient();
81 
82  MonitorElement* bookHisto(std::string histoName, std::string title, int bin, double min, double max);
83 
84  std::vector<std::vector<MonitorElement*> > book2DHistoVector(std::string histoType, std::string histoName, std::string title,
85  int xbin, double xmin, double xmax,
86  int ybin=1,double ymin=1, double ymax=2);
87  std::vector<std::vector<std::vector<MonitorElement*> > > book3DHistoVector(std::string histoType, std::string histoName, std::string title,
88  int xbin, double xmin, double xmax,
89  int ybin=1,double ymin=1, double ymax=2);
90 
91 
92 
94 
95  private:
96 
104 
109 
110  std::vector<std::vector<MonitorElement*> > p_convFractionVsEta_;
111  std::vector<std::vector<std::vector<MonitorElement*> > > p_convFractionVsPhi_;
112  std::vector<std::vector<MonitorElement*> > p_convFractionVsEt_;
113 
114  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsEta_;
115  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsPhi_;
116  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsEt_;
117 
119 
122 
125 
127 
128  double cutStep_;
132 
133  double etMin;
134  double etMax;
135  int etBin;
136  double etaMin;
137  double etaMax;
138  int etaBin;
139  double phiMin;
140  double phiMax;
141  int phiBin;
142 
144  bool batch_;
145 
148 
149  std::stringstream currentFolder_;
150 
155 
156  std::vector<std::string> types_;
157  std::vector<std::string> parts_;
158 
159 
160 };
161 
162 
163 
164 
165 
166 #endif
list numerator
Definition: cuy.py:483
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_
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)
list denominator
Definition: cuy.py:484
std::vector< std::vector< MonitorElement * > > p_badChannelsFractionVsPhi_
MonitorElement * p_efficiencyVsEtHLT_
void dividePlots(MonitorElement *dividend, MonitorElement *numerator, MonitorElement *denominator)
std::stringstream currentFolder_
T min(T a, T b)
Definition: MathUtil.h:58
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:41