CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
28 
43 #include "TFile.h"
44 #include "TH1.h"
45 #include "TH2.h"
46 
47 // class declaration
48 //
49 
50 class ZeePlots {
51 public:
52  ZeePlots(const char*);
53  ~ZeePlots();
54 
55  void openFile();
56 
57  void bookEleHistograms();
58  void bookEleMCHistograms();
59  void bookZHistograms();
60  void bookZMCHistograms();
61  void bookHLTHistograms();
62  void bookEleClassesPlots();
63 
64  void fillZMCInfo(const HepMC::GenEvent*);
65  void fillEleMCInfo(const HepMC::GenEvent*);
68  void fillZInfo(std::pair<calib::CalibElectron*, calib::CalibElectron*> myZeeCandidate);
70 
71  void writeEleHistograms();
72  void writeZHistograms();
73  void writeMCEleHistograms();
74  void writeMCZHistograms();
75  void writeHLTHistograms();
76  void writeEleClassesPlots();
77 
78 private:
79  TFile* file_;
80  const char* fileName_;
81 
84  TH1F* h1_gen_ZEta_;
85  TH1F* h1_gen_ZPhi_;
86  TH1F* h1_gen_ZPt_;
87 
97 
99  TH1F* h1_mcElePt_;
102 
108 
114 
119 };
120 #endif
TH1F * h1_HLTVisitedEvents_
Definition: ZeePlots.h:96
void bookEleClassesPlots()
Definition: ZeePlots.cc:366
~ZeePlots()
Definition: ZeePlots.cc:39
TH1F * h1_reco_ZPt_
Definition: ZeePlots.h:113
void fillEleInfo(const reco::GsfElectronCollection *)
Definition: ZeePlots.cc:220
void fillEleMCInfo(const HepMC::GenEvent *)
Definition: ZeePlots.cc:178
TH1F * h1_mcElePhi_
Definition: ZeePlots.h:101
void fillZMCInfo(const HepMC::GenEvent *)
Definition: ZeePlots.cc:132
TH1F * h1_mcEle_Energy_
Definition: ZeePlots.h:98
TH1F * h1_gen_ZPt_
Definition: ZeePlots.h:86
void writeEleClassesPlots()
Definition: ZeePlots.cc:386
TH1F * h1_HLT1Electron_HLT2Electron_FiredEvents_
Definition: ZeePlots.h:92
void writeMCEleHistograms()
Definition: ZeePlots.cc:255
void writeMCZHistograms()
Definition: ZeePlots.cc:122
TH1F * h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:93
TH1F * h1_gen_ZRapidity_
Definition: ZeePlots.h:83
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
TH1F * h1_recoEleEnergy_
Definition: ZeePlots.h:103
TH1F * h1_reco_ZTheta_
Definition: ZeePlots.h:110
void bookEleHistograms()
Definition: ZeePlots.cc:195
TH1F * h1_recoElePhi_
Definition: ZeePlots.h:106
TH1F * h1_nEleReco_
Definition: ZeePlots.h:107
TH1F * h1_occupancyVsEtaShower_
Definition: ZeePlots.h:118
TH1F * h1_mcElePt_
Definition: ZeePlots.h:99
TH1F * h1_gen_ZMass_
Definition: ZeePlots.h:82
void openFile()
Definition: ZeePlots.cc:47
TH1F * h1_recoEleEta_
Definition: ZeePlots.h:105
TH1F * h1_reco_ZRapidity_
Definition: ZeePlots.h:111
TH1F * h1_mcEleEta_
Definition: ZeePlots.h:100
TH1F * h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:94
TFile * file_
Definition: ZeePlots.h:79
void fillHLTInfo(edm::Handle< edm::TriggerResults >)
Definition: ZeePlots.cc:299
TH1F * h1_HLT1Electron_FiredEvents_
Definition: ZeePlots.h:89
void writeZHistograms()
Definition: ZeePlots.cc:110
const char * fileName_
Definition: ZeePlots.h:80
void bookZMCHistograms()
Definition: ZeePlots.cc:50
TH1F * h1_reco_ZEta_
Definition: ZeePlots.h:109
TH1F * h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:95
void writeEleHistograms()
Definition: ZeePlots.cc:240
TH1F * h1_HLT2Electron_FiredEvents_
Definition: ZeePlots.h:90
TH1F * h1_gen_ZEta_
Definition: ZeePlots.h:84
ZeePlots(const char *)
Definition: ZeePlots.cc:34
TH1F * h1_occupancyVsEtaGold_
Definition: ZeePlots.h:115
TH1F * h1_recoElePt_
Definition: ZeePlots.h:104
TH1F * h1_gen_ZPhi_
Definition: ZeePlots.h:85
TH1F * h1_reco_ZPhi_
Definition: ZeePlots.h:112
TH1F * h1_occupancyVsEtaCrack_
Definition: ZeePlots.h:117
void fillZInfo(std::pair< calib::CalibElectron *, calib::CalibElectron * > myZeeCandidate)
Definition: ZeePlots.cc:100
TH1F * h1_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:91
TH1F * h1_FiredTriggers_
Definition: ZeePlots.h:88
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:116