CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
ZeePlots Class Reference

#include <ZeePlots.h>

Inheritance diagram for ZeePlots:
edm::EDAnalyzer

Public Member Functions

void bookEleClassesPlots ()
 
void bookEleHistograms ()
 
void bookEleMCHistograms ()
 
void bookHLTHistograms ()
 
void bookZHistograms ()
 
void bookZMCHistograms ()
 
void fillEleClassesPlots (calib::CalibElectron *)
 
void fillEleInfo (const reco::GsfElectronCollection *)
 
void fillEleMCInfo (const HepMC::GenEvent *)
 
void fillHLTInfo (edm::Handle< edm::TriggerResults >)
 
void fillZInfo (std::pair< calib::CalibElectron *, calib::CalibElectron * > myZeeCandidate)
 
void fillZMCInfo (const HepMC::GenEvent *)
 
void openFile ()
 
void writeEleClassesPlots ()
 
void writeEleHistograms ()
 
void writeHLTHistograms ()
 
void writeMCEleHistograms ()
 
void writeMCZHistograms ()
 
void writeZHistograms ()
 
 ZeePlots (const edm::ParameterSet &)
 
 ZeePlots (const char *)
 
 ~ZeePlots ()
 
 ~ZeePlots ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
bool CheckCut (const pat::Electron *wenu, int i)
 
bool CheckCut2 (const pat::Electron *wenu, int i)
 
bool CheckCut2Inv (const pat::Electron *wenu, int i)
 
bool CheckCutInv (const pat::Electron *wenu, int i)
 
bool CheckCuts (const pat::Electron *ele)
 
bool CheckCuts2 (const pat::Electron *ele)
 
bool CheckCuts2Inverse (const pat::Electron *ele)
 
bool CheckCuts2NminusOne (const pat::Electron *ele, int jj)
 
bool CheckCutsInverse (const pat::Electron *ele)
 
bool CheckCutsNminusOne (const pat::Electron *ele, int jj)
 
virtual void endJob ()
 
double ReturnCandVar (const pat::Electron *ele, int i)
 

Private Attributes

std::vector< Double_t > CutVars2_
 
std::vector< Double_t > CutVars_
 
Double_t deta2_EB_
 
Double_t deta2_EE_
 
Double_t deta_EB_
 
bool deta_EB_inv
 
Double_t deta_EE_
 
bool deta_EE_inv
 
Double_t dphi2_EB_
 
Double_t dphi2_EE_
 
Double_t dphi_EB_
 
bool dphi_EB_inv
 
Double_t dphi_EE_
 
bool dphi_EE_inv
 
Double_t ecalIso2_EB_
 
Double_t ecalIso2_EE_
 
Double_t ecalIso_EB_
 
bool ecalIso_EB_inv
 
Double_t ecalIso_EE_
 
bool ecalIso_EE_inv
 
TFile * file_
 
const char * fileName_
 
TH1F * h1_FiredTriggers_
 
TH1F * h1_gen_ZEta_
 
TH1F * h1_gen_ZMass_
 
TH1F * h1_gen_ZPhi_
 
TH1F * h1_gen_ZPt_
 
TH1F * h1_gen_ZRapidity_
 
TH1F * h1_HLT1Electron_FiredEvents_
 
TH1F * h1_HLT1Electron_HLT2Electron_FiredEvents_
 
TH1F * h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
 
TH1F * h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_
 
TH1F * h1_HLT2Electron_FiredEvents_
 
TH1F * h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
 
TH1F * h1_HLT2ElectronRelaxed_FiredEvents_
 
TH1F * h1_HLTVisitedEvents_
 
TH1F * h1_mcEle_Energy_
 
TH1F * h1_mcEleEta_
 
TH1F * h1_mcElePhi_
 
TH1F * h1_mcElePt_
 
TH1F * h1_nEleReco_
 
TH1F * h1_occupancyVsEtaCrack_
 
TH1F * h1_occupancyVsEtaGold_
 
TH1F * h1_occupancyVsEtaShower_
 
TH1F * h1_occupancyVsEtaSilver_
 
TH1F * h1_reco_ZEta_
 
TH1F * h1_reco_ZPhi_
 
TH1F * h1_reco_ZPt_
 
TH1F * h1_reco_ZRapidity_
 
TH1F * h1_reco_ZTheta_
 
TH1F * h1_recoEleEnergy_
 
TH1F * h1_recoEleEta_
 
TH1F * h1_recoElePhi_
 
TH1F * h1_recoElePt_
 
TH1F * h_e_ETA
 
TH1F * h_e_PHI
 
TH1F * h_e_PT
 
TH1F * h_EB_deta
 
TH1F * h_EB_dphi
 
TH1F * h_EB_ecaliso
 
TH1F * h_EB_hcaliso
 
TH1F * h_EB_HoE
 
TH1F * h_EB_sIetaIeta
 
TH1F * h_EB_trkiso
 
TH1F * h_EE_deta
 
TH1F * h_EE_dphi
 
TH1F * h_EE_ecaliso
 
TH1F * h_EE_hcaliso
 
TH1F * h_EE_HoE
 
TH1F * h_EE_sIetaIeta
 
TH1F * h_EE_trkiso
 
TH1F * h_mee
 
TH1F * h_mee_EBEB
 
TH1F * h_mee_EBEE
 
TH1F * h_mee_EEEE
 
TH1F * h_Zcand_PT
 
TH1F * h_Zcand_Y
 
Double_t hcalIso2_EB_
 
Double_t hcalIso2_EE_
 
Double_t hcalIso_EB_
 
bool hcalIso_EB_inv
 
Double_t hcalIso_EE_
 
bool hcalIso_EE_inv
 
TFile * histofile
 
Double_t hoe2_EB_
 
Double_t hoe2_EE_
 
Double_t hoe_EB_
 
bool hoe_EB_inv
 
Double_t hoe_EE_
 
bool hoe_EE_inv
 
std::vector< Double_t > InvVars_
 
int nBarrelVars_
 
std::string outputFile_
 
Double_t sihih2_EB_
 
Double_t sihih2_EE_
 
Double_t sihih_EB_
 
bool sihih_EB_inv
 
Double_t sihih_EE_
 
bool sihih_EE_inv
 
Double_t trackIso2_EB_
 
Double_t trackIso2_EE_
 
Double_t trackIso_EB_
 
bool trackIso_EB_inv
 
Double_t trackIso_EE_
 
bool trackIso_EE_inv
 
bool useDifferentSecondLegSelection_
 
Double_t userIso2_EB_
 
Double_t userIso2_EE_
 
Double_t userIso_EB_
 
bool userIso_EB_inv
 
Double_t userIso_EE_
 
bool userIso_EE_inv
 
edm::InputTag zeeCollectionTag_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Definition at line 53 of file ZeePlots.h.

Constructor & Destructor Documentation

ZeePlots::ZeePlots ( const char *  fileName)

Definition at line 35 of file ZeePlots.cc.

References file_, convertXMLtoSQLite_cfg::fileName, and fileName_.

36 {
37 
39  file_ = new TFile(fileName_, "RECREATE");
40 }
TFile * file_
Definition: ZeePlots.h:83
const char * fileName_
Definition: ZeePlots.h:84
ZeePlots::~ZeePlots ( )

Definition at line 43 of file ZeePlots.cc.

References file_.

44 {
45 
46  file_->Close();
47 
48  delete file_;
49 
50 }
TFile * file_
Definition: ZeePlots.h:83
ZeePlots::ZeePlots ( const edm::ParameterSet iConfig)
explicit

Definition at line 21 of file ZeePlots.cc.

References gather_cfg::cout, deta2_EB_, deta2_EE_, deta_EB_, deta_EB_inv, deta_EE_, deta_EE_inv, dphi2_EB_, dphi2_EE_, dphi_EB_, dphi_EB_inv, dphi_EE_, dphi_EE_inv, ecalIso2_EB_, ecalIso2_EE_, ecalIso_EB_, ecalIso_EB_inv, ecalIso_EE_, ecalIso_EE_inv, edm::ParameterSet::getUntrackedParameter(), hcalIso2_EB_, hcalIso2_EE_, hcalIso_EB_, hcalIso_EB_inv, hcalIso_EE_, hcalIso_EE_inv, hoe2_EB_, hoe2_EE_, hoe_EB_, hoe_EB_inv, hoe_EE_, hoe_EE_inv, outputFile_, sihih2_EB_, sihih2_EE_, sihih_EB_, sihih_EB_inv, sihih_EE_, sihih_EE_inv, trackIso2_EB_, trackIso2_EE_, trackIso_EB_, trackIso_EB_inv, trackIso_EE_, trackIso_EE_inv, useDifferentSecondLegSelection_, userIso2_EB_, userIso2_EE_, userIso_EB_, userIso_EB_inv, userIso_EE_, userIso_EE_inv, and zeeCollectionTag_.

23 {
25 // I N P U T P A R A M E T E R S
27 //
29 // ZEE COLLECTION //////////////////////////////////////////////////////
30 //
31 
33  ("zeeCollectionTag");
34  //
35  // code parameters
36  //
37  std::string outputFile_D = "histos.root";
38  outputFile_ = iConfig.getUntrackedParameter<std::string>("outputFile",
39  outputFile_D);
40  //
41  //
42  // the selection cuts:
43  trackIso_EB_ = iConfig.getUntrackedParameter<Double_t>("trackIso_EB");
44  ecalIso_EB_ = iConfig.getUntrackedParameter<Double_t>("ecalIso_EB");
45  hcalIso_EB_ = iConfig.getUntrackedParameter<Double_t>("hcalIso_EB");
46  //
47  trackIso_EE_ = iConfig.getUntrackedParameter<Double_t>("trackIso_EE");
48  ecalIso_EE_ = iConfig.getUntrackedParameter<Double_t>("ecalIso_EE");
49  hcalIso_EE_ = iConfig.getUntrackedParameter<Double_t>("hcalIso_EE");
50  //
51  sihih_EB_ = iConfig.getUntrackedParameter<Double_t>("sihih_EB");
52  dphi_EB_ = iConfig.getUntrackedParameter<Double_t>("dphi_EB");
53  deta_EB_ = iConfig.getUntrackedParameter<Double_t>("deta_EB");
54  hoe_EB_ = iConfig.getUntrackedParameter<Double_t>("hoe_EB");
55  userIso_EB_ = iConfig.getUntrackedParameter<Double_t>("userIso_EB",1000.);
56  //
57  sihih_EE_ = iConfig.getUntrackedParameter<Double_t>("sihih_EE");
58  dphi_EE_ = iConfig.getUntrackedParameter<Double_t>("dphi_EE");
59  deta_EE_ = iConfig.getUntrackedParameter<Double_t>("deta_EE");
60  hoe_EE_ = iConfig.getUntrackedParameter<Double_t>("hoe_EE");
61  userIso_EE_ = iConfig.getUntrackedParameter<Double_t>("userIso_EE",1000.);
62  //
63  trackIso_EB_inv = iConfig.getUntrackedParameter<Bool_t>("trackIso_EB_inv",
64  false);
65  ecalIso_EB_inv = iConfig.getUntrackedParameter<Bool_t>("ecalIso_EB_inv",
66  false);
67  hcalIso_EB_inv = iConfig.getUntrackedParameter<Bool_t>("hcalIso_EB_inv",
68  false);
69  //
70  trackIso_EE_inv = iConfig.getUntrackedParameter<Bool_t>("trackIso_EE_inv",
71  false);
72  ecalIso_EE_inv = iConfig.getUntrackedParameter<Bool_t>("ecalIso_EE_inv",
73  false);
74  hcalIso_EE_inv = iConfig.getUntrackedParameter<Bool_t>("hcalIso_EE_inv",
75  false);
76  //
77  sihih_EB_inv = iConfig.getUntrackedParameter<Bool_t>("sihih_EB_inv", false);
78  dphi_EB_inv = iConfig.getUntrackedParameter<Bool_t>("dphi_EB_inv",false);
79  deta_EB_inv = iConfig.getUntrackedParameter<Bool_t>("deta_EB_inv",false);
80  hoe_EB_inv = iConfig.getUntrackedParameter<Bool_t>("hoe_EB_inv",false);
81  userIso_EB_inv=iConfig.getUntrackedParameter<Bool_t>("userIso_EB_inv",false);
82  //
83  sihih_EE_inv = iConfig.getUntrackedParameter<Bool_t>("sihih_EE_inv", false);
84  dphi_EE_inv = iConfig.getUntrackedParameter<Bool_t>("dphi_EE_inv", false);
85  deta_EE_inv = iConfig.getUntrackedParameter<Bool_t>("deta_EE_inv",false);
86  hoe_EE_inv = iConfig.getUntrackedParameter<Bool_t>("hoe_EE_inv",false);
87  userIso_EE_inv=iConfig.getUntrackedParameter<Bool_t>("userIso_EE_inv",false);
89  ("useDifferentSecondLegSelection",false);
91  std::cout << "ZeePlots: WARNING: you have chosen to use a different "
92  << " selection for the 2nd leg of the Z" << std::endl;
93  trackIso2_EB_ = iConfig.getUntrackedParameter<Double_t>("trackIso2_EB");
94  ecalIso2_EB_ = iConfig.getUntrackedParameter<Double_t>("ecalIso2_EB");
95  hcalIso2_EB_ = iConfig.getUntrackedParameter<Double_t>("hcalIso2_EB");
96  //
97  trackIso2_EE_ = iConfig.getUntrackedParameter<Double_t>("trackIso2_EE");
98  ecalIso2_EE_ = iConfig.getUntrackedParameter<Double_t>("ecalIso2_EE");
99  hcalIso2_EE_ = iConfig.getUntrackedParameter<Double_t>("hcalIso2_EE");
100  //
101  sihih2_EB_ = iConfig.getUntrackedParameter<Double_t>("sihih2_EB");
102  dphi2_EB_ = iConfig.getUntrackedParameter<Double_t>("dphi2_EB");
103  deta2_EB_ = iConfig.getUntrackedParameter<Double_t>("deta2_EB");
104  hoe2_EB_ = iConfig.getUntrackedParameter<Double_t>("hoe2_EB");
105  userIso2_EB_=iConfig.getUntrackedParameter<Double_t>("userIso2_EB", 1000.);
106  //
107  sihih2_EE_ = iConfig.getUntrackedParameter<Double_t>("sihih2_EE");
108  dphi2_EE_ = iConfig.getUntrackedParameter<Double_t>("dphi2_EE");
109  deta2_EE_ = iConfig.getUntrackedParameter<Double_t>("deta2_EE");
110  hoe2_EE_ = iConfig.getUntrackedParameter<Double_t>("hoe2_EE");
111  userIso2_EE_=iConfig.getUntrackedParameter<Double_t>("userIso2_EE", 1000.);
112  }
113  else {
117  //
121  //
125  hoe2_EB_ = hoe_EB_;
127  //
131  hoe2_EE_ = hoe_EE_;
133  }
134 
135 }
bool deta_EB_inv
Definition: ZeePlots.h:141
T getUntrackedParameter(std::string const &, T const &) const
Double_t hcalIso_EE_
Definition: ZeePlots.h:98
bool userIso_EB_inv
Definition: ZeePlots.h:144
Double_t deta2_EB_
Definition: ZeePlots.h:121
bool hcalIso_EE_inv
Definition: ZeePlots.h:138
bool sihih_EE_inv
Definition: ZeePlots.h:146
bool trackIso_EB_inv
Definition: ZeePlots.h:132
Double_t sihih_EB_
Definition: ZeePlots.h:100
Double_t ecalIso_EB_
Definition: ZeePlots.h:93
Double_t hoe_EB_
Definition: ZeePlots.h:103
Double_t ecalIso_EE_
Definition: ZeePlots.h:97
bool useDifferentSecondLegSelection_
Definition: ZeePlots.h:56
Double_t dphi_EB_
Definition: ZeePlots.h:102
Double_t sihih2_EB_
Definition: ZeePlots.h:120
bool hoe_EB_inv
Definition: ZeePlots.h:143
std::string outputFile_
Definition: ZeePlots.h:57
Double_t hcalIso_EB_
Definition: ZeePlots.h:94
Double_t deta_EE_
Definition: ZeePlots.h:107
Double_t hcalIso2_EB_
Definition: ZeePlots.h:114
bool deta_EE_inv
Definition: ZeePlots.h:147
Double_t hoe2_EB_
Definition: ZeePlots.h:123
Double_t userIso2_EE_
Definition: ZeePlots.h:130
bool hcalIso_EB_inv
Definition: ZeePlots.h:134
Double_t trackIso2_EB_
Definition: ZeePlots.h:112
bool ecalIso_EB_inv
Definition: ZeePlots.h:133
Double_t trackIso2_EE_
Definition: ZeePlots.h:116
Double_t userIso_EB_
Definition: ZeePlots.h:104
Double_t hcalIso2_EE_
Definition: ZeePlots.h:118
Double_t trackIso_EE_
Definition: ZeePlots.h:96
Double_t dphi_EE_
Definition: ZeePlots.h:108
Double_t deta2_EE_
Definition: ZeePlots.h:127
Double_t deta_EB_
Definition: ZeePlots.h:101
Double_t hoe2_EE_
Definition: ZeePlots.h:129
Double_t userIso2_EB_
Definition: ZeePlots.h:124
bool sihih_EB_inv
Definition: ZeePlots.h:140
bool dphi_EE_inv
Definition: ZeePlots.h:148
Double_t ecalIso2_EE_
Definition: ZeePlots.h:117
Double_t dphi2_EE_
Definition: ZeePlots.h:128
Double_t hoe_EE_
Definition: ZeePlots.h:109
bool ecalIso_EE_inv
Definition: ZeePlots.h:137
edm::InputTag zeeCollectionTag_
Definition: ZeePlots.h:58
Double_t sihih2_EE_
Definition: ZeePlots.h:126
tuple cout
Definition: gather_cfg.py:41
Double_t userIso_EE_
Definition: ZeePlots.h:110
Double_t ecalIso2_EB_
Definition: ZeePlots.h:113
Double_t sihih_EE_
Definition: ZeePlots.h:106
Double_t trackIso_EB_
Definition: ZeePlots.h:92
bool trackIso_EE_inv
Definition: ZeePlots.h:136
bool hoe_EE_inv
Definition: ZeePlots.h:149
bool userIso_EE_inv
Definition: ZeePlots.h:150
Double_t dphi2_EB_
Definition: ZeePlots.h:122
bool dphi_EB_inv
Definition: ZeePlots.h:142
ZeePlots::~ZeePlots ( )

Member Function Documentation

void ZeePlots::analyze ( const edm::Event iEvent,
const edm::EventSetup es 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 154 of file ZeePlots.cc.

References CheckCuts(), CheckCuts2(), gather_cfg::cout, pat::EcalIso, edm::Event::getByLabel(), h_e_ETA, h_e_PHI, h_e_PT, h_EB_deta, h_EB_dphi, h_EB_ecaliso, h_EB_hcaliso, h_EB_HoE, h_EB_sIetaIeta, h_EB_trkiso, h_EE_deta, h_EE_dphi, h_EE_ecaliso, h_EE_hcaliso, h_EE_HoE, h_EE_sIetaIeta, h_EE_trkiso, h_mee, h_mee_EBEB, h_mee_EBEE, h_mee_EEEE, h_Zcand_PT, h_Zcand_Y, pat::HcalIso, pat::TrackIso, Gflash::Z, and zeeCollectionTag_.

155 {
156  using namespace std;
157  // cout << "In analyzer now..." << endl;
158  //
159  // Get the collections here
160  //
162  iEvent.getByLabel(zeeCollectionTag_, ZeeCands);
163 
164  if (not ZeeCands.isValid()) {
165  cout << "Warning: no zee candidates in this event..." << endl;
166  return;
167  }
168  //
169  //
170  const pat::CompositeCandidateCollection *zcands = ZeeCands.product();
171  const pat::CompositeCandidateCollection::const_iterator
172  zeeIter = zcands->begin();
173  const pat::CompositeCandidate zee = *zeeIter;
174  //
175  // get the parts of the composite candidate:
176  const pat::Electron * myElec1=
177  dynamic_cast<const pat::Electron*> (zee.daughter("electron1"));
178  const pat::Electron * myElec2=
179  dynamic_cast<const pat::Electron*> (zee.daughter("electron2"));
180  // you can access MET like that if needed in some application
181  // const pat::MET * myMet=
182  // dynamic_cast<const pat::MET*> (zee.daughter("met"));
183 
184  //double met = myMet->et();
185 
186 
187  TLorentzVector e1;
188  TLorentzVector e2;
189 
190 // math::XYZVector p1 = myElec1->trackMomentumAtVtx();
191 // math::XYZVector p2 = myElec2->trackMomentumAtVtx();
192 // e1.SetPxPyPzE(p1.X(), p1.Y(), p1.Z(), myElec1->caloEnergy());
193 // e2.SetPxPyPzE(p2.X(), p2.Y(), p2.Z(), myElec2->caloEnergy());
194 
195  // Use directly the et,eta,phi from pat::Electron; assume e mass = 0.0
196  e1.SetPtEtaPhiM(myElec1->et(),myElec1->eta(),myElec1->phi(),0.0);
197  e2.SetPtEtaPhiM(myElec2->et(),myElec2->eta(),myElec2->phi(),0.0);
198 
199 
200  TLorentzVector Z = e1+e2;
201  double mee = Z.M();
202  // the selection plots:
203  bool pass = CheckCuts(myElec1) && CheckCuts2(myElec2);
204  //cout << "This event passes? " << pass << ", mee is: " << mee
205  // << " and the histo is filled." << endl;
206  if (not pass) return;
207 
208  h_mee->Fill(mee);
209  if(fabs(e1.Eta())<1.479 && fabs(e2.Eta())<1.479)h_mee_EBEB->Fill(mee);
210  if(fabs(e1.Eta())<1.479 && fabs(e2.Eta())>1.479)h_mee_EBEE->Fill(mee);
211  if(fabs(e1.Eta())>1.479 && fabs(e2.Eta())<1.479)h_mee_EBEE->Fill(mee);
212  if(fabs(e1.Eta())>1.479 && fabs(e2.Eta())>1.479)h_mee_EEEE->Fill(mee);
213 
214  h_Zcand_PT->Fill(Z.Pt());
215  h_Zcand_Y->Fill(Z.Rapidity());
216 
217  h_e_PT->Fill(e1.Pt()); h_e_PT->Fill(e2.Pt());
218  h_e_ETA->Fill(e1.Eta()); h_e_ETA->Fill(e2.Eta());
219  h_e_PHI->Fill(e1.Phi()); h_e_PHI->Fill(e2.Phi());
220 
221  if(fabs(myElec1->eta())<1.479){
222  h_EB_trkiso->Fill( myElec1->userIsolation(pat::TrackIso) );
223  h_EB_ecaliso->Fill( myElec1->userIsolation(pat::EcalIso) );
224  h_EB_hcaliso->Fill( myElec1->userIsolation(pat::HcalIso) );
225  h_EB_sIetaIeta->Fill( myElec1->scSigmaIEtaIEta() );
226  h_EB_dphi->Fill( myElec1->deltaPhiSuperClusterTrackAtVtx() );
227  h_EB_deta->Fill( myElec1->deltaEtaSuperClusterTrackAtVtx() );
228  h_EB_HoE->Fill( myElec1->hadronicOverEm() );
229  }
230  else{
231  h_EE_trkiso->Fill( myElec1->userIsolation(pat::TrackIso) );
232  h_EE_ecaliso->Fill( myElec1->userIsolation(pat::EcalIso) );
233  h_EE_hcaliso->Fill( myElec1->userIsolation(pat::HcalIso) );
234  h_EE_sIetaIeta->Fill( myElec1->scSigmaIEtaIEta() );
235  h_EE_dphi->Fill( myElec1->deltaPhiSuperClusterTrackAtVtx() );
236  h_EE_deta->Fill( myElec1->deltaEtaSuperClusterTrackAtVtx() );
237  h_EE_HoE->Fill( myElec1->hadronicOverEm() );
238  }
239 
240 
241  if(fabs(myElec2->eta())<1.479){
242  h_EB_trkiso->Fill( myElec2->userIsolation(pat::TrackIso) );
243  h_EB_ecaliso->Fill( myElec2->userIsolation(pat::EcalIso) );
244  h_EB_hcaliso->Fill( myElec2->userIsolation(pat::HcalIso) );
245  h_EB_sIetaIeta->Fill( myElec2->scSigmaIEtaIEta() );
246  h_EB_dphi->Fill( myElec2->deltaPhiSuperClusterTrackAtVtx() );
247  h_EB_deta->Fill( myElec2->deltaEtaSuperClusterTrackAtVtx() );
248  h_EB_HoE->Fill( myElec2->hadronicOverEm() );
249  }
250  else{
251  h_EE_trkiso->Fill( myElec2->userIsolation(pat::TrackIso) );
252  h_EE_ecaliso->Fill( myElec2->userIsolation(pat::EcalIso) );
253  h_EE_hcaliso->Fill( myElec2->userIsolation(pat::HcalIso) );
254  h_EE_sIetaIeta->Fill( myElec2->scSigmaIEtaIEta() );
255  h_EE_dphi->Fill( myElec2->deltaPhiSuperClusterTrackAtVtx() );
256  h_EE_deta->Fill( myElec2->deltaEtaSuperClusterTrackAtVtx() );
257  h_EE_HoE->Fill( myElec2->hadronicOverEm() );
258  }
259 
260 
261 
262 
263  //double scEta = myElec->superCluster()->eta();
264  //double scPhi = myElec->superCluster()->phi();
265  //double scEt = myElec->superCluster()->energy()/cosh(scEta);
266 
267 }
const double Z[kNumberCalorimeter]
Analysis-level particle class.
TH1F * h_mee
Definition: ZeePlots.h:62
TH1F * h_Zcand_Y
Definition: ZeePlots.h:67
TH1F * h_EE_hcaliso
Definition: ZeePlots.h:83
TH1F * h_EE_deta
Definition: ZeePlots.h:86
TH1F * h_EB_trkiso
Definition: ZeePlots.h:73
TH1F * h_EB_sIetaIeta
Definition: ZeePlots.h:76
bool CheckCuts2(const pat::Electron *ele)
Definition: ZeePlots.cc:349
TH1F * h_EB_HoE
Definition: ZeePlots.h:79
TH1F * h_mee_EBEE
Definition: ZeePlots.h:64
TH1F * h_EE_sIetaIeta
Definition: ZeePlots.h:84
TH1F * h_EE_ecaliso
Definition: ZeePlots.h:82
TH1F * h_mee_EEEE
Definition: ZeePlots.h:65
TH1F * h_e_PT
Definition: ZeePlots.h:69
TH1F * h_EE_trkiso
Definition: ZeePlots.h:81
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:359
TH1F * h_EB_deta
Definition: ZeePlots.h:78
TH1F * h_EE_dphi
Definition: ZeePlots.h:85
TH1F * h_EB_ecaliso
Definition: ZeePlots.h:74
std::vector< CompositeCandidate > CompositeCandidateCollection
TH1F * h_EB_hcaliso
Definition: ZeePlots.h:75
Analysis-level electron class.
Definition: Electron.h:46
TH1F * h_e_ETA
Definition: ZeePlots.h:70
TH1F * h_EE_HoE
Definition: ZeePlots.h:87
edm::InputTag zeeCollectionTag_
Definition: ZeePlots.h:58
TH1F * h_e_PHI
Definition: ZeePlots.h:71
tuple cout
Definition: gather_cfg.py:41
TH1F * h_EB_dphi
Definition: ZeePlots.h:77
TH1F * h_Zcand_PT
Definition: ZeePlots.h:66
TH1F * h_mee_EBEB
Definition: ZeePlots.h:63
bool CheckCuts(const pat::Electron *ele)
Definition: ZeePlots.cc:285
void ZeePlots::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 400 of file ZeePlots.cc.

References CutVars2_, CutVars_, deta2_EB_, deta2_EE_, deta_EB_, deta_EB_inv, deta_EE_, deta_EE_inv, dphi2_EB_, dphi2_EE_, dphi_EB_, dphi_EB_inv, dphi_EE_, dphi_EE_inv, ecalIso2_EB_, ecalIso2_EE_, ecalIso_EB_, ecalIso_EB_inv, ecalIso_EE_, ecalIso_EE_inv, h_e_ETA, h_e_PHI, h_e_PT, h_EB_deta, h_EB_dphi, h_EB_ecaliso, h_EB_hcaliso, h_EB_HoE, h_EB_sIetaIeta, h_EB_trkiso, h_EE_deta, h_EE_dphi, h_EE_ecaliso, h_EE_hcaliso, h_EE_HoE, h_EE_sIetaIeta, h_EE_trkiso, h_mee, h_mee_EBEB, h_mee_EBEE, h_mee_EEEE, h_Zcand_PT, h_Zcand_Y, hcalIso2_EB_, hcalIso2_EE_, hcalIso_EB_, hcalIso_EB_inv, hcalIso_EE_, hcalIso_EE_inv, hoe2_EB_, hoe2_EE_, hoe_EB_, hoe_EB_inv, hoe_EE_, hoe_EE_inv, InvVars_, nBarrelVars_, sihih2_EB_, sihih2_EE_, sihih_EB_, sihih_EB_inv, sihih_EE_, sihih_EE_inv, trackIso2_EB_, trackIso2_EE_, trackIso_EB_, trackIso_EB_inv, trackIso_EE_, trackIso_EE_inv, userIso2_EB_, userIso2_EE_, userIso_EB_, userIso_EB_inv, userIso_EE_, and userIso_EE_inv.

401 {
402  //std::cout << "In beginJob()" << std::endl;
403  h_mee = new TH1F("h_mee", "h_mee", 200, 0, 200);
404  h_mee_EBEB = new TH1F("h_mee_EBEB", "h_mee_EBEB", 200, 0, 200);
405  h_mee_EBEE = new TH1F("h_mee_EBEE", "h_mee_EBEE", 200, 0, 200);
406  h_mee_EEEE = new TH1F("h_mee_EEEE", "h_mee_EEEE", 200, 0, 200);
407 
408  h_Zcand_PT = new TH1F("h_Zcand_PT", "h_Zcand_PT", 200, 0, 100);
409  h_Zcand_Y = new TH1F("h_Zcand_Y", "h_Zcand_Y" , 200, -5, 5);
410 
411  h_e_PT = new TH1F("h_e_PT", "h_e_PT", 200, 0, 100);
412  h_e_ETA = new TH1F("h_e_ETA","h_e_ETA",200, -3, 3);
413  h_e_PHI = new TH1F("h_e_PHI","h_e_PHI",200, -4, 4);
414 
415 
416  //VALIDATION PLOTS
417  //EB
418  h_EB_trkiso = new TH1F("h_EB_trkiso","h_EB_trkiso",200 , 0.0, 9.0);
419  h_EB_ecaliso = new TH1F("h_EB_ecaliso","h_EB_ecaliso",200, 0.0 , 9.0);
420  h_EB_hcaliso = new TH1F("h_EB_hcaliso","h_EB_hcaliso",200, 0.0 , 9.0);
421  h_EB_sIetaIeta = new TH1F("h_EB_sIetaIeta","h_EB_sIetaIeta",200, 0.0 , 0.02 );
422  h_EB_dphi = new TH1F("h_EB_dphi","h_EB_dphi",200, -0.03 , 0.03 );
423  h_EB_deta = new TH1F("h_EB_deta","h_EB_deta",200, -0.01 , 0.01) ;
424  h_EB_HoE = new TH1F("h_EB_HoE","h_EB_HoE",200, 0.0 , 0.2 );
425  //EE
426  h_EE_trkiso = new TH1F("h_EE_trkiso","h_EE_trkiso",200 , 0.0, 9.0);
427  h_EE_ecaliso = new TH1F("h_EE_ecaliso","h_EE_ecaliso",200, 0.0 , 9.0);
428  h_EE_hcaliso = new TH1F("h_EE_hcaliso","h_EE_hcaliso",200, 0.0 , 9.0);
429  h_EE_sIetaIeta = new TH1F("h_EE_sIetaIeta","h_EE_sIetaIeta",200, 0.0 , 0.1 );
430  h_EE_dphi = new TH1F("h_EE_dphi","h_EE_dphi",200, -0.03 , 0.03 );
431  h_EE_deta = new TH1F("h_EE_deta","h_EE_deta",200, -0.01 , 0.01) ;
432  h_EE_HoE = new TH1F("h_EE_HoE","h_EE_HoE",200, 0.0 , 0.2 );
433 
434 
435 
436 
437 
438  //
439  // if you add some new variable change the nBarrelVars_ accordingly
440  nBarrelVars_ = 8;
441  //
442  // Put EB variables together and EE variables together
443  // number of barrel variables = number of endcap variable
444  // if you don't want to use some variable put a very high cut
445  CutVars_.push_back( trackIso_EB_ );//0
446  CutVars_.push_back( ecalIso_EB_ ); //1
447  CutVars_.push_back( hcalIso_EB_ ); //2
448  CutVars_.push_back( sihih_EB_ ); //3
449  CutVars_.push_back( dphi_EB_ ); //4
450  CutVars_.push_back( deta_EB_ ); //5
451  CutVars_.push_back( hoe_EB_ ); //6
452  CutVars_.push_back( userIso_EB_ ); //7
453 
454  CutVars_.push_back( trackIso_EE_);//0
455  CutVars_.push_back( ecalIso_EE_); //1
456  CutVars_.push_back( hcalIso_EE_); //2
457  CutVars_.push_back( sihih_EE_); //3
458  CutVars_.push_back( dphi_EE_); //4
459  CutVars_.push_back( deta_EE_); //5
460  CutVars_.push_back( hoe_EE_ ); //6
461  CutVars_.push_back( userIso_EE_ );//7
462  //
463  // 2nd leg variables
464  CutVars2_.push_back( trackIso2_EB_ );//0
465  CutVars2_.push_back( ecalIso2_EB_ ); //1
466  CutVars2_.push_back( hcalIso2_EB_ ); //2
467  CutVars2_.push_back( sihih2_EB_ ); //3
468  CutVars2_.push_back( dphi2_EB_ ); //4
469  CutVars2_.push_back( deta2_EB_ ); //5
470  CutVars2_.push_back( hoe2_EB_ ); //6
471  CutVars2_.push_back( userIso2_EB_ ); //7
472 
473  CutVars2_.push_back( trackIso2_EE_);//0
474  CutVars2_.push_back( ecalIso2_EE_); //1
475  CutVars2_.push_back( hcalIso2_EE_); //2
476  CutVars2_.push_back( sihih2_EE_); //3
477  CutVars2_.push_back( dphi2_EE_); //4
478  CutVars2_.push_back( deta2_EE_); //5
479  CutVars2_.push_back( hoe2_EE_ ); //6
480  CutVars2_.push_back( userIso2_EE_ );//7
481  //...........................................
482  InvVars_.push_back( trackIso_EB_inv);//0
483  InvVars_.push_back( ecalIso_EB_inv); //1
484  InvVars_.push_back( hcalIso_EB_inv); //2
485  InvVars_.push_back( sihih_EB_inv); //3
486  InvVars_.push_back( dphi_EB_inv); //4
487  InvVars_.push_back( deta_EB_inv); //5
488  InvVars_.push_back( hoe_EB_inv); //6
489  InvVars_.push_back( userIso_EB_inv); //7
490  //
491  InvVars_.push_back( trackIso_EE_inv);//0
492  InvVars_.push_back( ecalIso_EE_inv); //1
493  InvVars_.push_back( hcalIso_EE_inv); //2
494  InvVars_.push_back( sihih_EE_inv); //3
495  InvVars_.push_back( dphi_EE_inv); //4
496  InvVars_.push_back( deta_EE_inv); //5
497  InvVars_.push_back( hoe_EE_inv); //6
498  InvVars_.push_back( userIso_EE_inv); //7
499  //
500 
501 
502 
503 }
bool deta_EB_inv
Definition: ZeePlots.h:141
TH1F * h_mee
Definition: ZeePlots.h:62
Double_t hcalIso_EE_
Definition: ZeePlots.h:98
bool userIso_EB_inv
Definition: ZeePlots.h:144
Double_t deta2_EB_
Definition: ZeePlots.h:121
bool hcalIso_EE_inv
Definition: ZeePlots.h:138
TH1F * h_Zcand_Y
Definition: ZeePlots.h:67
TH1F * h_EE_hcaliso
Definition: ZeePlots.h:83
TH1F * h_EE_deta
Definition: ZeePlots.h:86
TH1F * h_EB_trkiso
Definition: ZeePlots.h:73
std::vector< Double_t > CutVars_
Definition: ZeePlots.h:154
TH1F * h_EB_sIetaIeta
Definition: ZeePlots.h:76
bool sihih_EE_inv
Definition: ZeePlots.h:146
bool trackIso_EB_inv
Definition: ZeePlots.h:132
Double_t sihih_EB_
Definition: ZeePlots.h:100
Double_t ecalIso_EB_
Definition: ZeePlots.h:93
Double_t hoe_EB_
Definition: ZeePlots.h:103
TH1F * h_EB_HoE
Definition: ZeePlots.h:79
Double_t ecalIso_EE_
Definition: ZeePlots.h:97
Double_t dphi_EB_
Definition: ZeePlots.h:102
TH1F * h_mee_EBEE
Definition: ZeePlots.h:64
Double_t sihih2_EB_
Definition: ZeePlots.h:120
bool hoe_EB_inv
Definition: ZeePlots.h:143
Double_t hcalIso_EB_
Definition: ZeePlots.h:94
Double_t deta_EE_
Definition: ZeePlots.h:107
Double_t hcalIso2_EB_
Definition: ZeePlots.h:114
TH1F * h_EE_sIetaIeta
Definition: ZeePlots.h:84
bool deta_EE_inv
Definition: ZeePlots.h:147
Double_t hoe2_EB_
Definition: ZeePlots.h:123
Double_t userIso2_EE_
Definition: ZeePlots.h:130
bool hcalIso_EB_inv
Definition: ZeePlots.h:134
TH1F * h_EE_ecaliso
Definition: ZeePlots.h:82
Double_t trackIso2_EB_
Definition: ZeePlots.h:112
TH1F * h_mee_EEEE
Definition: ZeePlots.h:65
TH1F * h_e_PT
Definition: ZeePlots.h:69
bool ecalIso_EB_inv
Definition: ZeePlots.h:133
TH1F * h_EE_trkiso
Definition: ZeePlots.h:81
std::vector< Double_t > InvVars_
Definition: ZeePlots.h:156
Double_t trackIso2_EE_
Definition: ZeePlots.h:116
Double_t userIso_EB_
Definition: ZeePlots.h:104
Double_t hcalIso2_EE_
Definition: ZeePlots.h:118
TH1F * h_EB_deta
Definition: ZeePlots.h:78
Double_t trackIso_EE_
Definition: ZeePlots.h:96
Double_t dphi_EE_
Definition: ZeePlots.h:108
TH1F * h_EE_dphi
Definition: ZeePlots.h:85
Double_t deta2_EE_
Definition: ZeePlots.h:127
TH1F * h_EB_ecaliso
Definition: ZeePlots.h:74
int nBarrelVars_
Definition: ZeePlots.h:152
Double_t deta_EB_
Definition: ZeePlots.h:101
Double_t hoe2_EE_
Definition: ZeePlots.h:129
TH1F * h_EB_hcaliso
Definition: ZeePlots.h:75
Double_t userIso2_EB_
Definition: ZeePlots.h:124
bool sihih_EB_inv
Definition: ZeePlots.h:140
bool dphi_EE_inv
Definition: ZeePlots.h:148
TH1F * h_e_ETA
Definition: ZeePlots.h:70
Double_t ecalIso2_EE_
Definition: ZeePlots.h:117
TH1F * h_EE_HoE
Definition: ZeePlots.h:87
Double_t dphi2_EE_
Definition: ZeePlots.h:128
Double_t hoe_EE_
Definition: ZeePlots.h:109
bool ecalIso_EE_inv
Definition: ZeePlots.h:137
TH1F * h_e_PHI
Definition: ZeePlots.h:71
Double_t sihih2_EE_
Definition: ZeePlots.h:126
TH1F * h_EB_dphi
Definition: ZeePlots.h:77
Double_t userIso_EE_
Definition: ZeePlots.h:110
Double_t ecalIso2_EB_
Definition: ZeePlots.h:113
Double_t sihih_EE_
Definition: ZeePlots.h:106
Double_t trackIso_EB_
Definition: ZeePlots.h:92
TH1F * h_Zcand_PT
Definition: ZeePlots.h:66
bool trackIso_EE_inv
Definition: ZeePlots.h:136
bool hoe_EE_inv
Definition: ZeePlots.h:149
std::vector< Double_t > CutVars2_
Definition: ZeePlots.h:155
TH1F * h_mee_EBEB
Definition: ZeePlots.h:63
bool userIso_EE_inv
Definition: ZeePlots.h:150
Double_t dphi2_EB_
Definition: ZeePlots.h:122
bool dphi_EB_inv
Definition: ZeePlots.h:142
void ZeePlots::bookEleClassesPlots ( )

Definition at line 418 of file ZeePlots.cc.

References file_, h1_occupancyVsEtaCrack_, h1_occupancyVsEtaGold_, h1_occupancyVsEtaShower_, and h1_occupancyVsEtaSilver_.

418  {
419 
420  file_->cd();
421 
422  h1_occupancyVsEtaGold_ = new TH1F("occupancyVsEtaGold","occupancyVsEtaGold", 200, -4.,4.);
423  h1_occupancyVsEtaGold_->SetYTitle("Electron statistics");
424  h1_occupancyVsEtaGold_->SetXTitle("Eta channel");
425 
426  h1_occupancyVsEtaSilver_ = new TH1F("occupancyVsEtaSilver","occupancyVsEtaSilver", 200, -4.,4.);
427  h1_occupancyVsEtaSilver_->SetYTitle("Electron statistics");
428  h1_occupancyVsEtaSilver_->SetXTitle("Eta channel");
429 
430  h1_occupancyVsEtaShower_ = new TH1F("occupancyVsEtaShower","occupancyVsEtaShower", 200, -4.,4.);
431  h1_occupancyVsEtaShower_->SetYTitle("Electron statistics");
432  h1_occupancyVsEtaShower_->SetXTitle("Eta channel");
433 
434  h1_occupancyVsEtaCrack_ = new TH1F("occupancyVsEtaCrack","occupancyVsEtaCrack", 200, -4.,4.);
435  h1_occupancyVsEtaCrack_->SetYTitle("Electron statistics");
436  h1_occupancyVsEtaCrack_->SetXTitle("Eta channel");
437 
438 }
TH1F * h1_occupancyVsEtaShower_
Definition: ZeePlots.h:123
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_occupancyVsEtaGold_
Definition: ZeePlots.h:120
TH1F * h1_occupancyVsEtaCrack_
Definition: ZeePlots.h:122
TH1F * h1_occupancyVsEtaSilver_
Definition: ZeePlots.h:121
void ZeePlots::bookEleHistograms ( )

Definition at line 231 of file ZeePlots.cc.

References file_, h1_nEleReco_, h1_recoEleEnergy_, h1_recoEleEta_, h1_recoElePhi_, and h1_recoElePt_.

Referenced by ZeeCalibration::bookHistograms().

231  {
232 
233  file_->cd();
234 
235  h1_nEleReco_ = new TH1F("h1_nEleReco", "h1_nEleReco", 20, 0, 20 );
236  h1_nEleReco_->SetXTitle("Num. of reco electrons");
237 
238  h1_recoEleEnergy_ = new TH1F("recoEleEnergy","EleEnergy from SC",300,0.,300.);
239  h1_recoEleEnergy_->SetXTitle("eleSCEnergy(GeV)");
240  h1_recoEleEnergy_->SetYTitle("events");
241 
242  h1_recoElePt_ = new TH1F("recoElePt","p_{T} of reco electrons",300,0.,300.);
243  h1_recoElePt_->SetXTitle("p_{T}(GeV/c)");
244  h1_recoElePt_->SetYTitle("events");
245 
246  h1_recoEleEta_ = new TH1F("recoEleEta","Eta of reco electrons",100,-4.,4.);
247  h1_recoEleEta_->SetXTitle("#eta");
248  h1_recoEleEta_->SetYTitle("events");
249 
250 
251  h1_recoElePhi_ = new TH1F("recoElePhi","Phi of reco electrons",100,-4.,4.);
252  h1_recoElePhi_->SetXTitle("#phi");
253  h1_recoElePhi_->SetYTitle("events");
254 
255 
256 
257 }
TH1F * h1_recoEleEnergy_
Definition: ZeePlots.h:107
TH1F * h1_recoElePhi_
Definition: ZeePlots.h:110
TH1F * h1_nEleReco_
Definition: ZeePlots.h:111
TH1F * h1_recoEleEta_
Definition: ZeePlots.h:109
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_recoElePt_
Definition: ZeePlots.h:108
void ZeePlots::bookEleMCHistograms ( )

Definition at line 186 of file ZeePlots.cc.

References file_, h1_mcEle_Energy_, h1_mcEleEta_, h1_mcElePhi_, and h1_mcElePt_.

Referenced by ZeeCalibration::bookHistograms().

186  {
187 
188  file_->cd();
189 
190  h1_mcEle_Energy_ = new TH1F("mcEleEnergy","mc EleEnergy",300,0.,300.);
191  h1_mcEle_Energy_->SetXTitle("E (GeV)");
192  h1_mcEle_Energy_->SetYTitle("events");
193 
194  h1_mcElePt_ = new TH1F("mcElePt","p_{T} of MC electrons",300,0.,300.);
195  h1_mcElePt_->SetXTitle("p_{T}(GeV/c)");
196  h1_mcElePt_->SetYTitle("events");
197 
198  h1_mcEleEta_ = new TH1F("mcEleEta","Eta of MC electrons",100,-4.,4.);
199  h1_mcEleEta_->SetXTitle("#eta");
200  h1_mcEleEta_->SetYTitle("events");
201 
202  h1_mcElePhi_ = new TH1F("mcElePhi","Phi of MC electrons",100,-4.,4.);
203  h1_mcElePhi_->SetXTitle("#phi");
204  h1_mcElePhi_->SetYTitle("events");
205 
206 }
TH1F * h1_mcElePhi_
Definition: ZeePlots.h:105
TH1F * h1_mcEle_Energy_
Definition: ZeePlots.h:102
TH1F * h1_mcElePt_
Definition: ZeePlots.h:103
TH1F * h1_mcEleEta_
Definition: ZeePlots.h:104
TFile * file_
Definition: ZeePlots.h:83
void ZeePlots::bookHLTHistograms ( )

Definition at line 317 of file ZeePlots.cc.

References file_, h1_FiredTriggers_, h1_HLT1Electron_FiredEvents_, h1_HLT1Electron_HLT2Electron_FiredEvents_, h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_, h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_, h1_HLT2Electron_FiredEvents_, h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_, h1_HLT2ElectronRelaxed_FiredEvents_, and h1_HLTVisitedEvents_.

317  {
318 
319  file_->cd();
320 
321  h1_FiredTriggers_= new TH1F("h1_FiredTriggers", "h1_FiredTriggers", 5,0,5);
322 
323  h1_HLTVisitedEvents_ = new TH1F("h1_HLTVisitedEvents", "h1_HLTVisitedEvents", 5,0,5);
324 
325  h1_HLT1Electron_FiredEvents_ = new TH1F("h1_HLT1Electron_FiredEvents", "h1_HLT1Electron_FiredEvents", 5,0,5);
326  h1_HLT2Electron_FiredEvents_ = new TH1F("h1_HLT2Electron_FiredEvents", "h1_HLT2Electron_FiredEvents", 5,0,5);
327  h1_HLT2ElectronRelaxed_FiredEvents_ = new TH1F("h1_HLT2ElectronRelaxed_FiredEvents", "h1_HLT2ElectronRelaxed_FiredEvents", 5,0,5);
328 
329  h1_HLT1Electron_HLT2Electron_FiredEvents_ = new TH1F("h1_HLT1Electron_HLT2Electron_FiredEvents", "h1_HLT1Electron_HLT2Electron_FiredEvents", 5,0,5);
330  h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_ = new TH1F("h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents", "h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents", 5,0,5);
331  h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_ = new TH1F("h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents", "h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents", 5,0,5);
332 
333  h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_ = new TH1F("h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents", "h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents", 5,0,5);
334 
335 
336 }
TH1F * h1_HLTVisitedEvents_
Definition: ZeePlots.h:100
TH1F * h1_HLT1Electron_HLT2Electron_FiredEvents_
Definition: ZeePlots.h:96
TH1F * h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:97
TH1F * h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:98
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_HLT1Electron_FiredEvents_
Definition: ZeePlots.h:93
TH1F * h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:99
TH1F * h1_HLT2Electron_FiredEvents_
Definition: ZeePlots.h:94
TH1F * h1_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:95
TH1F * h1_FiredTriggers_
Definition: ZeePlots.h:92
void ZeePlots::bookZHistograms ( )

Definition at line 89 of file ZeePlots.cc.

References file_, h1_reco_ZEta_, h1_reco_ZPhi_, h1_reco_ZPt_, h1_reco_ZRapidity_, and h1_reco_ZTheta_.

Referenced by ZeeCalibration::bookHistograms().

89  {
90 
91  file_ -> cd();
92 
93  h1_reco_ZEta_ = new TH1F("reco_ZEta","Eta of reco Z",200,-6.,6.);
94  h1_reco_ZEta_->SetXTitle("#eta");
95  h1_reco_ZEta_->SetYTitle("events");
96 
97  h1_reco_ZTheta_ = new TH1F("reco_ZTheta","Theta of reco Z",200, 0., 4.);
98  h1_reco_ZTheta_->SetXTitle("#theta");
99  h1_reco_ZTheta_->SetYTitle("events");
100 
101  h1_reco_ZRapidity_ = new TH1F("reco_ZRapidity","Rapidity of reco Z",200,-6.,6.);
102  h1_reco_ZRapidity_->SetXTitle("Y");
103  h1_reco_ZRapidity_->SetYTitle("events");
104 
105  h1_reco_ZPhi_ = new TH1F("reco_ZPhi","Phi of reco Z",100,-4.,4.);
106  h1_reco_ZPhi_->SetXTitle("#phi");
107  h1_reco_ZPhi_->SetYTitle("events");
108 
109  h1_reco_ZPt_ = new TH1F("reco_ZPt","Pt of reco Z",200,0.,100.);
110  h1_reco_ZPt_->SetXTitle("p_{T} (GeV/c)");
111  h1_reco_ZPt_->SetYTitle("events");
112 
113 
114 }
TH1F * h1_reco_ZPt_
Definition: ZeePlots.h:118
TH1F * h1_reco_ZTheta_
Definition: ZeePlots.h:115
TH1F * h1_reco_ZRapidity_
Definition: ZeePlots.h:116
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_reco_ZEta_
Definition: ZeePlots.h:114
TH1F * h1_reco_ZPhi_
Definition: ZeePlots.h:117
void ZeePlots::bookZMCHistograms ( )

Definition at line 62 of file ZeePlots.cc.

References file_, h1_gen_ZEta_, h1_gen_ZMass_, h1_gen_ZPhi_, h1_gen_ZPt_, and h1_gen_ZRapidity_.

Referenced by ZeeCalibration::bookHistograms().

62  {
63 
64  file_ -> cd();
65 
66  h1_gen_ZMass_ = new TH1F("gen_ZMass","Generated Z mass",200,0.,150.);
67  h1_gen_ZMass_->SetXTitle("gen_ZMass (GeV)");
68  h1_gen_ZMass_->SetYTitle("events");
69 
70  h1_gen_ZEta_ = new TH1F("gen_ZEta","Eta of gen Z",200,-6.,6.);
71  h1_gen_ZEta_->SetXTitle("#eta");
72  h1_gen_ZEta_->SetYTitle("events");
73 
74  h1_gen_ZPhi_ = new TH1F("gen_ZPhi","Phi of gen Z",200,-4.,4.);
75  h1_gen_ZPhi_->SetXTitle("#phi");
76  h1_gen_ZPhi_->SetYTitle("events");
77 
78  h1_gen_ZRapidity_ = new TH1F("gen_ZRapidity","Rapidity of gen Z",200,-6.,6.);
79  h1_gen_ZRapidity_->SetXTitle("Y");
80  h1_gen_ZRapidity_->SetYTitle("events");
81 
82  h1_gen_ZPt_ = new TH1F("gen_ZPt","Pt of gen Z",200, 0.,100.);
83  h1_gen_ZPt_->SetXTitle("p_{T} (GeV/c)");
84  h1_gen_ZPt_->SetYTitle("events");
85 
86 
87 }
TH1F * h1_gen_ZPt_
Definition: ZeePlots.h:90
TH1F * h1_gen_ZRapidity_
Definition: ZeePlots.h:87
TH1F * h1_gen_ZMass_
Definition: ZeePlots.h:86
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_gen_ZEta_
Definition: ZeePlots.h:88
TH1F * h1_gen_ZPhi_
Definition: ZeePlots.h:89
bool ZeePlots::CheckCut ( const pat::Electron wenu,
int  i 
)
private

Definition at line 312 of file ZeePlots.cc.

References CutVars_, i, nBarrelVars_, ReturnCandVar(), and pat::Electron::superCluster().

Referenced by CheckCuts(), and CheckCutsNminusOne().

312  {
313  double fabseta = fabs(ele->superCluster()->eta());
314  if ( fabseta<1.479) {
315  return fabs(ReturnCandVar(ele, i)) < CutVars_[i];
316  }
317  return fabs(ReturnCandVar(ele, i)) < CutVars_[i+nBarrelVars_];
318 }
int i
Definition: DBlmapReader.cc:9
std::vector< Double_t > CutVars_
Definition: ZeePlots.h:154
double ReturnCandVar(const pat::Electron *ele, int i)
Definition: ZeePlots.cc:333
int nBarrelVars_
Definition: ZeePlots.h:152
bool ZeePlots::CheckCut2 ( const pat::Electron wenu,
int  i 
)
private

Definition at line 376 of file ZeePlots.cc.

References CutVars2_, i, nBarrelVars_, ReturnCandVar(), and pat::Electron::superCluster().

Referenced by CheckCuts2(), and CheckCuts2NminusOne().

376  {
377  double fabseta = fabs(ele->superCluster()->eta());
378  if ( fabseta<1.479) {
379  return fabs(ReturnCandVar(ele, i)) < CutVars2_[i];
380  }
381  return fabs(ReturnCandVar(ele, i)) < CutVars2_[i+nBarrelVars_];
382 }
int i
Definition: DBlmapReader.cc:9
double ReturnCandVar(const pat::Electron *ele, int i)
Definition: ZeePlots.cc:333
int nBarrelVars_
Definition: ZeePlots.h:152
std::vector< Double_t > CutVars2_
Definition: ZeePlots.h:155
bool ZeePlots::CheckCut2Inv ( const pat::Electron wenu,
int  i 
)
private

Definition at line 384 of file ZeePlots.cc.

References CutVars2_, i, InvVars_, nBarrelVars_, ReturnCandVar(), and pat::Electron::superCluster().

Referenced by CheckCuts2Inverse().

384  {
385  double fabseta = fabs(ele->superCluster()->eta());
386  if ( fabseta<1.479) {
387  if (InvVars_[i]) return fabs(ReturnCandVar(ele, i))>CutVars2_[i];
388  return fabs(ReturnCandVar(ele, i)) < CutVars2_[i];
389  }
390  if (InvVars_[i+nBarrelVars_]) {
391  if (InvVars_[i])
392  return fabs(ReturnCandVar(ele, i))>CutVars2_[i+nBarrelVars_];
393  }
394  return fabs(ReturnCandVar(ele, i)) < CutVars2_[i+nBarrelVars_];
395 }
int i
Definition: DBlmapReader.cc:9
double ReturnCandVar(const pat::Electron *ele, int i)
Definition: ZeePlots.cc:333
std::vector< Double_t > InvVars_
Definition: ZeePlots.h:156
int nBarrelVars_
Definition: ZeePlots.h:152
std::vector< Double_t > CutVars2_
Definition: ZeePlots.h:155
bool ZeePlots::CheckCutInv ( const pat::Electron wenu,
int  i 
)
private

Definition at line 320 of file ZeePlots.cc.

References CutVars_, i, InvVars_, nBarrelVars_, ReturnCandVar(), and pat::Electron::superCluster().

Referenced by CheckCutsInverse().

320  {
321  double fabseta = fabs(ele->superCluster()->eta());
322  if ( fabseta<1.479) {
323  if (InvVars_[i]) return fabs(ReturnCandVar(ele, i))>CutVars_[i];
324  return fabs(ReturnCandVar(ele, i)) < CutVars_[i];
325  }
326  if (InvVars_[i+nBarrelVars_]) {
327  if (InvVars_[i])
328  return fabs(ReturnCandVar(ele, i))>CutVars_[i+nBarrelVars_];
329  }
330  return fabs(ReturnCandVar(ele, i)) < CutVars_[i+nBarrelVars_];
331 }
int i
Definition: DBlmapReader.cc:9
std::vector< Double_t > CutVars_
Definition: ZeePlots.h:154
double ReturnCandVar(const pat::Electron *ele, int i)
Definition: ZeePlots.cc:333
std::vector< Double_t > InvVars_
Definition: ZeePlots.h:156
int nBarrelVars_
Definition: ZeePlots.h:152
bool ZeePlots::CheckCuts ( const pat::Electron ele)
private

Definition at line 285 of file ZeePlots.cc.

References CheckCut(), i, and nBarrelVars_.

Referenced by analyze().

286 {
287  for (int i=0; i<nBarrelVars_; ++i) {
288  if (not CheckCut(ele, i)) return false;
289  }
290  return true;
291 }
int i
Definition: DBlmapReader.cc:9
bool CheckCut(const pat::Electron *wenu, int i)
Definition: ZeePlots.cc:312
int nBarrelVars_
Definition: ZeePlots.h:152
bool ZeePlots::CheckCuts2 ( const pat::Electron ele)
private

Definition at line 349 of file ZeePlots.cc.

References CheckCut2(), i, and nBarrelVars_.

Referenced by analyze().

350 {
351  for (int i=0; i<nBarrelVars_; ++i) {
352  if (not CheckCut2(ele, i)) return false;
353  }
354  return true;
355 }
int i
Definition: DBlmapReader.cc:9
bool CheckCut2(const pat::Electron *wenu, int i)
Definition: ZeePlots.cc:376
int nBarrelVars_
Definition: ZeePlots.h:152
bool ZeePlots::CheckCuts2Inverse ( const pat::Electron ele)
private

Definition at line 358 of file ZeePlots.cc.

References CheckCut2Inv(), i, and nBarrelVars_.

359 {
360  for (int i=0; i<nBarrelVars_; ++i){
361  if ( CheckCut2Inv(ele, i) == false) return false;
362  }
363  return true;
364 
365 }
int i
Definition: DBlmapReader.cc:9
bool CheckCut2Inv(const pat::Electron *wenu, int i)
Definition: ZeePlots.cc:384
int nBarrelVars_
Definition: ZeePlots.h:152
bool ZeePlots::CheckCuts2NminusOne ( const pat::Electron ele,
int  jj 
)
private

Definition at line 367 of file ZeePlots.cc.

References CheckCut2(), i, and nBarrelVars_.

368 {
369  for (int i=0; i<nBarrelVars_; ++i){
370  if (i==jj) continue;
371  if ( CheckCut2(ele, i) == false) return false;
372  }
373  return true;
374 }
int i
Definition: DBlmapReader.cc:9
bool CheckCut2(const pat::Electron *wenu, int i)
Definition: ZeePlots.cc:376
int nBarrelVars_
Definition: ZeePlots.h:152
bool ZeePlots::CheckCutsInverse ( const pat::Electron ele)
private

Definition at line 294 of file ZeePlots.cc.

References CheckCutInv(), i, and nBarrelVars_.

295 {
296  for (int i=0; i<nBarrelVars_; ++i){
297  if ( CheckCutInv(ele, i) == false) return false;
298  }
299  return true;
300 
301 }
int i
Definition: DBlmapReader.cc:9
bool CheckCutInv(const pat::Electron *wenu, int i)
Definition: ZeePlots.cc:320
int nBarrelVars_
Definition: ZeePlots.h:152
bool ZeePlots::CheckCutsNminusOne ( const pat::Electron ele,
int  jj 
)
private

Definition at line 303 of file ZeePlots.cc.

References CheckCut(), i, and nBarrelVars_.

304 {
305  for (int i=0; i<nBarrelVars_; ++i){
306  if (i==jj) continue;
307  if ( CheckCut(ele, i) == false) return false;
308  }
309  return true;
310 }
int i
Definition: DBlmapReader.cc:9
bool CheckCut(const pat::Electron *wenu, int i)
Definition: ZeePlots.cc:312
int nBarrelVars_
Definition: ZeePlots.h:152
void ZeePlots::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 507 of file ZeePlots.cc.

References h_e_ETA, h_e_PHI, h_e_PT, h_EB_deta, h_EB_dphi, h_EB_ecaliso, h_EB_hcaliso, h_EB_HoE, h_EB_sIetaIeta, h_EB_trkiso, h_EE_deta, h_EE_dphi, h_EE_ecaliso, h_EE_hcaliso, h_EE_HoE, h_EE_sIetaIeta, h_EE_trkiso, h_mee, h_mee_EBEB, h_mee_EBEE, h_mee_EEEE, h_Zcand_PT, h_Zcand_Y, runonSM::newfile, and outputFile_.

507  {
508  TFile * newfile = new TFile(TString(outputFile_),"RECREATE");
509  //
510  h_mee->Write();
511  h_mee_EBEB->Write();
512  h_mee_EBEE->Write();
513  h_mee_EEEE->Write();
514  h_Zcand_PT->Write();
515  h_Zcand_Y->Write();
516 
517  h_e_PT->Write();
518  h_e_ETA->Write();
519  h_e_PHI->Write();
520 
521 
522  h_EB_trkiso->Write();
523  h_EB_ecaliso->Write();
524  h_EB_hcaliso->Write();
525  h_EB_sIetaIeta->Write();
526  h_EB_dphi->Write();
527  h_EB_deta->Write();
528  h_EB_HoE->Write();
529 
530  h_EE_trkiso->Write();
531  h_EE_ecaliso->Write();
532  h_EE_hcaliso->Write();
533  h_EE_sIetaIeta->Write();
534  h_EE_dphi->Write();
535  h_EE_deta->Write();
536  h_EE_HoE->Write();
537 
538  //
539  newfile->Close();
540 
541 }
TH1F * h_mee
Definition: ZeePlots.h:62
TH1F * h_Zcand_Y
Definition: ZeePlots.h:67
TH1F * h_EE_hcaliso
Definition: ZeePlots.h:83
TH1F * h_EE_deta
Definition: ZeePlots.h:86
TH1F * h_EB_trkiso
Definition: ZeePlots.h:73
TH1F * h_EB_sIetaIeta
Definition: ZeePlots.h:76
TH1F * h_EB_HoE
Definition: ZeePlots.h:79
TH1F * h_mee_EBEE
Definition: ZeePlots.h:64
std::string outputFile_
Definition: ZeePlots.h:57
tuple newfile
Definition: runonSM.py:48
TH1F * h_EE_sIetaIeta
Definition: ZeePlots.h:84
TH1F * h_EE_ecaliso
Definition: ZeePlots.h:82
TH1F * h_mee_EEEE
Definition: ZeePlots.h:65
TH1F * h_e_PT
Definition: ZeePlots.h:69
TH1F * h_EE_trkiso
Definition: ZeePlots.h:81
TH1F * h_EB_deta
Definition: ZeePlots.h:78
TH1F * h_EE_dphi
Definition: ZeePlots.h:85
TH1F * h_EB_ecaliso
Definition: ZeePlots.h:74
TH1F * h_EB_hcaliso
Definition: ZeePlots.h:75
TH1F * h_e_ETA
Definition: ZeePlots.h:70
TH1F * h_EE_HoE
Definition: ZeePlots.h:87
TH1F * h_e_PHI
Definition: ZeePlots.h:71
TH1F * h_EB_dphi
Definition: ZeePlots.h:77
TH1F * h_Zcand_PT
Definition: ZeePlots.h:66
TH1F * h_mee_EBEB
Definition: ZeePlots.h:63
void ZeePlots::fillEleClassesPlots ( calib::CalibElectron myEle)

Definition at line 389 of file ZeePlots.cc.

References reco::GsfElectron::classification(), gather_cfg::cout, reco::LeafCandidate::eta(), calib::CalibElectron::getRecoElectron(), h1_occupancyVsEtaCrack_, h1_occupancyVsEtaGold_, h1_occupancyVsEtaShower_, and h1_occupancyVsEtaSilver_.

389  {
390 
391  int myClass = myEle->getRecoElectron()->classification();
392 
393  float myEta = myEle->getRecoElectron()->eta();
394 
395  if(myClass==0 || myClass==100)
396  h1_occupancyVsEtaGold_->Fill(myEta);
397 
398  std::cout<< "[ZeePlots::fillEleClassesPlots]Done gold"<< std::endl;
399 
400  if(myClass==40 || myClass==140)
401  h1_occupancyVsEtaCrack_->Fill(myEta);
402 
403  std::cout<< "[ZeePlots::fillEleClassesPlots]Done crack"<< std::endl;
404 
405  if( (myClass>=30 && myClass<=34) || (myClass>=130 && myClass<=134) )
406  h1_occupancyVsEtaShower_->Fill(myEta);
407 
408  std::cout<< "[ZeePlots::fillEleClassesPlots]Done shower"<< std::endl;
409 
410  if( myClass==10 || myClass==20 || myClass==110 || myClass ==120)
411  h1_occupancyVsEtaSilver_->Fill(myEta);
412 
413  std::cout<< "[ZeePlots::fillEleClassesPlots]Done"<< std::endl;
414 
415 }
virtual double eta() const
momentum pseudorapidity
TH1F * h1_occupancyVsEtaShower_
Definition: ZeePlots.h:123
Classification classification() const
Definition: GsfElectron.h:530
TH1F * h1_occupancyVsEtaGold_
Definition: ZeePlots.h:120
TH1F * h1_occupancyVsEtaCrack_
Definition: ZeePlots.h:122
const reco::GsfElectron * getRecoElectron()
Definition: CalibElectron.h:32
tuple cout
Definition: gather_cfg.py:41
TH1F * h1_occupancyVsEtaSilver_
Definition: ZeePlots.h:121
void ZeePlots::fillEleInfo ( const reco::GsfElectronCollection electronCollection)

Definition at line 261 of file ZeePlots.cc.

References file_, h1_nEleReco_, h1_recoEleEnergy_, h1_recoEleEta_, h1_recoElePhi_, and h1_recoElePt_.

Referenced by ZeeCalibration::duringLoop().

261  {
262 
263  file_->cd();
264 
265  h1_nEleReco_->Fill(electronCollection->size());
266 
267  for(reco::GsfElectronCollection::const_iterator eleIt = electronCollection->begin(); eleIt != electronCollection->end(); eleIt++)
268  {
269 
270  file_->cd();
271 
272  h1_recoEleEnergy_->Fill( eleIt->superCluster()->energy() );
273  h1_recoElePt_->Fill( eleIt->pt() );
274  h1_recoEleEta_->Fill( eleIt->eta() );
275  h1_recoElePhi_->Fill( eleIt->phi() );
276 
277  }//end loop on electrons
278 
279 }
TH1F * h1_recoEleEnergy_
Definition: ZeePlots.h:107
TH1F * h1_recoElePhi_
Definition: ZeePlots.h:110
TH1F * h1_nEleReco_
Definition: ZeePlots.h:111
TH1F * h1_recoEleEta_
Definition: ZeePlots.h:109
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_recoElePt_
Definition: ZeePlots.h:108
void ZeePlots::fillEleMCInfo ( const HepMC::GenEvent *  myGenEvent)

Definition at line 210 of file ZeePlots.cc.

References abs, file_, h1_mcEle_Energy_, h1_mcEleEta_, h1_mcElePhi_, h1_mcElePt_, and L1TEmulatorMonitor_cff::p.

Referenced by ZeeCalibration::duringLoop().

210  {
211 
212  file_->cd();
213 
214  for ( HepMC::GenEvent::particle_const_iterator p = myGenEvent->particles_begin();
215  p != myGenEvent->particles_end(); ++p ) {
216 
217  if ( abs( (*p)->pdg_id() ) == 11 )
218  {
219  h1_mcEle_Energy_->Fill( (*p)->momentum().e() );
220  h1_mcElePt_->Fill( (*p)->momentum().perp() );
221  h1_mcEleEta_->Fill( (*p)->momentum().eta() );
222  h1_mcElePhi_->Fill( (*p)->momentum().phi() );
223 
224  }//matches if ( abs( (*p)->pdg_id() ) == 11 )
225 
226  }//end loop over MC particles
227 
228 }
TH1F * h1_mcElePhi_
Definition: ZeePlots.h:105
TH1F * h1_mcEle_Energy_
Definition: ZeePlots.h:102
#define abs(x)
Definition: mlp_lapack.h:159
TH1F * h1_mcElePt_
Definition: ZeePlots.h:103
TH1F * h1_mcEleEta_
Definition: ZeePlots.h:104
TFile * file_
Definition: ZeePlots.h:83
void ZeePlots::fillHLTInfo ( edm::Handle< edm::TriggerResults hltTriggerResultHandle)

Definition at line 341 of file ZeePlots.cc.

References file_, h1_FiredTriggers_, h1_HLT1Electron_FiredEvents_, h1_HLT1Electron_HLT2Electron_FiredEvents_, h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_, h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_, h1_HLT2Electron_FiredEvents_, h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_, h1_HLT2ElectronRelaxed_FiredEvents_, h1_HLTVisitedEvents_, and i.

Referenced by ZeeCalibration::duringLoop().

341  {
342 
343  file_->cd();
344 
345  int hltCount = hltTriggerResultHandle->size();
346 
347  bool aHLTResults[200] = { false };
348 
349  for(int i = 0 ; i < hltCount ; i++) {
350 
351  aHLTResults[i] = hltTriggerResultHandle->accept(i);
352  if(aHLTResults[i])
353  h1_FiredTriggers_->Fill(i);
354 
355  //HLT bit 32 = HLT1Electron
356  //HLT bit 34 = HLT2Electron
357  //HLT bit 35 = HLT2ElectronRelaxed
358 
359  }
360 
361  h1_HLTVisitedEvents_->Fill(1);
362 
363  if(aHLTResults[32] && !aHLTResults[34] && !aHLTResults[35])
365 
366  if(aHLTResults[34] && !aHLTResults[32] && !aHLTResults[35])
368 
369  if(aHLTResults[35] && !aHLTResults[32] && !aHLTResults[34])
371 
372  if(aHLTResults[32] && aHLTResults[34] && !aHLTResults[35])
374 
375  if(aHLTResults[32] && aHLTResults[35] && !aHLTResults[34])
377 
378  if(aHLTResults[34] && aHLTResults[35] && !aHLTResults[32])
380 
381  if(aHLTResults[32] && aHLTResults[34] && aHLTResults[35])
383 
384 
385 
386 }
TH1F * h1_HLTVisitedEvents_
Definition: ZeePlots.h:100
int i
Definition: DBlmapReader.cc:9
TH1F * h1_HLT1Electron_HLT2Electron_FiredEvents_
Definition: ZeePlots.h:96
TH1F * h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:97
TH1F * h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:98
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_HLT1Electron_FiredEvents_
Definition: ZeePlots.h:93
TH1F * h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:99
TH1F * h1_HLT2Electron_FiredEvents_
Definition: ZeePlots.h:94
TH1F * h1_HLT2ElectronRelaxed_FiredEvents_
Definition: ZeePlots.h:95
TH1F * h1_FiredTriggers_
Definition: ZeePlots.h:92
void ZeePlots::fillZInfo ( std::pair< calib::CalibElectron *, calib::CalibElectron * >  myZeeCandidate)

Definition at line 118 of file ZeePlots.cc.

References ZeeKinematicTools::calculateZEta(), ZeeKinematicTools::calculateZPhi(), ZeeKinematicTools::calculateZPt(), ZeeKinematicTools::calculateZRapidity(), ZeeKinematicTools::calculateZTheta(), h1_reco_ZEta_, h1_reco_ZPhi_, h1_reco_ZPt_, h1_reco_ZRapidity_, and h1_reco_ZTheta_.

Referenced by ZeeCalibration::duringLoop().

118  {
119 
120  h1_reco_ZEta_->Fill( ZeeKinematicTools::calculateZEta(myZeeCandidate) );
121  h1_reco_ZTheta_->Fill( ZeeKinematicTools::calculateZTheta(myZeeCandidate) );
123  h1_reco_ZPhi_->Fill( ZeeKinematicTools::calculateZPhi(myZeeCandidate) );
124  h1_reco_ZPt_->Fill( ZeeKinematicTools::calculateZPt(myZeeCandidate) );
125 
126 }
TH1F * h1_reco_ZPt_
Definition: ZeePlots.h:118
TH1F * h1_reco_ZTheta_
Definition: ZeePlots.h:115
static float calculateZEta(const std::pair< calib::CalibElectron *, calib::CalibElectron * > &aZCandidate)
static float calculateZPt(const std::pair< calib::CalibElectron *, calib::CalibElectron * > &aZCandidate)
TH1F * h1_reco_ZRapidity_
Definition: ZeePlots.h:116
static float calculateZRapidity(const std::pair< calib::CalibElectron *, calib::CalibElectron * > &aZCandidate)
TH1F * h1_reco_ZEta_
Definition: ZeePlots.h:114
TH1F * h1_reco_ZPhi_
Definition: ZeePlots.h:117
static float calculateZTheta(const std::pair< calib::CalibElectron *, calib::CalibElectron * > &aZCandidate)
static float calculateZPhi(const std::pair< calib::CalibElectron *, calib::CalibElectron * > &aZCandidate)
void ZeePlots::fillZMCInfo ( const HepMC::GenEvent *  myGenEvent)

Definition at line 158 of file ZeePlots.cc.

References file_, h1_gen_ZEta_, h1_gen_ZMass_, h1_gen_ZPhi_, h1_gen_ZPt_, h1_gen_ZRapidity_, funct::log(), and L1TEmulatorMonitor_cff::p.

Referenced by ZeeCalibration::duringLoop().

158  {
159 
160  file_->cd();
161 
162  for ( HepMC::GenEvent::particle_const_iterator p = myGenEvent->particles_begin();
163  p != myGenEvent->particles_end(); ++p ) {//loop over MC particles
164 
165  if ( (*p)->pdg_id() == 23 && (*p)->status() == 2 ){
166 
167  h1_gen_ZMass_->Fill( (*p)->momentum().m() );
168  h1_gen_ZEta_->Fill( (*p)->momentum().eta() );
169 
170  float genZ_Y = 0.5 * log ( ( (*p)->momentum().e() + (*p)->momentum().pz() ) / ( (*p)->momentum().e() - (*p)->momentum().pz() ) ) ;
171 
172  h1_gen_ZRapidity_->Fill( genZ_Y );
173  h1_gen_ZPt_->Fill((*p)->momentum().perp());
174  h1_gen_ZPhi_->Fill((*p)->momentum().phi());
175 
176 
177 
178  }
179  }//end loop over MC particles
180 
181  return;
182 }
TH1F * h1_gen_ZPt_
Definition: ZeePlots.h:90
TH1F * h1_gen_ZRapidity_
Definition: ZeePlots.h:87
TH1F * h1_gen_ZMass_
Definition: ZeePlots.h:86
TFile * file_
Definition: ZeePlots.h:83
Log< T >::type log(const T &t)
Definition: Log.h:22
TH1F * h1_gen_ZEta_
Definition: ZeePlots.h:88
TH1F * h1_gen_ZPhi_
Definition: ZeePlots.h:89
void ZeePlots::openFile ( )
double ZeePlots::ReturnCandVar ( const pat::Electron ele,
int  i 
)
private

Definition at line 333 of file ZeePlots.cc.

References gather_cfg::cout, reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), pat::EcalIso, reco::GsfElectron::hadronicOverEm(), pat::HcalIso, reco::GsfElectron::scSigmaIEtaIEta(), pat::TrackIso, pat::User1Iso, and pat::Lepton< LeptonType >::userIsolation().

Referenced by CheckCut(), CheckCut2(), CheckCut2Inv(), and CheckCutInv().

333  {
334  if (i==0) return ele->userIsolation(pat::TrackIso);
335  else if (i==1) return ele->userIsolation(pat::EcalIso);
336  else if (i==2) return ele->userIsolation(pat::HcalIso);
337  else if (i==3) return ele->scSigmaIEtaIEta();
338  else if (i==4) return ele->deltaPhiSuperClusterTrackAtVtx();
339  else if (i==5) return ele->deltaEtaSuperClusterTrackAtVtx();
340  else if (i==6) return ele->hadronicOverEm();
341  else if (i==7) return ele->userIsolation(pat::User1Iso);
342  std::cout << "Error in ZeePlots::ReturnCandVar" << std::endl;
343  return -1.;
344 
345 }
int i
Definition: DBlmapReader.cc:9
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:205
float hadronicOverEm() const
Definition: GsfElectron.h:393
float deltaPhiSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:208
float scSigmaIEtaIEta() const
Definition: GsfElectron.h:389
float userIsolation(IsolationKeys key) const
Definition: Lepton.h:51
tuple cout
Definition: gather_cfg.py:41
void ZeePlots::writeEleClassesPlots ( )

Definition at line 440 of file ZeePlots.cc.

References file_, h1_occupancyVsEtaCrack_, h1_occupancyVsEtaGold_, h1_occupancyVsEtaShower_, and h1_occupancyVsEtaSilver_.

440  {
441 
442  file_->cd();
443 
444  h1_occupancyVsEtaGold_->Write();
445  h1_occupancyVsEtaSilver_->Write();
446  h1_occupancyVsEtaShower_->Write();
447  h1_occupancyVsEtaCrack_->Write();
448 
449 }
TH1F * h1_occupancyVsEtaShower_
Definition: ZeePlots.h:123
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_occupancyVsEtaGold_
Definition: ZeePlots.h:120
TH1F * h1_occupancyVsEtaCrack_
Definition: ZeePlots.h:122
TH1F * h1_occupancyVsEtaSilver_
Definition: ZeePlots.h:121
void ZeePlots::writeEleHistograms ( )

Definition at line 283 of file ZeePlots.cc.

References gather_cfg::cout, file_, h1_recoEleEnergy_, h1_recoEleEta_, h1_recoElePhi_, and h1_recoElePt_.

Referenced by ZeeCalibration::endOfJob().

283  {
284 
285  file_->cd();
286 
287  std::cout << "Start with ZeePlots::writeEleHistograms(), done file_->cd(); " << std::endl;
288 
289  h1_recoEleEnergy_->Write();
290  h1_recoElePt_->Write();
291  h1_recoEleEta_->Write();
292  h1_recoElePhi_->Write();
293 
294  std::cout << "Done with ZeePlots::writeEleHistograms() " << std::endl;
295 
296 }
TH1F * h1_recoEleEnergy_
Definition: ZeePlots.h:107
TH1F * h1_recoElePhi_
Definition: ZeePlots.h:110
TH1F * h1_recoEleEta_
Definition: ZeePlots.h:109
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_recoElePt_
Definition: ZeePlots.h:108
tuple cout
Definition: gather_cfg.py:41
void ZeePlots::writeHLTHistograms ( )
void ZeePlots::writeMCEleHistograms ( )

Definition at line 300 of file ZeePlots.cc.

References gather_cfg::cout, file_, h1_mcEle_Energy_, h1_mcEleEta_, h1_mcElePhi_, and h1_mcElePt_.

Referenced by ZeeCalibration::endOfJob().

300  {
301 
302  file_->cd();
303 
304  std::cout << "Start with ZeePlots::writeMCEleHistograms(), done file_->cd(); " << std::endl;
305 
306  h1_mcEle_Energy_->Write();
307  h1_mcElePt_->Write();
308  h1_mcEleEta_->Write();
309  h1_mcElePhi_->Write();
310 
311  std::cout << "Done with ZeePlots::writeMCEleHistograms() " << std::endl;
312 
313 }
TH1F * h1_mcElePhi_
Definition: ZeePlots.h:105
TH1F * h1_mcEle_Energy_
Definition: ZeePlots.h:102
TH1F * h1_mcElePt_
Definition: ZeePlots.h:103
TH1F * h1_mcEleEta_
Definition: ZeePlots.h:104
TFile * file_
Definition: ZeePlots.h:83
tuple cout
Definition: gather_cfg.py:41
void ZeePlots::writeMCZHistograms ( )

Definition at line 146 of file ZeePlots.cc.

References file_, h1_gen_ZPhi_, h1_gen_ZPt_, and h1_gen_ZRapidity_.

Referenced by ZeeCalibration::endOfJob().

146  {
147 
148  file_->cd();
149 
150  h1_gen_ZRapidity_->Write();
151  h1_gen_ZPt_->Write();
152  h1_gen_ZPhi_->Write();
153 
154 }
TH1F * h1_gen_ZPt_
Definition: ZeePlots.h:90
TH1F * h1_gen_ZRapidity_
Definition: ZeePlots.h:87
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_gen_ZPhi_
Definition: ZeePlots.h:89
void ZeePlots::writeZHistograms ( )

Definition at line 132 of file ZeePlots.cc.

References file_, h1_reco_ZEta_, h1_reco_ZPhi_, h1_reco_ZPt_, h1_reco_ZRapidity_, and h1_reco_ZTheta_.

Referenced by ZeeCalibration::endOfJob().

132  {
133 
134  file_->cd();
135 
136  h1_reco_ZEta_->Write();
137  h1_reco_ZTheta_->Write();
138  h1_reco_ZRapidity_->Write();
139  h1_reco_ZPhi_->Write();
140  h1_reco_ZPt_->Write();
141 
142 }
TH1F * h1_reco_ZPt_
Definition: ZeePlots.h:118
TH1F * h1_reco_ZTheta_
Definition: ZeePlots.h:115
TH1F * h1_reco_ZRapidity_
Definition: ZeePlots.h:116
TFile * file_
Definition: ZeePlots.h:83
TH1F * h1_reco_ZEta_
Definition: ZeePlots.h:114
TH1F * h1_reco_ZPhi_
Definition: ZeePlots.h:117

Member Data Documentation

std::vector<Double_t> ZeePlots::CutVars2_
private

Definition at line 155 of file ZeePlots.h.

Referenced by beginJob(), CheckCut2(), and CheckCut2Inv().

std::vector<Double_t> ZeePlots::CutVars_
private

Definition at line 154 of file ZeePlots.h.

Referenced by beginJob(), CheckCut(), and CheckCutInv().

Double_t ZeePlots::deta2_EB_
private

Definition at line 121 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::deta2_EE_
private

Definition at line 127 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::deta_EB_
private

Definition at line 101 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::deta_EB_inv
private

Definition at line 141 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::deta_EE_
private

Definition at line 107 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::deta_EE_inv
private

Definition at line 147 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::dphi2_EB_
private

Definition at line 122 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::dphi2_EE_
private

Definition at line 128 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::dphi_EB_
private

Definition at line 102 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::dphi_EB_inv
private

Definition at line 142 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::dphi_EE_
private

Definition at line 108 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::dphi_EE_inv
private

Definition at line 148 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::ecalIso2_EB_
private

Definition at line 113 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::ecalIso2_EE_
private

Definition at line 117 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::ecalIso_EB_
private

Definition at line 93 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::ecalIso_EB_inv
private

Definition at line 133 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::ecalIso_EE_
private

Definition at line 97 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::ecalIso_EE_inv
private

Definition at line 137 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

TFile* ZeePlots::file_
private
const char* ZeePlots::fileName_
private

Definition at line 84 of file ZeePlots.h.

Referenced by ZeePlots().

TH1F* ZeePlots::h1_FiredTriggers_
private

Definition at line 92 of file ZeePlots.h.

Referenced by bookHLTHistograms(), and fillHLTInfo().

TH1F* ZeePlots::h1_gen_ZEta_
private

Definition at line 88 of file ZeePlots.h.

Referenced by bookZMCHistograms(), and fillZMCInfo().

TH1F* ZeePlots::h1_gen_ZMass_
private

Definition at line 86 of file ZeePlots.h.

Referenced by bookZMCHistograms(), and fillZMCInfo().

TH1F* ZeePlots::h1_gen_ZPhi_
private

Definition at line 89 of file ZeePlots.h.

Referenced by bookZMCHistograms(), fillZMCInfo(), and writeMCZHistograms().

TH1F* ZeePlots::h1_gen_ZPt_
private

Definition at line 90 of file ZeePlots.h.

Referenced by bookZMCHistograms(), fillZMCInfo(), and writeMCZHistograms().

TH1F* ZeePlots::h1_gen_ZRapidity_
private

Definition at line 87 of file ZeePlots.h.

Referenced by bookZMCHistograms(), fillZMCInfo(), and writeMCZHistograms().

TH1F* ZeePlots::h1_HLT1Electron_FiredEvents_
private

Definition at line 93 of file ZeePlots.h.

Referenced by bookHLTHistograms(), and fillHLTInfo().

TH1F* ZeePlots::h1_HLT1Electron_HLT2Electron_FiredEvents_
private

Definition at line 96 of file ZeePlots.h.

Referenced by bookHLTHistograms(), and fillHLTInfo().

TH1F* ZeePlots::h1_HLT1Electron_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
private

Definition at line 99 of file ZeePlots.h.

Referenced by bookHLTHistograms(), and fillHLTInfo().

TH1F* ZeePlots::h1_HLT1Electron_HLT2ElectronRelaxed_FiredEvents_
private

Definition at line 97 of file ZeePlots.h.

Referenced by bookHLTHistograms(), and fillHLTInfo().

TH1F* ZeePlots::h1_HLT2Electron_FiredEvents_
private

Definition at line 94 of file ZeePlots.h.

Referenced by bookHLTHistograms(), and fillHLTInfo().

TH1F* ZeePlots::h1_HLT2Electron_HLT2ElectronRelaxed_FiredEvents_
private

Definition at line 98 of file ZeePlots.h.

Referenced by bookHLTHistograms(), and fillHLTInfo().

TH1F* ZeePlots::h1_HLT2ElectronRelaxed_FiredEvents_
private

Definition at line 95 of file ZeePlots.h.

Referenced by bookHLTHistograms(), and fillHLTInfo().

TH1F* ZeePlots::h1_HLTVisitedEvents_
private

Definition at line 100 of file ZeePlots.h.

Referenced by bookHLTHistograms(), and fillHLTInfo().

TH1F* ZeePlots::h1_mcEle_Energy_
private

Definition at line 102 of file ZeePlots.h.

Referenced by bookEleMCHistograms(), fillEleMCInfo(), and writeMCEleHistograms().

TH1F* ZeePlots::h1_mcEleEta_
private

Definition at line 104 of file ZeePlots.h.

Referenced by bookEleMCHistograms(), fillEleMCInfo(), and writeMCEleHistograms().

TH1F* ZeePlots::h1_mcElePhi_
private

Definition at line 105 of file ZeePlots.h.

Referenced by bookEleMCHistograms(), fillEleMCInfo(), and writeMCEleHistograms().

TH1F* ZeePlots::h1_mcElePt_
private

Definition at line 103 of file ZeePlots.h.

Referenced by bookEleMCHistograms(), fillEleMCInfo(), and writeMCEleHistograms().

TH1F* ZeePlots::h1_nEleReco_
private

Definition at line 111 of file ZeePlots.h.

Referenced by bookEleHistograms(), and fillEleInfo().

TH1F* ZeePlots::h1_occupancyVsEtaCrack_
private

Definition at line 122 of file ZeePlots.h.

Referenced by bookEleClassesPlots(), fillEleClassesPlots(), and writeEleClassesPlots().

TH1F* ZeePlots::h1_occupancyVsEtaGold_
private

Definition at line 120 of file ZeePlots.h.

Referenced by bookEleClassesPlots(), fillEleClassesPlots(), and writeEleClassesPlots().

TH1F* ZeePlots::h1_occupancyVsEtaShower_
private

Definition at line 123 of file ZeePlots.h.

Referenced by bookEleClassesPlots(), fillEleClassesPlots(), and writeEleClassesPlots().

TH1F* ZeePlots::h1_occupancyVsEtaSilver_
private

Definition at line 121 of file ZeePlots.h.

Referenced by bookEleClassesPlots(), fillEleClassesPlots(), and writeEleClassesPlots().

TH1F* ZeePlots::h1_reco_ZEta_
private

Definition at line 114 of file ZeePlots.h.

Referenced by bookZHistograms(), fillZInfo(), and writeZHistograms().

TH1F* ZeePlots::h1_reco_ZPhi_
private

Definition at line 117 of file ZeePlots.h.

Referenced by bookZHistograms(), fillZInfo(), and writeZHistograms().

TH1F* ZeePlots::h1_reco_ZPt_
private

Definition at line 118 of file ZeePlots.h.

Referenced by bookZHistograms(), fillZInfo(), and writeZHistograms().

TH1F* ZeePlots::h1_reco_ZRapidity_
private

Definition at line 116 of file ZeePlots.h.

Referenced by bookZHistograms(), fillZInfo(), and writeZHistograms().

TH1F* ZeePlots::h1_reco_ZTheta_
private

Definition at line 115 of file ZeePlots.h.

Referenced by bookZHistograms(), fillZInfo(), and writeZHistograms().

TH1F* ZeePlots::h1_recoEleEnergy_
private

Definition at line 107 of file ZeePlots.h.

Referenced by bookEleHistograms(), fillEleInfo(), and writeEleHistograms().

TH1F* ZeePlots::h1_recoEleEta_
private

Definition at line 109 of file ZeePlots.h.

Referenced by bookEleHistograms(), fillEleInfo(), and writeEleHistograms().

TH1F* ZeePlots::h1_recoElePhi_
private

Definition at line 110 of file ZeePlots.h.

Referenced by bookEleHistograms(), fillEleInfo(), and writeEleHistograms().

TH1F* ZeePlots::h1_recoElePt_
private

Definition at line 108 of file ZeePlots.h.

Referenced by bookEleHistograms(), fillEleInfo(), and writeEleHistograms().

TH1F* ZeePlots::h_e_ETA
private

Definition at line 70 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_e_PHI
private

Definition at line 71 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_e_PT
private

Definition at line 69 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EB_deta
private

Definition at line 78 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EB_dphi
private

Definition at line 77 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EB_ecaliso
private

Definition at line 74 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EB_hcaliso
private

Definition at line 75 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EB_HoE
private

Definition at line 79 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EB_sIetaIeta
private

Definition at line 76 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EB_trkiso
private

Definition at line 73 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EE_deta
private

Definition at line 86 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EE_dphi
private

Definition at line 85 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EE_ecaliso
private

Definition at line 82 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EE_hcaliso
private

Definition at line 83 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EE_HoE
private

Definition at line 87 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EE_sIetaIeta
private

Definition at line 84 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_EE_trkiso
private

Definition at line 81 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_mee
private

Definition at line 62 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_mee_EBEB
private

Definition at line 63 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_mee_EBEE
private

Definition at line 64 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_mee_EEEE
private

Definition at line 65 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_Zcand_PT
private

Definition at line 66 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

TH1F* ZeePlots::h_Zcand_Y
private

Definition at line 67 of file ZeePlots.h.

Referenced by analyze(), beginJob(), and endJob().

Double_t ZeePlots::hcalIso2_EB_
private

Definition at line 114 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::hcalIso2_EE_
private

Definition at line 118 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::hcalIso_EB_
private

Definition at line 94 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::hcalIso_EB_inv
private

Definition at line 134 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::hcalIso_EE_
private

Definition at line 98 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::hcalIso_EE_inv
private

Definition at line 138 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

TFile* ZeePlots::histofile
private

Definition at line 59 of file ZeePlots.h.

Double_t ZeePlots::hoe2_EB_
private

Definition at line 123 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::hoe2_EE_
private

Definition at line 129 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::hoe_EB_
private

Definition at line 103 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::hoe_EB_inv
private

Definition at line 143 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::hoe_EE_
private

Definition at line 109 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::hoe_EE_inv
private

Definition at line 149 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

std::vector<Double_t> ZeePlots::InvVars_
private

Definition at line 156 of file ZeePlots.h.

Referenced by beginJob(), CheckCut2Inv(), and CheckCutInv().

int ZeePlots::nBarrelVars_
private
std::string ZeePlots::outputFile_
private

Definition at line 57 of file ZeePlots.h.

Referenced by endJob(), and ZeePlots().

Double_t ZeePlots::sihih2_EB_
private

Definition at line 120 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::sihih2_EE_
private

Definition at line 126 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::sihih_EB_
private

Definition at line 100 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::sihih_EB_inv
private

Definition at line 140 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::sihih_EE_
private

Definition at line 106 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::sihih_EE_inv
private

Definition at line 146 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::trackIso2_EB_
private

Definition at line 112 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::trackIso2_EE_
private

Definition at line 116 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::trackIso_EB_
private

Definition at line 92 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::trackIso_EB_inv
private

Definition at line 132 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::trackIso_EE_
private

Definition at line 96 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::trackIso_EE_inv
private

Definition at line 136 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::useDifferentSecondLegSelection_
private

Definition at line 56 of file ZeePlots.h.

Referenced by ZeePlots().

Double_t ZeePlots::userIso2_EB_
private

Definition at line 124 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::userIso2_EE_
private

Definition at line 130 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::userIso_EB_
private

Definition at line 104 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::userIso_EB_inv
private

Definition at line 144 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

Double_t ZeePlots::userIso_EE_
private

Definition at line 110 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

bool ZeePlots::userIso_EE_inv
private

Definition at line 150 of file ZeePlots.h.

Referenced by beginJob(), and ZeePlots().

edm::InputTag ZeePlots::zeeCollectionTag_
private

Definition at line 58 of file ZeePlots.h.

Referenced by analyze(), and ZeePlots().