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
TH1D * hist_resolutionEVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsPhi_
double hist_min_deltaEta_
Definition: EgammaObjects.h:77
int hist_bins_deltaEta_
Definition: EgammaObjects.h:79
double hist_min_EtaOverTruth_
Definition: EgammaObjects.h:69
TH2D * _TEMP_scatterPlot_deltaEtaVsEta_
TH1D * hist_resolutionEVsE_
int hist_bins_deltaPhi_
Definition: EgammaObjects.h:83
TH2D * _TEMP_scatterPlot_deltaPhiVsPhi_
TH1D * hist_PhiEfficiency_
TH1D * hist_deltaEtaVsEta_
float ecalEta(float EtaParticle, float Zvertex, float plane_Radius)
int hist_bins_recoMass_
Definition: EgammaObjects.h:87
void analyzePhotons(const edm::Event &, const edm::EventSetup &)
TH1D * hist_EOverTruth_
TH1D * hist_EtOverTruthVsEt_
Definition: EgammaObjects.h:93
TH1D * hist_resolutionEVsEta_
TH1D * hist_deltaEtaVsPhi_
TH1D * hist_EEfficiency_
TH1D * hist_EOverTruthVsEt_
TH1D * hist_recoMass_withBackgroud_20EtCut_
TH2D * _TEMP_scatterPlot_EtOverTruthVsE_
double hist_max_Eta_
Definition: EgammaObjects.h:54
TH2D * _TEMP_scatterPlot_deltaPhiVsE_
void getEfficiencyHistosViaDividing()
TH1D * hist_Mixed_recoMass_
double hist_min_PhiOverTruth_
Definition: EgammaObjects.h:73
double hist_max_Phi_
Definition: EgammaObjects.h:58
TH1D * hist_resolutionPhiVsPhi_
TH1D * hist_resolutionEtVsEta_
Definition: EgammaObjects.h:99
TH2D * _TEMP_scatterPlot_EOverTruthVsEta_
TH2D * _TEMP_scatterPlot_deltaPhiVsEt_
TH1D * hist_ENumRecoOverNumTrue_
TH1D * hist_deltaPhiVsPhi_
double hist_max_EtaOverTruth_
Definition: EgammaObjects.h:70
void loadHistoParameters(const edm::ParameterSet &ps)
double hist_min_Phi_
Definition: EgammaObjects.h:57
TH1D * hist_EOverTruthVsE_
double hist_min_Eta_
Definition: EgammaObjects.h:53
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:92
TH1D * hist_resolutionEVsEt_
void createTempHistoObjects()
TH1D * hist_resolutionEtVsPhi_
std::string particleString
Definition: EgammaObjects.h:41
void beginJob() override
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:90
int hist_bins_EOverTruth_
Definition: EgammaObjects.h:67
void analyze(const edm::Event &, const edm::EventSetup &) override
TH1D * hist_EOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEta_
TH1D * hist_EtOverTruthVsEta_
Definition: EgammaObjects.h:95
double hist_min_EtOverTruth_
Definition: EgammaObjects.h:61
TH1D * hist_EOverTruthVsEta_
void getDeltaResHistosViaSlicing()
TH1D * hist_resolutionEtVsE_
Definition: EgammaObjects.h:98
TH2D * _TEMP_scatterPlot_deltaEtaVsE_
double hist_max_recoMass_
Definition: EgammaObjects.h:86
TH1D * hist_PhiNumRecoOverNumTrue_
double hist_max_E_
Definition: EgammaObjects.h:50
TH1D * hist_PhiOverTruth_
double hist_min_deltaPhi_
Definition: EgammaObjects.h:81
TH1D * hist_recoMass_withBackgroud_5EtCut_
TH2D * _TEMP_scatterPlot_deltaEtaVsPhi_
TH1D * hist_resolutionEtVsEt_
Definition: EgammaObjects.h:97
TH2D * _TEMP_scatterPlot_EOverTruthVsEt_
double hist_max_deltaEta_
Definition: EgammaObjects.h:78
TH1D * hist_EtOverTruthVsE_
Definition: EgammaObjects.h:94
TH1D * hist_resolutionEtaVsE_
TH1D * hist_BarrelOnly_recoMass_
TH1D * hist_EndcapOnly_recoMass_
TH1D * hist_deltaPhiVsEt_
TH1D * hist_EtaOverTruth_
TH1D * hist_deltaPhiVsEta_
TH1D * hist_deltaEtaVsEt_
double hist_max_deltaPhi_
Definition: EgammaObjects.h:82
int hist_bins_EtOverTruth_
Definition: EgammaObjects.h:63
edm::EDGetTokenT< edm::HepMCProduct > MCTruthCollectionT_
Definition: EgammaObjects.h:37
TH1D * hist_recoMass_withBackgroud_10EtCut_
edm::EDGetTokenT< reco::GsfElectronCollection > RecoCollectionT_
Definition: EgammaObjects.h:38
TH1D * hist_resolutionPhiVsEt_
double hist_max_PhiOverTruth_
Definition: EgammaObjects.h:74
void analyzeElectrons(const edm::Event &, const edm::EventSetup &)
TH2D * _TEMP_scatterPlot_deltaPhiVsEta_
TH2D * _TEMP_scatterPlot_EOverTruthVsE_
double hist_max_EtOverTruth_
Definition: EgammaObjects.h:62
~EgammaObjects() override
double hist_min_E_
Definition: EgammaObjects.h:49
EgammaObjects(const edm::ParameterSet &)
TH1D * hist_All_recoMass_
TH2D * _TEMP_scatterPlot_deltaEtaVsEt_
double hist_min_Et_
Definition: EgammaObjects.h:45
TH2D * _TEMP_scatterPlot_EOverTruthVsPhi_
TH1D * hist_deltaEtaVsE_
TH1D * hist_resolutionEtaVsPhi_
TH1D * hist_EtOverTruthVsPhi_
Definition: EgammaObjects.h:96
TH1D * hist_deltaPhiVsE_
double hist_min_recoMass_
Definition: EgammaObjects.h:85
TH1D * hist_EtaEfficiency_
void endJob() override
HLT enums.
TH1D * hist_resolutionPhiVsE_
double hist_min_EOverTruth_
Definition: EgammaObjects.h:65
void loadCMSSWObjects(const edm::ParameterSet &ps)
TH1D * hist_recoMass_withBackgroud_NoEtCut_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEt_
int hist_bins_PhiOverTruth_
Definition: EgammaObjects.h:75
double findRecoMass(const reco::Photon &pOne, const reco::Photon &pTwo)
double hist_max_EOverTruth_
Definition: EgammaObjects.h:66
double hist_max_Et_
Definition: EgammaObjects.h:46
int hist_bins_EtaOverTruth_
Definition: EgammaObjects.h:71
TFile * rootFile_
Definition: EgammaObjects.h:35
void createBookedHistoObjects()
TH1D * hist_resolutionEtaVsEta_
TH1D * hist_resolutionPhiVsEta_
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:91
TH1D * hist_EtaNumRecoOverNumTrue_
TH1D * hist_resolutionEtaVsEt_