CMS 3D CMS Logo

PatPhotonSimpleAnalyzer.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_PhotonIdentification_PatPhotonSimpleAnalyzer_H
2 #define RecoEgamma_PhotonIdentification_PatPhotonSimpleAnalyzer_H
3 
11 //
12 
13 //
14 
15 // system include files
16 #include <memory>
17 
18 // user include files
21 
24 
26 
27 #include <string>
28 #include "TH1.h"
29 #include "TTree.h"
30 
31 class TFile;
32 
33 //
34 // class declaration
35 //
37 public:
39  ~PatPhotonSimpleAnalyzer() override;
40 
41  void analyze(const edm::Event&, const edm::EventSetup&) override;
42  void beginJob() override;
43  void endJob() override;
44 
45 private:
46  std::string outputFile_; // output file
47  double minPhotonEt_; // minimum photon Et
48  double minPhotonAbsEta_; // min and
49  double maxPhotonAbsEta_; // max abs(eta)
50  double minPhotonR9_; // minimum R9 = E(3x3)/E(SuperCluster)
51  double maxPhotonHoverE_; // maximum HCAL / ECAL
52  bool createPhotonTTree_; // Create a TTree of photon variables
53 
54  // Will be used for creating TTree of photons.
55  // These names did not have to match those from a phtn->...
56  // but do match for clarity.
64  float isEBGap;
65  float isEEGap;
66  float isEBEEGap;
67  float r9;
68  float et;
69  float eta;
70  float phi;
72  float ecalIso;
73  float hcalIso;
74  float trackIso;
75  };
77 
78  // root file to store histograms
79  TFile* rootFile_;
80 
81  // data members for histograms to be filled
82 
83  // PhotonID Histograms
90  TH1F* h_ebgap_;
91  TH1F* h_eeGap_;
92  TH1F* h_ebeeGap_;
93  TH1F* h_r9_;
94 
95  // Photon Histograms
96  TH1F* h_photonEt_;
97  TH1F* h_photonEta_;
98  TH1F* h_photonPhi_;
99  TH1F* h_hadoverem_;
100 
101  // Photon's SuperCluster Histograms
106 
107  // Composite or Other Histograms
110  TH1F* h_nPho_;
111 
112  // TTree
114 };
115 #endif
EDAnalyzer.h
PatPhotonSimpleAnalyzer::struct_recPhoton::nTrkSolidCone
float nTrkSolidCone
Definition: PatPhotonSimpleAnalyzer.h:62
PatPhotonSimpleAnalyzer::struct_recPhoton::et
float et
Definition: PatPhotonSimpleAnalyzer.h:68
PatPhotonSimpleAnalyzer::h_trk_pt_solid_
TH1F * h_trk_pt_solid_
Definition: PatPhotonSimpleAnalyzer.h:86
PatPhotonSimpleAnalyzer::minPhotonAbsEta_
double minPhotonAbsEta_
Definition: PatPhotonSimpleAnalyzer.h:48
PatPhotonSimpleAnalyzer::struct_recPhoton::isEBEEGap
float isEBEEGap
Definition: PatPhotonSimpleAnalyzer.h:66
PatPhotonSimpleAnalyzer::maxPhotonAbsEta_
double maxPhotonAbsEta_
Definition: PatPhotonSimpleAnalyzer.h:49
PatPhotonSimpleAnalyzer::h_photonPhi_
TH1F * h_photonPhi_
Definition: PatPhotonSimpleAnalyzer.h:98
PatPhotonSimpleAnalyzer::h_photonScEtaWidth_
TH1F * h_photonScEtaWidth_
Definition: PatPhotonSimpleAnalyzer.h:105
PatPhotonSimpleAnalyzer::PatPhotonSimpleAnalyzer
PatPhotonSimpleAnalyzer(const edm::ParameterSet &)
Definition: PatPhotonSimpleAnalyzer.cc:44
PatPhotonSimpleAnalyzer::h_photonEta_
TH1F * h_photonEta_
Definition: PatPhotonSimpleAnalyzer.h:97
PatPhotonSimpleAnalyzer::minPhotonR9_
double minPhotonR9_
Definition: PatPhotonSimpleAnalyzer.h:50
PatPhotonSimpleAnalyzer::struct_recPhoton::isolationHollowTrkCone
float isolationHollowTrkCone
Definition: PatPhotonSimpleAnalyzer.h:61
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
PatPhotonSimpleAnalyzer::struct_recPhoton::isEBGap
float isEBGap
Definition: PatPhotonSimpleAnalyzer.h:64
PatPhotonSimpleAnalyzer::tree_PhotonAll_
TTree * tree_PhotonAll_
Definition: PatPhotonSimpleAnalyzer.h:113
PatPhotonSimpleAnalyzer::struct_recPhoton::isolationEcalRecHit
float isolationEcalRecHit
Definition: PatPhotonSimpleAnalyzer.h:58
PatPhotonSimpleAnalyzer::h_photonScEt_
TH1F * h_photonScEt_
Definition: PatPhotonSimpleAnalyzer.h:102
MakerMacros.h
PatPhotonSimpleAnalyzer::struct_recPhoton::ecalIso
float ecalIso
Definition: PatPhotonSimpleAnalyzer.h:72
PatPhotonSimpleAnalyzer::h_ntrk_hollow_
TH1F * h_ntrk_hollow_
Definition: PatPhotonSimpleAnalyzer.h:89
PatPhotonSimpleAnalyzer::minPhotonEt_
double minPhotonEt_
Definition: PatPhotonSimpleAnalyzer.h:47
PatPhotonSimpleAnalyzer::~PatPhotonSimpleAnalyzer
~PatPhotonSimpleAnalyzer() override
Definition: PatPhotonSimpleAnalyzer.cc:68
PatPhotonSimpleAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: PatPhotonSimpleAnalyzer.cc:127
PatPhotonSimpleAnalyzer::h_isoHcalRecHit_
TH1F * h_isoHcalRecHit_
Definition: PatPhotonSimpleAnalyzer.h:85
PatPhotonSimpleAnalyzer::struct_recPhoton::phi
float phi
Definition: PatPhotonSimpleAnalyzer.h:70
PatPhotonSimpleAnalyzer::struct_recPhoton::eta
float eta
Definition: PatPhotonSimpleAnalyzer.h:69
PatPhotonSimpleAnalyzer::h_ebgap_
TH1F * h_ebgap_
Definition: PatPhotonSimpleAnalyzer.h:90
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PatPhotonSimpleAnalyzer::struct_recPhoton::isEEGap
float isEEGap
Definition: PatPhotonSimpleAnalyzer.h:65
PatPhotonSimpleAnalyzer::h_ebeeGap_
TH1F * h_ebeeGap_
Definition: PatPhotonSimpleAnalyzer.h:92
PatPhotonSimpleAnalyzer::outputFile_
std::string outputFile_
Definition: PatPhotonSimpleAnalyzer.h:46
PatPhotonSimpleAnalyzer::struct_recPhoton::nTrkHollowCone
float nTrkHollowCone
Definition: PatPhotonSimpleAnalyzer.h:63
PatPhotonSimpleAnalyzer::beginJob
void beginJob() override
Definition: PatPhotonSimpleAnalyzer.cc:78
PatPhotonSimpleAnalyzer::h_nPho_
TH1F * h_nPho_
Definition: PatPhotonSimpleAnalyzer.h:110
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
PatPhotonSimpleAnalyzer::h_photonInAnyGap_
TH1F * h_photonInAnyGap_
Definition: PatPhotonSimpleAnalyzer.h:108
PatPhotonSimpleAnalyzer::maxPhotonHoverE_
double maxPhotonHoverE_
Definition: PatPhotonSimpleAnalyzer.h:51
PatPhotonSimpleAnalyzer::struct_recPhoton::hcalIso
float hcalIso
Definition: PatPhotonSimpleAnalyzer.h:73
PatPhotonSimpleAnalyzer
Definition: PatPhotonSimpleAnalyzer.h:36
PatPhotonSimpleAnalyzer::h_nPassingPho_
TH1F * h_nPassingPho_
Definition: PatPhotonSimpleAnalyzer.h:109
PatPhotonSimpleAnalyzer::h_photonScEta_
TH1F * h_photonScEta_
Definition: PatPhotonSimpleAnalyzer.h:103
PatPhotonSimpleAnalyzer::createPhotonTTree_
bool createPhotonTTree_
Definition: PatPhotonSimpleAnalyzer.h:52
PatPhotonSimpleAnalyzer::h_r9_
TH1F * h_r9_
Definition: PatPhotonSimpleAnalyzer.h:93
PatPhotonSimpleAnalyzer::h_photonEt_
TH1F * h_photonEt_
Definition: PatPhotonSimpleAnalyzer.h:96
PatPhotonSimpleAnalyzer::struct_recPhoton::isolationSolidTrkCone
float isolationSolidTrkCone
Definition: PatPhotonSimpleAnalyzer.h:60
edm::EventSetup
Definition: EventSetup.h:57
PatPhotonSimpleAnalyzer::struct_recPhoton::trackIso
float trackIso
Definition: PatPhotonSimpleAnalyzer.h:74
PatPhotonSimpleAnalyzer::recPhoton
struct_recPhoton recPhoton
Definition: PatPhotonSimpleAnalyzer.h:76
PatPhotonSimpleAnalyzer::struct_recPhoton::isolationHcalRecHit
float isolationHcalRecHit
Definition: PatPhotonSimpleAnalyzer.h:59
Frameworkfwd.h
PatPhotonSimpleAnalyzer::h_trk_pt_hollow_
TH1F * h_trk_pt_hollow_
Definition: PatPhotonSimpleAnalyzer.h:87
PatPhotonSimpleAnalyzer::rootFile_
TFile * rootFile_
Definition: PatPhotonSimpleAnalyzer.h:79
PatPhotonSimpleAnalyzer::h_eeGap_
TH1F * h_eeGap_
Definition: PatPhotonSimpleAnalyzer.h:91
PatPhotonSimpleAnalyzer::endJob
void endJob() override
Definition: PatPhotonSimpleAnalyzer.cc:233
ParameterSet.h
PatPhotonSimpleAnalyzer::struct_recPhoton::hadronicOverEm
float hadronicOverEm
Definition: PatPhotonSimpleAnalyzer.h:71
edm::Event
Definition: Event.h:73
PatPhotonSimpleAnalyzer::h_hadoverem_
TH1F * h_hadoverem_
Definition: PatPhotonSimpleAnalyzer.h:99
PatPhotonSimpleAnalyzer::struct_recPhoton
Definition: PatPhotonSimpleAnalyzer.h:57
PatPhotonSimpleAnalyzer::h_ntrk_solid_
TH1F * h_ntrk_solid_
Definition: PatPhotonSimpleAnalyzer.h:88
PatPhotonSimpleAnalyzer::struct_recPhoton::r9
float r9
Definition: PatPhotonSimpleAnalyzer.h:67
PatPhotonSimpleAnalyzer::h_isoEcalRecHit_
TH1F * h_isoEcalRecHit_
Definition: PatPhotonSimpleAnalyzer.h:84
PatPhotonSimpleAnalyzer::h_photonScPhi_
TH1F * h_photonScPhi_
Definition: PatPhotonSimpleAnalyzer.h:104