CMS 3D CMS Logo

EgammaObjects.h
Go to the documentation of this file.
1 #ifndef EgammaObjects_h
2 #define EgammaObjects_h
3 
4 #include <string>
5 
11 
13 
16 
17 #include "TFile.h"
18 #include "TH1D.h"
19 #include "TH2D.h"
20 
21 namespace edm {
22  class HepMCProduct;
23 }
24 
26 public:
27  explicit EgammaObjects(const edm::ParameterSet&);
28  ~EgammaObjects() override;
29 
30  void analyze(const edm::Event&, const edm::EventSetup&) override;
31  void beginJob() override;
32  void endJob() override;
33 
34 private:
35  TFile* rootFile_;
36 
39 
42 
43  int EtCut;
44 
45  double hist_min_Et_;
46  double hist_max_Et_;
48 
49  double hist_min_E_;
50  double hist_max_E_;
52 
53  double hist_min_Eta_;
54  double hist_max_Eta_;
56 
57  double hist_min_Phi_;
58  double hist_max_Phi_;
60 
64 
68 
72 
76 
80 
84 
88 
89  TH1D* hist_Et_;
101 
102  TH1D* hist_E_;
114 
115  TH1D* hist_Eta_;
127 
128  TH1D* hist_Phi_;
140 
145 
150 
155 
160 
165 
170 
171  void loadCMSSWObjects(const edm::ParameterSet& ps);
172  void loadHistoParameters(const edm::ParameterSet& ps);
173 
175  void createTempHistoObjects();
176 
177  void analyzePhotons(const edm::Event&, const edm::EventSetup&);
178  void analyzeElectrons(const edm::Event&, const edm::EventSetup&);
179 
182  void fitHistos();
183 
184  void applyLabels();
185  void setDrawOptions();
186  void saveHistos();
187 
188  double findRecoMass(const reco::Photon& pOne, const reco::Photon& pTwo);
189  double findRecoMass(const reco::GsfElectron& eOne, const reco::GsfElectron& eTwo);
190 
191  float ecalEta(float EtaParticle, float Zvertex, float plane_Radius);
192 };
193 #endif
EgammaObjects::hist_min_E_
double hist_min_E_
Definition: EgammaObjects.h:49
EgammaObjects::hist_min_Eta_
double hist_min_Eta_
Definition: EgammaObjects.h:53
EgammaObjects::hist_EndcapOnly_recoMass_
TH1D * hist_EndcapOnly_recoMass_
Definition: EgammaObjects.h:143
EgammaObjects::loadHistoParameters
void loadHistoParameters(const edm::ParameterSet &ps)
Definition: EgammaObjects.cc:96
EgammaObjects::analyzePhotons
void analyzePhotons(const edm::Event &, const edm::EventSetup &)
Definition: EgammaObjects.cc:431
EgammaObjects::hist_EOverTruthVsPhi_
TH1D * hist_EOverTruthVsPhi_
Definition: EgammaObjects.h:109
EgammaObjects::hist_resolutionEtaVsE_
TH1D * hist_resolutionEtaVsE_
Definition: EgammaObjects.h:124
EgammaObjects::hist_min_EOverTruth_
double hist_min_EOverTruth_
Definition: EgammaObjects.h:65
EgammaObjects::hist_Mixed_recoMass_
TH1D * hist_Mixed_recoMass_
Definition: EgammaObjects.h:144
EgammaObjects::hist_deltaEtaVsEt_
TH1D * hist_deltaEtaVsEt_
Definition: EgammaObjects.h:119
EgammaObjects::hist_EtaOverTruth_
TH1D * hist_EtaOverTruth_
Definition: EgammaObjects.h:116
EgammaObjects::hist_Et_
TH1D * hist_Et_
Definition: EgammaObjects.h:89
EgammaObjects::_TEMP_scatterPlot_EtOverTruthVsEta_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEta_
Definition: EgammaObjects.h:153
EgammaObjects::hist_min_deltaEta_
double hist_min_deltaEta_
Definition: EgammaObjects.h:77
edm::EDGetTokenT< edm::HepMCProduct >
edm
HLT enums.
Definition: AlignableModifier.h:19
EgammaObjects::_TEMP_scatterPlot_EtOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsPhi_
Definition: EgammaObjects.h:154
EgammaObjects::_TEMP_scatterPlot_deltaPhiVsEt_
TH2D * _TEMP_scatterPlot_deltaPhiVsEt_
Definition: EgammaObjects.h:166
EgammaObjects::hist_max_EtOverTruth_
double hist_max_EtOverTruth_
Definition: EgammaObjects.h:62
EgammaObjects::_TEMP_scatterPlot_deltaEtaVsE_
TH2D * _TEMP_scatterPlot_deltaEtaVsE_
Definition: EgammaObjects.h:162
EgammaObjects::hist_All_recoMass_
TH1D * hist_All_recoMass_
Definition: EgammaObjects.h:141
EgammaObjects::hist_resolutionEtVsPhi_
TH1D * hist_resolutionEtVsPhi_
Definition: EgammaObjects.h:100
EgammaObjects::hist_recoMass_withBackgroud_10EtCut_
TH1D * hist_recoMass_withBackgroud_10EtCut_
Definition: EgammaObjects.h:148
EgammaObjects::hist_PhiNumRecoOverNumTrue_
TH1D * hist_PhiNumRecoOverNumTrue_
Definition: EgammaObjects.h:131
EgammaObjects::createTempHistoObjects
void createTempHistoObjects()
Definition: EgammaObjects.cc:290
EgammaObjects::rootFile_
TFile * rootFile_
Definition: EgammaObjects.h:35
DQMStore.h
EgammaObjects::hist_deltaEtaVsE_
TH1D * hist_deltaEtaVsE_
Definition: EgammaObjects.h:120
EgammaObjects::hist_ENumRecoOverNumTrue_
TH1D * hist_ENumRecoOverNumTrue_
Definition: EgammaObjects.h:105
EgammaObjects::hist_Phi_
TH1D * hist_Phi_
Definition: EgammaObjects.h:128
EgammaObjects::hist_bins_Eta_
int hist_bins_Eta_
Definition: EgammaObjects.h:55
EDAnalyzer.h
EgammaObjects::hist_min_recoMass_
double hist_min_recoMass_
Definition: EgammaObjects.h:85
EgammaObjects::hist_bins_PhiOverTruth_
int hist_bins_PhiOverTruth_
Definition: EgammaObjects.h:75
EgammaObjects::_TEMP_scatterPlot_EOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_EOverTruthVsPhi_
Definition: EgammaObjects.h:159
EgammaObjects::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: EgammaObjects.cc:424
EgammaObjects::hist_resolutionEVsPhi_
TH1D * hist_resolutionEVsPhi_
Definition: EgammaObjects.h:113
EgammaObjects::hist_EtaNumRecoOverNumTrue_
TH1D * hist_EtaNumRecoOverNumTrue_
Definition: EgammaObjects.h:118
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
EgammaObjects::hist_deltaPhiVsEt_
TH1D * hist_deltaPhiVsEt_
Definition: EgammaObjects.h:132
EgammaObjects::hist_max_Et_
double hist_max_Et_
Definition: EgammaObjects.h:46
EgammaObjects::hist_deltaPhiVsE_
TH1D * hist_deltaPhiVsE_
Definition: EgammaObjects.h:133
EgammaObjects::hist_max_deltaPhi_
double hist_max_deltaPhi_
Definition: EgammaObjects.h:82
EgammaObjects::hist_min_EtaOverTruth_
double hist_min_EtaOverTruth_
Definition: EgammaObjects.h:69
EgammaObjects::_TEMP_scatterPlot_deltaPhiVsEta_
TH2D * _TEMP_scatterPlot_deltaPhiVsEta_
Definition: EgammaObjects.h:168
MakerMacros.h
EgammaObjects::hist_PhiEfficiency_
TH1D * hist_PhiEfficiency_
Definition: EgammaObjects.h:130
Photon.h
EgammaObjects::hist_min_Et_
double hist_min_Et_
Definition: EgammaObjects.h:45
EgammaObjects::EgammaObjects
EgammaObjects(const edm::ParameterSet &)
Definition: EgammaObjects.cc:19
EgammaObjects::fitHistos
void fitHistos()
Definition: EgammaObjects.cc:956
EgammaObjects::hist_resolutionEVsE_
TH1D * hist_resolutionEVsE_
Definition: EgammaObjects.h:111
EgammaObjects::hist_max_PhiOverTruth_
double hist_max_PhiOverTruth_
Definition: EgammaObjects.h:74
EgammaObjects::hist_max_Eta_
double hist_max_Eta_
Definition: EgammaObjects.h:54
EgammaObjects::hist_BarrelOnly_recoMass_
TH1D * hist_BarrelOnly_recoMass_
Definition: EgammaObjects.h:142
EgammaObjects::hist_EOverTruthVsE_
TH1D * hist_EOverTruthVsE_
Definition: EgammaObjects.h:107
EgammaObjects::hist_EtNumRecoOverNumTrue_
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:92
EgammaObjects::hist_max_deltaEta_
double hist_max_deltaEta_
Definition: EgammaObjects.h:78
EgammaObjects::hist_bins_recoMass_
int hist_bins_recoMass_
Definition: EgammaObjects.h:87
EgammaObjects::hist_resolutionPhiVsEta_
TH1D * hist_resolutionPhiVsEta_
Definition: EgammaObjects.h:138
EgammaObjects::~EgammaObjects
~EgammaObjects() override
Definition: EgammaObjects.cc:142
EgammaObjects::hist_resolutionEtaVsPhi_
TH1D * hist_resolutionEtaVsPhi_
Definition: EgammaObjects.h:126
EgammaObjects::hist_deltaPhiVsPhi_
TH1D * hist_deltaPhiVsPhi_
Definition: EgammaObjects.h:135
EgammaObjects::hist_EtOverTruthVsPhi_
TH1D * hist_EtOverTruthVsPhi_
Definition: EgammaObjects.h:96
EgammaObjects::hist_resolutionEtaVsEt_
TH1D * hist_resolutionEtaVsEt_
Definition: EgammaObjects.h:123
EgammaObjects::hist_EtOverTruth_
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:90
EgammaObjects::hist_EOverTruth_
TH1D * hist_EOverTruth_
Definition: EgammaObjects.h:103
EgammaObjects::ecalEta
float ecalEta(float EtaParticle, float Zvertex, float plane_Radius)
Definition: EgammaObjects.cc:771
reco::GsfElectron
Definition: GsfElectron.h:34
GsfElectron.h
EgammaObjects::findRecoMass
double findRecoMass(const reco::Photon &pOne, const reco::Photon &pTwo)
Definition: EgammaObjects.cc:751
EgammaObjects::hist_resolutionEtVsEta_
TH1D * hist_resolutionEtVsEta_
Definition: EgammaObjects.h:99
EgammaObjects::hist_bins_Phi_
int hist_bins_Phi_
Definition: EgammaObjects.h:59
EgammaObjects::hist_max_recoMass_
double hist_max_recoMass_
Definition: EgammaObjects.h:86
EgammaObjects::_TEMP_scatterPlot_EOverTruthVsEta_
TH2D * _TEMP_scatterPlot_EOverTruthVsEta_
Definition: EgammaObjects.h:158
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EgammaObjects::hist_deltaPhiVsEta_
TH1D * hist_deltaPhiVsEta_
Definition: EgammaObjects.h:134
EgammaObjects::hist_Eta_
TH1D * hist_Eta_
Definition: EgammaObjects.h:115
EgammaObjects::hist_resolutionPhiVsE_
TH1D * hist_resolutionPhiVsE_
Definition: EgammaObjects.h:137
EgammaObjects::particleID
int particleID
Definition: EgammaObjects.h:40
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
EgammaObjects::hist_deltaEtaVsPhi_
TH1D * hist_deltaEtaVsPhi_
Definition: EgammaObjects.h:122
EgammaObjects::hist_resolutionPhiVsEt_
TH1D * hist_resolutionPhiVsEt_
Definition: EgammaObjects.h:136
EgammaObjects::_TEMP_scatterPlot_deltaEtaVsEta_
TH2D * _TEMP_scatterPlot_deltaEtaVsEta_
Definition: EgammaObjects.h:163
EgammaObjects::hist_resolutionEVsEta_
TH1D * hist_resolutionEVsEta_
Definition: EgammaObjects.h:112
EgammaObjects::particleString
std::string particleString
Definition: EgammaObjects.h:41
EgammaObjects::applyLabels
void applyLabels()
Definition: EgammaObjects.cc:1002
EgammaObjects::_TEMP_scatterPlot_EOverTruthVsE_
TH2D * _TEMP_scatterPlot_EOverTruthVsE_
Definition: EgammaObjects.h:157
EgammaObjects::hist_bins_EtaOverTruth_
int hist_bins_EtaOverTruth_
Definition: EgammaObjects.h:71
EgammaObjects::hist_EtOverTruthVsE_
TH1D * hist_EtOverTruthVsE_
Definition: EgammaObjects.h:94
EgammaObjects::_TEMP_scatterPlot_deltaEtaVsPhi_
TH2D * _TEMP_scatterPlot_deltaEtaVsPhi_
Definition: EgammaObjects.h:164
EgammaObjects::hist_EtEfficiency_
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:91
EgammaObjects::hist_deltaEtaVsEta_
TH1D * hist_deltaEtaVsEta_
Definition: EgammaObjects.h:121
EgammaObjects::_TEMP_scatterPlot_deltaEtaVsEt_
TH2D * _TEMP_scatterPlot_deltaEtaVsEt_
Definition: EgammaObjects.h:161
EgammaObjects::createBookedHistoObjects
void createBookedHistoObjects()
Definition: EgammaObjects.cc:151
EgammaObjects::hist_resolutionEtaVsEta_
TH1D * hist_resolutionEtaVsEta_
Definition: EgammaObjects.h:125
EgammaObjects::hist_bins_Et_
int hist_bins_Et_
Definition: EgammaObjects.h:47
EgammaObjects::hist_EtOverTruthVsEt_
TH1D * hist_EtOverTruthVsEt_
Definition: EgammaObjects.h:93
EgammaObjects::hist_EtOverTruthVsEta_
TH1D * hist_EtOverTruthVsEta_
Definition: EgammaObjects.h:95
EgammaObjects::beginJob
void beginJob() override
Definition: EgammaObjects.cc:144
EgammaObjects::getDeltaResHistosViaSlicing
void getDeltaResHistosViaSlicing()
Definition: EgammaObjects.cc:820
EgammaObjects::setDrawOptions
void setDrawOptions()
Definition: EgammaObjects.cc:1128
edm::EventSetup
Definition: EventSetup.h:58
EgammaObjects::hist_recoMass_withBackgroud_NoEtCut_
TH1D * hist_recoMass_withBackgroud_NoEtCut_
Definition: EgammaObjects.h:146
EgammaObjects::hist_bins_EOverTruth_
int hist_bins_EOverTruth_
Definition: EgammaObjects.h:67
EgammaObjects::endJob
void endJob() override
Definition: EgammaObjects.cc:806
EgammaObjects::hist_bins_deltaPhi_
int hist_bins_deltaPhi_
Definition: EgammaObjects.h:83
reco::Photon
Definition: Photon.h:21
EgammaObjects::hist_resolutionEtVsE_
TH1D * hist_resolutionEtVsE_
Definition: EgammaObjects.h:98
EgammaObjects::_TEMP_scatterPlot_EtOverTruthVsE_
TH2D * _TEMP_scatterPlot_EtOverTruthVsE_
Definition: EgammaObjects.h:152
EgammaObjects::hist_EtaEfficiency_
TH1D * hist_EtaEfficiency_
Definition: EgammaObjects.h:117
EgammaObjects::hist_bins_deltaEta_
int hist_bins_deltaEta_
Definition: EgammaObjects.h:79
EgammaObjects::_TEMP_scatterPlot_EtOverTruthVsEt_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEt_
Definition: EgammaObjects.h:151
EgammaObjects::hist_recoMass_withBackgroud_5EtCut_
TH1D * hist_recoMass_withBackgroud_5EtCut_
Definition: EgammaObjects.h:147
Frameworkfwd.h
EgammaObjects::_TEMP_scatterPlot_deltaPhiVsPhi_
TH2D * _TEMP_scatterPlot_deltaPhiVsPhi_
Definition: EgammaObjects.h:169
EgammaObjects::hist_resolutionEtVsEt_
TH1D * hist_resolutionEtVsEt_
Definition: EgammaObjects.h:97
EgammaObjects::hist_recoMass_withBackgroud_20EtCut_
TH1D * hist_recoMass_withBackgroud_20EtCut_
Definition: EgammaObjects.h:149
EgammaObjects
Definition: EgammaObjects.h:25
EgammaObjects::hist_min_Phi_
double hist_min_Phi_
Definition: EgammaObjects.h:57
EgammaObjects::hist_max_EtaOverTruth_
double hist_max_EtaOverTruth_
Definition: EgammaObjects.h:70
EgammaObjects::hist_E_
TH1D * hist_E_
Definition: EgammaObjects.h:102
EgammaObjects::hist_bins_EtOverTruth_
int hist_bins_EtOverTruth_
Definition: EgammaObjects.h:63
EgammaObjects::hist_bins_E_
int hist_bins_E_
Definition: EgammaObjects.h:51
EgammaObjects::_TEMP_scatterPlot_deltaPhiVsE_
TH2D * _TEMP_scatterPlot_deltaPhiVsE_
Definition: EgammaObjects.h:167
EgammaObjects::hist_min_PhiOverTruth_
double hist_min_PhiOverTruth_
Definition: EgammaObjects.h:73
EgammaObjects::hist_resolutionPhiVsPhi_
TH1D * hist_resolutionPhiVsPhi_
Definition: EgammaObjects.h:139
EgammaObjects::hist_EEfficiency_
TH1D * hist_EEfficiency_
Definition: EgammaObjects.h:104
HepMCProduct
EgammaObjects::hist_PhiOverTruth_
TH1D * hist_PhiOverTruth_
Definition: EgammaObjects.h:129
EgammaObjects::EtCut
int EtCut
Definition: EgammaObjects.h:43
ParameterSet.h
EgammaObjects::hist_EOverTruthVsEt_
TH1D * hist_EOverTruthVsEt_
Definition: EgammaObjects.h:106
EgammaObjects::hist_EOverTruthVsEta_
TH1D * hist_EOverTruthVsEta_
Definition: EgammaObjects.h:108
EgammaObjects::RecoCollectionT_
edm::EDGetTokenT< reco::GsfElectronCollection > RecoCollectionT_
Definition: EgammaObjects.h:38
EgammaObjects::hist_max_Phi_
double hist_max_Phi_
Definition: EgammaObjects.h:58
EgammaObjects::hist_max_E_
double hist_max_E_
Definition: EgammaObjects.h:50
EgammaObjects::hist_min_deltaPhi_
double hist_min_deltaPhi_
Definition: EgammaObjects.h:81
edm::Event
Definition: Event.h:73
EgammaObjects::MCTruthCollectionT_
edm::EDGetTokenT< edm::HepMCProduct > MCTruthCollectionT_
Definition: EgammaObjects.h:37
EgammaObjects::getEfficiencyHistosViaDividing
void getEfficiencyHistosViaDividing()
Definition: EgammaObjects.cc:944
EgammaObjects::hist_min_EtOverTruth_
double hist_min_EtOverTruth_
Definition: EgammaObjects.h:61
EgammaObjects::loadCMSSWObjects
void loadCMSSWObjects(const edm::ParameterSet &ps)
Definition: EgammaObjects.cc:91
EgammaObjects::_TEMP_scatterPlot_EOverTruthVsEt_
TH2D * _TEMP_scatterPlot_EOverTruthVsEt_
Definition: EgammaObjects.h:156
EgammaObjects::hist_max_EOverTruth_
double hist_max_EOverTruth_
Definition: EgammaObjects.h:66
EgammaObjects::analyzeElectrons
void analyzeElectrons(const edm::Event &, const edm::EventSetup &)
Definition: EgammaObjects.cc:594
EgammaObjects::saveHistos
void saveHistos()
Definition: EgammaObjects.cc:1191
EgammaObjects::hist_resolutionEVsEt_
TH1D * hist_resolutionEVsEt_
Definition: EgammaObjects.h:110