CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
22  public:
23  explicit EgammaObjects( const edm::ParameterSet& );
25 
26  virtual void analyze( const edm::Event&, const edm::EventSetup& );
27  virtual void beginJob();
28  virtual void endJob();
29 
30  private:
31  TFile* rootFile_;
32 
35 
36  int particleID;
38 
39  int EtCut;
40 
41  double hist_min_Et_;
42  double hist_max_Et_;
44 
45  double hist_min_E_;
46  double hist_max_E_;
48 
49  double hist_min_Eta_;
50  double hist_max_Eta_;
52 
53  double hist_min_Phi_;
54  double hist_max_Phi_;
56 
60 
64 
68 
72 
76 
80 
84 
85  TH1D* hist_Et_;
97 
98  TH1D* hist_E_;
110 
111  TH1D* hist_Eta_;
123 
124  TH1D* hist_Phi_;
136 
141 
146 
151 
156 
161 
166 
167  void loadCMSSWObjects(const edm::ParameterSet& ps);
168  void loadHistoParameters(const edm::ParameterSet& ps);
169 
171  void createTempHistoObjects();
172 
173  void analyzePhotons( const edm::Event&, const edm::EventSetup& );
174  void analyzeElectrons( const edm::Event&, const edm::EventSetup& );
175 
178  void fitHistos();
179 
180  void applyLabels();
181  void setDrawOptions();
182  void saveHistos();
183 
184  double findRecoMass(reco::Photon pOne, reco::Photon pTwo);
186 
187  float ecalEta(float EtaParticle , float Zvertex, float plane_Radius);
188 };
189 #endif
190 
TH1D * hist_resolutionEVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsPhi_
double hist_min_deltaEta_
Definition: EgammaObjects.h:73
int hist_bins_deltaEta_
Definition: EgammaObjects.h:75
double hist_min_EtaOverTruth_
Definition: EgammaObjects.h:65
TH2D * _TEMP_scatterPlot_deltaEtaVsEta_
TH1D * hist_resolutionEVsE_
int hist_bins_deltaPhi_
Definition: EgammaObjects.h:79
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:83
void analyzePhotons(const edm::Event &, const edm::EventSetup &)
TH1D * hist_EOverTruth_
Definition: EgammaObjects.h:99
TH1D * hist_EtOverTruthVsEt_
Definition: EgammaObjects.h:89
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:50
TH2D * _TEMP_scatterPlot_deltaPhiVsE_
void getEfficiencyHistosViaDividing()
TH1D * hist_Mixed_recoMass_
double hist_min_PhiOverTruth_
Definition: EgammaObjects.h:69
double hist_max_Phi_
Definition: EgammaObjects.h:54
TH1D * hist_resolutionPhiVsPhi_
TH1D * hist_resolutionEtVsEta_
Definition: EgammaObjects.h:95
edm::InputTag MCTruthCollection_
Definition: EgammaObjects.h:33
TH2D * _TEMP_scatterPlot_EOverTruthVsEta_
virtual void endJob()
TH2D * _TEMP_scatterPlot_deltaPhiVsEt_
TH1D * hist_ENumRecoOverNumTrue_
TH1D * hist_deltaPhiVsPhi_
double hist_max_EtaOverTruth_
Definition: EgammaObjects.h:66
void loadHistoParameters(const edm::ParameterSet &ps)
double hist_min_Phi_
Definition: EgammaObjects.h:53
TH1D * hist_EOverTruthVsE_
double hist_min_Eta_
Definition: EgammaObjects.h:49
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:88
TH1D * hist_resolutionEVsEt_
void createTempHistoObjects()
TH1D * hist_resolutionEtVsPhi_
Definition: EgammaObjects.h:96
std::string particleString
Definition: EgammaObjects.h:37
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:86
int hist_bins_EOverTruth_
Definition: EgammaObjects.h:63
TH1D * hist_EOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEta_
TH1D * hist_EtOverTruthVsEta_
Definition: EgammaObjects.h:91
double hist_min_EtOverTruth_
Definition: EgammaObjects.h:57
double findRecoMass(reco::Photon pOne, reco::Photon pTwo)
TH1D * hist_EOverTruthVsEta_
void getDeltaResHistosViaSlicing()
void setDrawOptions()
TH1D * hist_resolutionEtVsE_
Definition: EgammaObjects.h:94
TH2D * _TEMP_scatterPlot_deltaEtaVsE_
double hist_max_recoMass_
Definition: EgammaObjects.h:82
TH1D * hist_PhiNumRecoOverNumTrue_
double hist_max_E_
Definition: EgammaObjects.h:46
TH1D * hist_PhiOverTruth_
double hist_min_deltaPhi_
Definition: EgammaObjects.h:77
TH1D * hist_recoMass_withBackgroud_5EtCut_
TH2D * _TEMP_scatterPlot_deltaEtaVsPhi_
TH1D * hist_resolutionEtVsEt_
Definition: EgammaObjects.h:93
TH2D * _TEMP_scatterPlot_EOverTruthVsEt_
double hist_max_deltaEta_
Definition: EgammaObjects.h:74
TH1D * hist_EtOverTruthVsE_
Definition: EgammaObjects.h:90
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:78
int hist_bins_EtOverTruth_
Definition: EgammaObjects.h:59
TH1D * hist_recoMass_withBackgroud_10EtCut_
edm::InputTag RecoCollection_
Definition: EgammaObjects.h:34
TH1D * hist_resolutionPhiVsEt_
double hist_max_PhiOverTruth_
Definition: EgammaObjects.h:70
void analyzeElectrons(const edm::Event &, const edm::EventSetup &)
TH2D * _TEMP_scatterPlot_deltaPhiVsEta_
TH2D * _TEMP_scatterPlot_EOverTruthVsE_
double hist_max_EtOverTruth_
Definition: EgammaObjects.h:58
double hist_min_E_
Definition: EgammaObjects.h:45
EgammaObjects(const edm::ParameterSet &)
TH1D * hist_All_recoMass_
TH2D * _TEMP_scatterPlot_deltaEtaVsEt_
double hist_min_Et_
Definition: EgammaObjects.h:41
TH2D * _TEMP_scatterPlot_EOverTruthVsPhi_
TH1D * hist_deltaEtaVsE_
TH1D * hist_resolutionEtaVsPhi_
TH1D * hist_EtOverTruthVsPhi_
Definition: EgammaObjects.h:92
TH1D * hist_deltaPhiVsE_
double hist_min_recoMass_
Definition: EgammaObjects.h:81
TH1D * hist_EtaEfficiency_
TH1D * hist_resolutionPhiVsE_
double hist_min_EOverTruth_
Definition: EgammaObjects.h:61
void loadCMSSWObjects(const edm::ParameterSet &ps)
TH1D * hist_recoMass_withBackgroud_NoEtCut_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEt_
int hist_bins_PhiOverTruth_
Definition: EgammaObjects.h:71
double hist_max_EOverTruth_
Definition: EgammaObjects.h:62
double hist_max_Et_
Definition: EgammaObjects.h:42
virtual void beginJob()
int hist_bins_EtaOverTruth_
Definition: EgammaObjects.h:67
TFile * rootFile_
Definition: EgammaObjects.h:31
void createBookedHistoObjects()
TH1D * hist_resolutionEtaVsEta_
TH1D * hist_resolutionPhiVsEta_
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:87
virtual void analyze(const edm::Event &, const edm::EventSetup &)
TH1D * hist_EtaNumRecoOverNumTrue_
TH1D * hist_resolutionEtaVsEt_