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,
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,
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
PhotonOfflineClient::p_convFractionVsEt_
std::vector< std::vector< MonitorElement * > > p_convFractionVsEt_
Definition: PhotonOfflineClient.h:120
DQMEDHarvester.h
PhotonOfflineClient::etMax
double etMax
Definition: PhotonOfflineClient.h:141
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
PositionCalc.h
PhotonOfflineClient::book3DHistoVector
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)
Definition: PhotonOfflineClient.cc:487
MessageLogger.h
PhotonOfflineClient::histo_index_invMass_
int histo_index_invMass_
Definition: PhotonOfflineClient.h:161
PhotonOfflineClient::p_convFractionVsEtaTight_
MonitorElement * p_convFractionVsEtaTight_
Definition: PhotonOfflineClient.h:115
min
T min(T a, T b)
Definition: MathUtil.h:58
PhotonOfflineClient::p_efficiencyVsEtaTight_
MonitorElement * p_efficiencyVsEtaTight_
Definition: PhotonOfflineClient.h:108
PhotonOfflineClient::bookHisto
MonitorElement * bookHisto(DQMStore::IBooker &iBooker, std::string histoName, std::string title, int bin, double min, double max)
Definition: PhotonOfflineClient.cc:396
PhotonOfflineClient::numberOfSteps_
int numberOfSteps_
Definition: PhotonOfflineClient.h:136
PhotonOfflineClient::p_convFractionVsEtaLoose_
MonitorElement * p_convFractionVsEtaLoose_
Definition: PhotonOfflineClient.h:113
PhotonOfflineClient::p_badChannelsFractionVsEt_
std::vector< std::vector< MonitorElement * > > p_badChannelsFractionVsEt_
Definition: PhotonOfflineClient.h:124
DQMStore.h
PhotonOfflineClient::p_convFractionVsEtLoose_
MonitorElement * p_convFractionVsEtLoose_
Definition: PhotonOfflineClient.h:114
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
PhotonOfflineClient::p_convFractionVsPhi_
std::vector< std::vector< std::vector< MonitorElement * > > > p_convFractionVsPhi_
Definition: PhotonOfflineClient.h:119
PhotonOfflineClient::p_efficiencyVsEtLoose_
MonitorElement * p_efficiencyVsEtLoose_
Definition: PhotonOfflineClient.h:107
PhotonOfflineClient::histo_index_conversions_
int histo_index_conversions_
Definition: PhotonOfflineClient.h:159
MakerMacros.h
PhotonOfflineClient::minimalSetOfHistos_
bool minimalSetOfHistos_
Definition: PhotonOfflineClient.h:137
L1TOccupancyClient_cfi.ymax
ymax
Definition: L1TOccupancyClient_cfi.py:43
Service.h
PhotonOfflineClient::currentFolder_
std::stringstream currentFolder_
Definition: PhotonOfflineClient.h:156
PhotonOfflineClient
Definition: PhotonOfflineClient.h:60
PhotonOfflineClient::p_efficiencyVsEtaHLT_
MonitorElement * p_efficiencyVsEtaHLT_
Definition: PhotonOfflineClient.h:110
PhotonOfflineClient::p_efficiencyVsEtTight_
MonitorElement * p_efficiencyVsEtTight_
Definition: PhotonOfflineClient.h:109
PhotonOfflineClient::p_efficiencyVsEtaLoose_
MonitorElement * p_efficiencyVsEtaLoose_
Definition: PhotonOfflineClient.h:106
PhotonOfflineClient::cutStep_
double cutStep_
Definition: PhotonOfflineClient.h:135
PhotonOfflineClient::histo_index_efficiency_
int histo_index_efficiency_
Definition: PhotonOfflineClient.h:160
PhotonOfflineClient::inputFileName_
std::string inputFileName_
Definition: PhotonOfflineClient.h:154
PhotonOfflineClient::verbosity_
int verbosity_
Definition: PhotonOfflineClient.h:131
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PhotonOfflineClient::phiBin
int phiBin
Definition: PhotonOfflineClient.h:148
TFileService.h
PhotonOfflineClient::etaBin
int etaBin
Definition: PhotonOfflineClient.h:145
PhotonOfflineClient::phiMin
double phiMin
Definition: PhotonOfflineClient.h:146
edm::ParameterSet
Definition: ParameterSet.h:47
PhotonOfflineClient::p_convFractionVsEtTight_
MonitorElement * p_convFractionVsEtTight_
Definition: PhotonOfflineClient.h:116
PhotonOfflineClient::types_
std::vector< std::string > types_
Definition: PhotonOfflineClient.h:163
Event.h
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
PhotonOfflineClient::runClient
virtual void runClient(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
Definition: PhotonOfflineClient.cc:74
PhotonOfflineClient::etMin
double etMin
Definition: PhotonOfflineClient.h:140
PhotonOfflineClient::dividePlots
void dividePlots(MonitorElement *dividend, MonitorElement *numerator, MonitorElement *denominator)
Definition: PhotonOfflineClient.cc:357
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
HLTTauDQMOffline_cfi.numerator
numerator
Definition: HLTTauDQMOffline_cfi.py:179
PhotonOfflineClient::book2DHistoVector
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)
Definition: PhotonOfflineClient.cc:418
PhotonOfflineClient::etaMax
double etaMax
Definition: PhotonOfflineClient.h:144
PhotonOfflineClient::batch_
bool batch_
Definition: PhotonOfflineClient.h:151
PhotonOfflineClient::phiMax
double phiMax
Definition: PhotonOfflineClient.h:147
PhotonOfflineClient::outputFileName_
std::string outputFileName_
Definition: PhotonOfflineClient.h:153
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
PhotonOfflineClient::p_badChannelsFractionVsEta_
std::vector< std::vector< MonitorElement * > > p_badChannelsFractionVsEta_
Definition: PhotonOfflineClient.h:122
DQMEDHarvester
Definition: DQMEDHarvester.py:1
HLTTauDQMOffline_cfi.denominator
denominator
Definition: HLTTauDQMOffline_cfi.py:180
PhotonOfflineClient::parameters_
edm::ParameterSet parameters_
Definition: PhotonOfflineClient.h:133
L1TOccupancyClient_cfi.ymin
ymin
Definition: L1TOccupancyClient_cfi.py:43
PhotonOfflineClient::p_convFractionVsEta_
std::vector< std::vector< MonitorElement * > > p_convFractionVsEta_
Definition: PhotonOfflineClient.h:118
PhotonOfflineClient::parts_
std::vector< std::string > parts_
Definition: PhotonOfflineClient.h:164
dqm::implementation::IGetter
Definition: DQMStore.h:484
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition: TrackerOfflineValidation_Dqm_cff.py:11
PhotonOfflineClient::~PhotonOfflineClient
~PhotonOfflineClient() override
Definition: PhotonOfflineClient.cc:64
HltBtagPostValidation_cff.histoName
histoName
Definition: HltBtagPostValidation_cff.py:17
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
EventSetup.h
PhotonOfflineClient::histo_index_photons_
int histo_index_photons_
Definition: PhotonOfflineClient.h:158
PhotonOfflineClient::excludeBkgHistos_
bool excludeBkgHistos_
Definition: PhotonOfflineClient.h:138
Exception.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
PhotonOfflineClient::p_vertexReconstructionEfficiencyVsEta_
MonitorElement * p_vertexReconstructionEfficiencyVsEta_
Definition: PhotonOfflineClient.h:126
PhotonOfflineClient::standAlone_
bool standAlone_
Definition: PhotonOfflineClient.h:150
PhotonOfflineClient::etBin
int etBin
Definition: PhotonOfflineClient.h:142
ParameterSet.h
PhotonOfflineClient::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: PhotonOfflineClient.cc:68
PhotonOfflineClient::PhotonOfflineClient
PhotonOfflineClient(const edm::ParameterSet &pset)
Definition: PhotonOfflineClient.cc:22
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition: TrackerOfflineValidation_Dqm_cff.py:10
PhotonOfflineClient::p_badChannelsFractionVsPhi_
std::vector< std::vector< MonitorElement * > > p_badChannelsFractionVsPhi_
Definition: PhotonOfflineClient.h:123
PhotonOfflineClient::etaMin
double etaMin
Definition: PhotonOfflineClient.h:143
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
PhotonOfflineClient::analyzerName_
std::string analyzerName_
Definition: PhotonOfflineClient.h:105
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
PhotonOfflineClient::p_efficiencyVsEtHLT_
MonitorElement * p_efficiencyVsEtHLT_
Definition: PhotonOfflineClient.h:111
PhotonOfflineClient::retrieveHisto
MonitorElement * retrieveHisto(DQMStore::IGetter &iGetter, std::string dir, std::string name)
Definition: PhotonOfflineClient.cc:579