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 {class HepMCProduct;}
22 
24  public:
25  explicit EgammaObjects( const edm::ParameterSet& );
26  ~EgammaObjects() override;
27 
28  void analyze( const edm::Event&, const edm::EventSetup& ) override;
29  void beginJob() override;
30  void endJob() override;
31 
32  private:
33  TFile* rootFile_;
34 
37 
40 
41  int EtCut;
42 
43  double hist_min_Et_;
44  double hist_max_Et_;
46 
47  double hist_min_E_;
48  double hist_max_E_;
50 
51  double hist_min_Eta_;
52  double hist_max_Eta_;
54 
55  double hist_min_Phi_;
56  double hist_max_Phi_;
58 
62 
66 
70 
74 
78 
82 
86 
87  TH1D* hist_Et_;
99 
100  TH1D* hist_E_;
112 
113  TH1D* hist_Eta_;
125 
126  TH1D* hist_Phi_;
138 
143 
148 
153 
158 
163 
168 
169  void loadCMSSWObjects(const edm::ParameterSet& ps);
170  void loadHistoParameters(const edm::ParameterSet& ps);
171 
172  void createBookedHistoObjects();
173  void createTempHistoObjects();
174 
175  void analyzePhotons( const edm::Event&, const edm::EventSetup& );
176  void analyzeElectrons( const edm::Event&, const edm::EventSetup& );
177 
178  void getEfficiencyHistosViaDividing();
179  void getDeltaResHistosViaSlicing();
180  void fitHistos();
181 
182  void applyLabels();
183  void setDrawOptions();
184  void saveHistos();
185 
186  double findRecoMass(const reco::Photon& pOne, const reco::Photon& pTwo);
187  double findRecoMass(const reco::GsfElectron& eOne, const reco::GsfElectron& eTwo);
188 
189  float ecalEta(float EtaParticle , float Zvertex, float plane_Radius);
190 };
191 #endif
192 
TH1D * hist_resolutionEVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsPhi_
double hist_min_deltaEta_
Definition: EgammaObjects.h:75
int hist_bins_deltaEta_
Definition: EgammaObjects.h:77
double hist_min_EtaOverTruth_
Definition: EgammaObjects.h:67
TH2D * _TEMP_scatterPlot_deltaEtaVsEta_
TH1D * hist_resolutionEVsE_
int hist_bins_deltaPhi_
Definition: EgammaObjects.h:81
TH2D * _TEMP_scatterPlot_deltaPhiVsPhi_
TH1D * hist_PhiEfficiency_
TH1D * hist_deltaEtaVsEta_
int hist_bins_recoMass_
Definition: EgammaObjects.h:85
TH1D * hist_EOverTruth_
TH1D * hist_EtOverTruthVsEt_
Definition: EgammaObjects.h:91
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:52
TH2D * _TEMP_scatterPlot_deltaPhiVsE_
TH1D * hist_Mixed_recoMass_
double hist_min_PhiOverTruth_
Definition: EgammaObjects.h:71
double hist_max_Phi_
Definition: EgammaObjects.h:56
TH1D * hist_resolutionPhiVsPhi_
TH1D * hist_resolutionEtVsEta_
Definition: EgammaObjects.h:97
TH2D * _TEMP_scatterPlot_EOverTruthVsEta_
TH2D * _TEMP_scatterPlot_deltaPhiVsEt_
TH1D * hist_ENumRecoOverNumTrue_
TH1D * hist_deltaPhiVsPhi_
double hist_max_EtaOverTruth_
Definition: EgammaObjects.h:68
double hist_min_Phi_
Definition: EgammaObjects.h:55
TH1D * hist_EOverTruthVsE_
double hist_min_Eta_
Definition: EgammaObjects.h:51
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:90
TH1D * hist_resolutionEVsEt_
TH1D * hist_resolutionEtVsPhi_
Definition: EgammaObjects.h:98
std::string particleString
Definition: EgammaObjects.h:39
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:88
void beginJob()
Definition: Breakpoints.cc:14
int hist_bins_EOverTruth_
Definition: EgammaObjects.h:65
TH1D * hist_EOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEta_
TH1D * hist_EtOverTruthVsEta_
Definition: EgammaObjects.h:93
double hist_min_EtOverTruth_
Definition: EgammaObjects.h:59
TH1D * hist_EOverTruthVsEta_
TH1D * hist_resolutionEtVsE_
Definition: EgammaObjects.h:96
TH2D * _TEMP_scatterPlot_deltaEtaVsE_
double hist_max_recoMass_
Definition: EgammaObjects.h:84
TH1D * hist_PhiNumRecoOverNumTrue_
double hist_max_E_
Definition: EgammaObjects.h:48
TH1D * hist_PhiOverTruth_
double hist_min_deltaPhi_
Definition: EgammaObjects.h:79
TH1D * hist_recoMass_withBackgroud_5EtCut_
TH2D * _TEMP_scatterPlot_deltaEtaVsPhi_
TH1D * hist_resolutionEtVsEt_
Definition: EgammaObjects.h:95
TH2D * _TEMP_scatterPlot_EOverTruthVsEt_
double hist_max_deltaEta_
Definition: EgammaObjects.h:76
TH1D * hist_EtOverTruthVsE_
Definition: EgammaObjects.h:92
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:80
int hist_bins_EtOverTruth_
Definition: EgammaObjects.h:61
edm::EDGetTokenT< edm::HepMCProduct > MCTruthCollectionT_
Definition: EgammaObjects.h:35
TH1D * hist_recoMass_withBackgroud_10EtCut_
edm::EDGetTokenT< reco::GsfElectronCollection > RecoCollectionT_
Definition: EgammaObjects.h:36
TH1D * hist_resolutionPhiVsEt_
double hist_max_PhiOverTruth_
Definition: EgammaObjects.h:72
TH2D * _TEMP_scatterPlot_deltaPhiVsEta_
TH2D * _TEMP_scatterPlot_EOverTruthVsE_
double hist_max_EtOverTruth_
Definition: EgammaObjects.h:60
double hist_min_E_
Definition: EgammaObjects.h:47
TH1D * hist_All_recoMass_
TH2D * _TEMP_scatterPlot_deltaEtaVsEt_
double hist_min_Et_
Definition: EgammaObjects.h:43
double ecalEta(const math::XYZVector &momentum, const math::XYZPoint &vertex)
TH2D * _TEMP_scatterPlot_EOverTruthVsPhi_
TH1D * hist_deltaEtaVsE_
TH1D * hist_resolutionEtaVsPhi_
TH1D * hist_EtOverTruthVsPhi_
Definition: EgammaObjects.h:94
TH1D * hist_deltaPhiVsE_
double hist_min_recoMass_
Definition: EgammaObjects.h:83
TH1D * hist_EtaEfficiency_
HLT enums.
TH1D * hist_resolutionPhiVsE_
double hist_min_EOverTruth_
Definition: EgammaObjects.h:63
TH1D * hist_recoMass_withBackgroud_NoEtCut_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEt_
int hist_bins_PhiOverTruth_
Definition: EgammaObjects.h:73
double hist_max_EOverTruth_
Definition: EgammaObjects.h:64
double hist_max_Et_
Definition: EgammaObjects.h:44
int hist_bins_EtaOverTruth_
Definition: EgammaObjects.h:69
TFile * rootFile_
Definition: EgammaObjects.h:33
TH1D * hist_resolutionEtaVsEta_
TH1D * hist_resolutionPhiVsEta_
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:89
TH1D * hist_EtaNumRecoOverNumTrue_
TH1D * hist_resolutionEtaVsEt_