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 #include "TFile.h"
15 #include "TH1.h"
16 #include "TH2.h"
17 #include "TTree.h"
18 #include "TVector3.h"
19 #include "TProfile.h"
20 //
21 
26 
27 //DQM services
30 
31 //
32 
33 #include "RooGlobalFunc.h"
34 #include "RooRealVar.h"
35 #include "RooDataSet.h"
36 #include "RooBreitWigner.h"
37 #include "RooDataHist.h"
38 #include "RooFitResult.h"
39 
40 #include <vector>
41 #include <string>
42 
53 // forward declarations
54 class TFile;
55 class TH1F;
56 class TH2F;
57 class TProfile;
58 class TTree;
59 
61 public:
62  //
64  ~PhotonOfflineClient() override;
65 
66  // virtual void analyze(const edm::Event&, const edm::EventSetup& ) ;
67  // virtual void beginJob() ;
68  //virtual void endJob() ;
70 
71  // virtual void endLuminosityBlock( const edm::LuminosityBlock& , const edm::EventSetup& ) ;
72  //virtual void endRun(const edm::Run& , const edm::EventSetup& ) ;
73  //virtual void runClient();
74 
75  virtual void runClient(DQMStore::IBooker& iBooker, DQMStore::IGetter& iGetter);
77  DQMStore::IBooker& iBooker, std::string histoName, std::string title, int bin, double min, double max);
78 
80  std::vector<std::vector<MonitorElement*> >& vecOfHist,
81  std::string histoType,
82  std::string histoName,
83  std::string title,
84  int xbin,
85  double xmin,
86  double xmax,
87  int ybin = 1,
88  double ymin = 1,
89  double ymax = 2);
91  std::vector<std::vector<std::vector<MonitorElement*> > >& vecOfHist,
92  std::string histoType,
93  std::string histoName,
94  std::string title,
95  int xbin,
96  double xmin,
97  double xmax,
98  int ybin = 1,
99  double ymin = 1,
100  double ymax = 2);
101 
103 
104 private:
112 
117 
118  std::vector<std::vector<MonitorElement*> > p_convFractionVsEta_;
119  std::vector<std::vector<std::vector<MonitorElement*> > > p_convFractionVsPhi_;
120  std::vector<std::vector<MonitorElement*> > p_convFractionVsEt_;
121 
122  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsEta_;
123  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsPhi_;
124  std::vector<std::vector<MonitorElement*> > p_badChannelsFractionVsEt_;
125 
127 
130 
132 
134 
135  double cutStep_;
139 
140  double etMin;
141  double etMax;
142  int etBin;
143  double etaMin;
144  double etaMax;
145  int etaBin;
146  double phiMin;
147  double phiMax;
148  int phiBin;
149 
151  bool batch_;
152 
155 
156  std::stringstream currentFolder_;
157 
162 
163  std::vector<std::string> types_;
164  std::vector<std::string> parts_;
165 };
166 
167 #endif
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_
MonitorElement * retrieveHisto(DQMStore::IGetter &iGetter, std::string dir, std::string name)
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_
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 * bookHisto(DQMStore::IBooker &iBooker, std::string histoName, std::string title, int bin, double min, double max)
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_
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_