CMS 3D CMS Logo

ZeePlots.h
Go to the documentation of this file.
1 #ifndef ZEEPLOTS_H
2 #define ZEEPLOTS_H
3 
4 // -*- C++ -*-
5 //
6 // Package: ElectronCalibration
7 // Class: ElectronCalibration
8 //
16 //
17 // Original Author: Lorenzo AGOSTINO, Radek Ofierzynski
18 // Created: Tue Jul 18 12:17:01 CEST 2006
19 //
20 //
21 
22 // system include files
23 #include <memory>
24 
25 // user include files
27 
42 #include "TFile.h"
43 #include "TH1.h"
44 #include "TH2.h"
45 
46 // class declaration
47 //
48 
49 class ZeePlots {
50 public:
51  ZeePlots(const char*);
52  ~ZeePlots();
53 
54  void openFile();
55 
56  void bookEleHistograms();
57  void bookEleMCHistograms();
58  void bookZHistograms();
59  void bookZMCHistograms();
60  void bookHLTHistograms();
61  void bookEleClassesPlots();
62 
63  void fillZMCInfo(const HepMC::GenEvent*);
64  void fillEleMCInfo(const HepMC::GenEvent*);
67  void fillZInfo(std::pair<calib::CalibElectron*, calib::CalibElectron*> myZeeCandidate);
69 
70  void writeEleHistograms();
71  void writeZHistograms();
72  void writeMCEleHistograms();
73  void writeMCZHistograms();
74  void writeHLTHistograms();
75  void writeEleClassesPlots();
76 
77 private:
78  TFile* file_;
79  const char* fileName_;
80 
83  TH1F* h1_gen_ZEta_;
84  TH1F* h1_gen_ZPhi_;
85  TH1F* h1_gen_ZPt_;
86 
96 
98  TH1F* h1_mcElePt_;
99  TH1F* h1_mcEleEta_;
101 
107 
113 
118 };
119 #endif
TH1F * h1_HLTVisitedEvents_
Definition: ZeePlots.h:95
void bookEleClassesPlots()
Definition: ZeePlots.cc:366
~ZeePlots()
Definition: ZeePlots.cc:39
TH1F * h1_reco_ZPt_
Definition: ZeePlots.h:112
void fillEleInfo(const reco::GsfElectronCollection *)
Definition: ZeePlots.cc:220
void fillEleMCInfo(const HepMC::GenEvent *)
Definition: ZeePlots.cc:178
TH1F * h1_mcElePhi_
Definition: ZeePlots.h:100
void fillZMCInfo(const HepMC::GenEvent *)
Definition: ZeePlots.cc:132
TH1F * h1_mcEle_Energy_
Definition: ZeePlots.h:97
TH1F * h1_gen_ZPt_
Definition: ZeePlots.h:85
void writeEleClassesPlots()
Definition: ZeePlots.cc:386
TH1F * h1_HLT1Electron_HLT2Electron_FiredEvents_
Definition: ZeePlots.h:91
void fillZInfo(std::pair< calib::CalibElectron *, calib::CalibElectron *> myZeeCandidate)
Definition: ZeePlots.cc:100
void writeMCEleHistograms()
Definition: ZeePlots.cc:255
void writeMCZHistograms()
Definition: ZeePlots.cc:122
TH1F * h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:92
TH1F * h1_gen_ZRapidity_
Definition: ZeePlots.h:82
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
TH1F * h1_recoEleEnergy_
Definition: ZeePlots.h:102
TH1F * h1_reco_ZTheta_
Definition: ZeePlots.h:109
void bookEleHistograms()
Definition: ZeePlots.cc:195
TH1F * h1_recoElePhi_
Definition: ZeePlots.h:105
TH1F * h1_nEleReco_
Definition: ZeePlots.h:106
TH1F * h1_occupancyVsEtaShower_
Definition: ZeePlots.h:117
TH1F * h1_mcElePt_
Definition: ZeePlots.h:98
TH1F * h1_gen_ZMass_
Definition: ZeePlots.h:81
void openFile()
Definition: ZeePlots.cc:47
TH1F * h1_recoEleEta_
Definition: ZeePlots.h:104
TH1F * h1_reco_ZRapidity_
Definition: ZeePlots.h:110
TH1F * h1_mcEleEta_
Definition: ZeePlots.h:99
TH1F * h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:93
TFile * file_
Definition: ZeePlots.h:78
void fillHLTInfo(edm::Handle< edm::TriggerResults >)
Definition: ZeePlots.cc:299
TH1F * h1_HLT1Electron_FiredEvents_
Definition: ZeePlots.h:88
void writeZHistograms()
Definition: ZeePlots.cc:110
const char * fileName_
Definition: ZeePlots.h:79
void bookZMCHistograms()
Definition: ZeePlots.cc:50
TH1F * h1_reco_ZEta_
Definition: ZeePlots.h:108
TH1F * h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:94
void writeEleHistograms()
Definition: ZeePlots.cc:240
TH1F * h1_HLT2Electron_FiredEvents_
Definition: ZeePlots.h:89
TH1F * h1_gen_ZEta_
Definition: ZeePlots.h:83
ZeePlots(const char *)
Definition: ZeePlots.cc:34
TH1F * h1_occupancyVsEtaGold_
Definition: ZeePlots.h:114
TH1F * h1_recoElePt_
Definition: ZeePlots.h:103
TH1F * h1_gen_ZPhi_
Definition: ZeePlots.h:84
TH1F * h1_reco_ZPhi_
Definition: ZeePlots.h:111
TH1F * h1_occupancyVsEtaCrack_
Definition: ZeePlots.h:116
TH1F * h1_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:90
TH1F * h1_FiredTriggers_
Definition: ZeePlots.h:87
void bookZHistograms()
Definition: ZeePlots.cc:74
void bookHLTHistograms()
Definition: ZeePlots.cc:270
void writeHLTHistograms()
void bookEleMCHistograms()
Definition: ZeePlots.cc:156
void fillEleClassesPlots(calib::CalibElectron *)
Definition: ZeePlots.cc:340
TH1F * h1_occupancyVsEtaSilver_
Definition: ZeePlots.h:115