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 
103 
108 
109  std::vector<std::vector<MonitorElement*> > p_convFractionVsEta_;
110  std::vector<std::vector<std::vector<MonitorElement*> > > p_convFractionVsPhi_;
111  std::vector<std::vector<MonitorElement*> > p_convFractionVsEt_;
112 
113  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsEta_;
114  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsPhi_;
115  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsEt_;
116 
118 
121 
124 
126 
127  double cutStep_;
131 
132  double etMin;
133  double etMax;
134  int etBin;
135  double etaMin;
136  double etaMax;
137  int etaBin;
138  double phiMin;
139  double phiMax;
140  int phiBin;
141 
143  bool batch_;
144 
147 
148  std::stringstream currentFolder_;
149 
154 
155  std::vector<std::string> types_;
156  std::vector<std::string> parts_;
157 
158 
159 };
160 
161 
162 
163 
164 
165 #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
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:41