CMS 3D CMS Logo

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 
27 
28 //DQM services
32 
33 //
34 
35 #include "RooGlobalFunc.h"
36 #include "RooRealVar.h"
37 #include "RooDataSet.h"
38 #include "RooBreitWigner.h"
39 #include "RooDataHist.h"
40 #include "RooFitResult.h"
41 
42 #include <vector>
43 #include <string>
44 
56 // forward declarations
57 class TFile;
58 class TH1F;
59 class TH2F;
60 class TProfile;
61 class TTree;
62 
63 
65 {
66 
67  public:
68 
69  //
70  explicit PhotonOfflineClient( const edm::ParameterSet& pset ) ;
71  virtual ~PhotonOfflineClient();
72 
73 
74  // virtual void analyze(const edm::Event&, const edm::EventSetup& ) ;
75  // virtual void beginJob() ;
76  //virtual void endJob() ;
77  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
78 
79  // virtual void endLuminosityBlock( const edm::LuminosityBlock& , const edm::EventSetup& ) ;
80  //virtual void endRun(const edm::Run& , const edm::EventSetup& ) ;
81  //virtual void runClient();
82 
83  virtual void runClient(DQMStore::IBooker& iBooker, DQMStore::IGetter& iGetter );
84  MonitorElement* bookHisto(DQMStore::IBooker& iBooker,std::string histoName, std::string title, int bin, double min, double max);
85 
86  void book2DHistoVector(DQMStore::IBooker& iBooker,std::vector<std::vector<MonitorElement*> >& vecOfHist,
87  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  void book3DHistoVector(DQMStore::IBooker& iBooker, std::vector<std::vector<std::vector<MonitorElement*> > >& vecOfHist,
91  std::string histoType, std::string histoName, std::string title,
92  int xbin, double xmin, double xmax,
93  int ybin=1,double ymin=1, double ymax=2);
94 
95 
96 
97 
99 
100  private:
101 
109 
114 
115  std::vector<std::vector<MonitorElement*> > p_convFractionVsEta_;
116  std::vector<std::vector<std::vector<MonitorElement*> > > p_convFractionVsPhi_;
117  std::vector<std::vector<MonitorElement*> > p_convFractionVsEt_;
118 
119  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsEta_;
120  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsPhi_;
121  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsEt_;
122 
124 
127 
130 
132 
133  double cutStep_;
137 
138  double etMin;
139  double etMax;
140  int etBin;
141  double etaMin;
142  double etaMax;
143  int etaBin;
144  double phiMin;
145  double phiMax;
146  int phiBin;
147 
149  bool batch_;
150 
153 
154  std::stringstream currentFolder_;
155 
160 
161  std::vector<std::string> types_;
162  std::vector<std::string> parts_;
163 
164 
165 };
166 
167 
168 
169 
170 
171 #endif
numerator
Definition: cuy.py:483
std::vector< std::string > parts_
PhotonOfflineClient(const edm::ParameterSet &pset)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
std::vector< std::vector< MonitorElement * > > p_badChannelsFractionVsEta_
std::vector< std::string > types_
std::vector< std::vector< MonitorElement * > > p_convFractionVsEta_
void book2DHistoVector(DQMStore::IBooker &iBooker, std::vector< std::vector< MonitorElement * > > &vecOfHist, 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 * > > p_convFractionVsEt_
MonitorElement * p_convFractionVsEtaLoose_
MonitorElement * p_vertexReconstructionEfficiencyVsEta_
MonitorElement * retrieveHisto(DQMStore::IGetter &iGetter, std::string dir, std::string name)
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_
bin
set the eta bin as selection string.
denominator
Definition: cuy.py:484
void book3DHistoVector(DQMStore::IBooker &iBooker, std::vector< std::vector< std::vector< MonitorElement * > > > &vecOfHist, std::string histoType, std::string histoName, std::string title, int xbin, double xmin, double xmax, int ybin=1, double ymin=1, double ymax=2)
virtual void runClient(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
MonitorElement * p_efficiencyVsEtaHLT_
MonitorElement * p_efficiencyVsEtLoose_
MonitorElement * p_efficiencyVsEtaTight_
MonitorElement * p_convFractionVsEtTight_
dbl *** dir
Definition: mlp_gen.cc:35
std::vector< std::vector< MonitorElement * > > p_badChannelsFractionVsEt_
edm::ParameterSet parameters_
MonitorElement * p_convFractionVsEtLoose_
MonitorElement * bookHisto(DQMStore::IBooker &iBooker, std::string histoName, std::string title, int bin, double min, double max)
std::vector< std::vector< std::vector< MonitorElement * > > > p_convFractionVsPhi_
MonitorElement * p_efficiencyVsEtTight_