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
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
CalibrationCluster.h
ZeePlots::h1_occupancyVsEtaSilver_
TH1F * h1_occupancyVsEtaSilver_
Definition: ZeePlots.h:116
ZeePlots::h1_HLT2Electron_FiredEvents_
TH1F * h1_HLT2Electron_FiredEvents_
Definition: ZeePlots.h:90
ZeePlots::h1_HLTVisitedEvents_
TH1F * h1_HLTVisitedEvents_
Definition: ZeePlots.h:96
calib::CalibElectron
Definition: CalibElectron.h:13
ZeePlots::h1_reco_ZTheta_
TH1F * h1_reco_ZTheta_
Definition: ZeePlots.h:110
ESHandle.h
TriggerResults.h
ZeePlots::bookEleClassesPlots
void bookEleClassesPlots()
Definition: ZeePlots.cc:366
ZeePlots::fillEleInfo
void fillEleInfo(const reco::GsfElectronCollection *)
Definition: ZeePlots.cc:220
ZeePlots::h1_mcEle_Energy_
TH1F * h1_mcEle_Energy_
Definition: ZeePlots.h:98
ZeePlots::fillZMCInfo
void fillZMCInfo(const HepMC::GenEvent *)
Definition: ZeePlots.cc:132
ZeePlots::h1_recoEleEta_
TH1F * h1_recoEleEta_
Definition: ZeePlots.h:105
ZeePlots::h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_
TH1F * h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:93
ZeePlots::h1_nEleReco_
TH1F * h1_nEleReco_
Definition: ZeePlots.h:107
reco::GsfElectronCollection
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
Definition: GsfElectronFwd.h:14
ZeePlots::h1_gen_ZRapidity_
TH1F * h1_gen_ZRapidity_
Definition: ZeePlots.h:83
EDAnalyzer.h
ZeePlots::h1_HLT1Electron_HLT2Electron_FiredEvents_
TH1F * h1_HLT1Electron_HLT2Electron_FiredEvents_
Definition: ZeePlots.h:92
HouseholderDecomposition.h
edm::Handle< edm::TriggerResults >
ZeePlots::writeMCEleHistograms
void writeMCEleHistograms()
Definition: ZeePlots.cc:255
EcalRecHitCollections.h
MinL3Algorithm.h
HepMC::GenEvent
Definition: hepmc_rootio.cc:9
ZeePlots::fileName_
const char * fileName_
Definition: ZeePlots.h:80
ZeePlots::writeEleClassesPlots
void writeEleClassesPlots()
Definition: ZeePlots.cc:386
ZeePlots::h1_recoEleEnergy_
TH1F * h1_recoEleEnergy_
Definition: ZeePlots.h:103
MakerMacros.h
ZeePlots::h1_occupancyVsEtaShower_
TH1F * h1_occupancyVsEtaShower_
Definition: ZeePlots.h:118
ZeePlots::fillEleMCInfo
void fillEleMCInfo(const HepMC::GenEvent *)
Definition: ZeePlots.cc:178
ZeePlots::h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
TH1F * h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:94
ZeePlots::h1_mcElePt_
TH1F * h1_mcElePt_
Definition: ZeePlots.h:99
ZeePlots::h1_gen_ZMass_
TH1F * h1_gen_ZMass_
Definition: ZeePlots.h:82
ZeePlots::fillHLTInfo
void fillHLTInfo(edm::Handle< edm::TriggerResults >)
Definition: ZeePlots.cc:299
ZeePlots::h1_gen_ZPt_
TH1F * h1_gen_ZPt_
Definition: ZeePlots.h:86
CalibElectron.h
ZeePlots::openFile
void openFile()
Definition: ZeePlots.cc:47
GsfElectron.h
ZeePlots::writeZHistograms
void writeZHistograms()
Definition: ZeePlots.cc:110
ZeePlots::bookEleHistograms
void bookEleHistograms()
Definition: ZeePlots.cc:195
ZeePlots::writeMCZHistograms
void writeMCZHistograms()
Definition: ZeePlots.cc:122
GsfElectronFwd.h
Event.h
ZeePlots::h1_gen_ZPhi_
TH1F * h1_gen_ZPhi_
Definition: ZeePlots.h:85
ZeePlots::fillZInfo
void fillZInfo(std::pair< calib::CalibElectron *, calib::CalibElectron * > myZeeCandidate)
Definition: ZeePlots.cc:100
ZeePlots::bookZHistograms
void bookZHistograms()
Definition: ZeePlots.cc:74
ZeePlots::fillEleClassesPlots
void fillEleClassesPlots(calib::CalibElectron *)
Definition: ZeePlots.cc:340
ZeePlots::file_
TFile * file_
Definition: ZeePlots.h:79
ZeePlots::writeEleHistograms
void writeEleHistograms()
Definition: ZeePlots.cc:240
ZeePlots::h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
TH1F * h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:95
ZeePlots::h1_reco_ZPhi_
TH1F * h1_reco_ZPhi_
Definition: ZeePlots.h:112
ZeePlots
Definition: ZeePlots.h:50
ZeePlots::h1_HLT1Electron_FiredEvents_
TH1F * h1_HLT1Electron_FiredEvents_
Definition: ZeePlots.h:89
ZeePlots::writeHLTHistograms
void writeHLTHistograms()
ZeePlots::h1_recoElePhi_
TH1F * h1_recoElePhi_
Definition: ZeePlots.h:106
ZeePlots::h1_occupancyVsEtaGold_
TH1F * h1_occupancyVsEtaGold_
Definition: ZeePlots.h:115
ZeePlots::h1_recoElePt_
TH1F * h1_recoElePt_
Definition: ZeePlots.h:104
ZeePlots::h1_reco_ZEta_
TH1F * h1_reco_ZEta_
Definition: ZeePlots.h:109
ZeePlots::bookEleMCHistograms
void bookEleMCHistograms()
Definition: ZeePlots.cc:156
ZeePlots::h1_reco_ZPt_
TH1F * h1_reco_ZPt_
Definition: ZeePlots.h:113
ZeePlots::h1_reco_ZRapidity_
TH1F * h1_reco_ZRapidity_
Definition: ZeePlots.h:111
DetId.h
Frameworkfwd.h
ZeePlots::h1_FiredTriggers_
TH1F * h1_FiredTriggers_
Definition: ZeePlots.h:88
ZeePlots::h1_mcEleEta_
TH1F * h1_mcEleEta_
Definition: ZeePlots.h:100
ZeePlots::bookHLTHistograms
void bookHLTHistograms()
Definition: ZeePlots.cc:270
ZeePlots::bookZMCHistograms
void bookZMCHistograms()
Definition: ZeePlots.cc:50
ZeePlots::h1_mcElePhi_
TH1F * h1_mcElePhi_
Definition: ZeePlots.h:101
ZeePlots::h1_gen_ZEta_
TH1F * h1_gen_ZEta_
Definition: ZeePlots.h:84
EventSetup.h
ZeePlots::~ZeePlots
~ZeePlots()
Definition: ZeePlots.cc:39
ZeePlots::h1_HLT2ElectronRelaxed_FiredEvents_
TH1F * h1_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:91
HepMCProduct.h
ZeePlots::ZeePlots
ZeePlots(const char *)
Definition: ZeePlots.cc:34
ZeePlots::h1_occupancyVsEtaCrack_
TH1F * h1_occupancyVsEtaCrack_
Definition: ZeePlots.h:117