ATLAS Offline Software
Loading...
Searching...
No Matches
FWDZeePlots.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7using CLHEP::GeV;
8
9namespace ZeeValidation{
10
11 FWDZeePlots::FWDZeePlots(PlotBase* pParent, const std::string& sDir, const std::string& sParticleType):
12 PlotBase(pParent, sDir),
13 m_sParticleType(sParticleType)
14 {
15 for (int i = 0; i < nLevels; i++) {
16 h_z_mass[i] = NULL;
17 h_z_pt[i] = NULL;
18 h_z_y[i] = NULL;
19 h_dr_electrons[i] = NULL;
20 h_pt_central_electron[i] = NULL;
21 h_eta_central_electron[i] = NULL;
22 h_phi_central_electron[i] = NULL;
23 h_pt_fwd_electron[i] = NULL;
24 h_eta_fwd_electron[i] = NULL;
25 h_phi_fwd_electron[i] = NULL;
26 }
27 }
28
29 const std::string FWDZeePlots::cLevelLabel[nLevels] = {
30 "Reco",
31 "OQ",
32 "FWDLoose",
33 "FWDTight"
34 };
35
37 for (int i = 0; i < nLevels; i++) {
38 h_z_mass[i] = Book1D("ZMass"+ cLevelLabel[i] , "Mass of Z;Mass (GeV);Events", 50, 66., 116.);
39 h_z_pt[i] = Book1D("ZPt"+ cLevelLabel[i] , "P_{T} of Z;P_{T};Events", 60, 0., 120.);
40 h_z_y[i] = Book1D("ZY"+ cLevelLabel[i] , "#eta of Z;#eta;Events", 50, -5., 5.);
41
42 h_dr_electrons[i] = Book1D("DRElectrons"+ cLevelLabel[i] , " #DeltaR(electrons);Events", 50, 0., 6.);
43
44 h_pt_central_electron[i] = Book1D("PtCentralElectron"+ cLevelLabel[i] , " P_{T}(electron);Events", 60, 20., 140.);
45 h_eta_central_electron[i] = Book1D("EtaCentralElectron"+ cLevelLabel[i] , " #eta(electron);Events", 50, -2.5, 2.5);
46 h_phi_central_electron[i] = Book1D("PhiCentralElectron"+ cLevelLabel[i] , " #varphi(electrons);Events", 60, -TMath::Pi(), TMath::Pi());
47
48 h_pt_fwd_electron[i] = Book1D("PtFwdElectron"+ cLevelLabel[i] , " P_{T}(electron);Events", 60, 20., 140.);
49 h_eta_fwd_electron[i] = Book1D("EtaFwdElectron"+ cLevelLabel[i] , " #eta(electron);Events", 50, -5.0, 5.0);
50 h_phi_fwd_electron[i] = Book1D("PhiFwd_Electron"+ cLevelLabel[i] , " #varphi(electron);Events", 60, -TMath::Pi(), TMath::Pi());
51 }
52 }
53
54 void FWDZeePlots::fillZPlots(TLorentzVector& z, int level){
55 h_z_mass[level] -> Fill(z.M()*(1./GeV));
56 h_z_pt[level] -> Fill(z.Pt()*(1./GeV));
57 h_z_y[level] -> Fill(z.Rapidity());
58 }
59
60 void FWDZeePlots::fillElPlots(TLorentzVector& elec1, TLorentzVector& elec2, int level){
61 h_dr_electrons[level] -> Fill( elec1.DeltaR(elec2) );
62
63 h_pt_central_electron[level] -> Fill( elec1.Perp()*(1./GeV) );
64 h_pt_fwd_electron[level] -> Fill( elec2.Perp()*(1./GeV) );
65
66 h_eta_central_electron[level] -> Fill( elec1.Rapidity() );
67 h_eta_fwd_electron[level] -> Fill( elec2.Rapidity() );
68
69 h_phi_central_electron[level] -> Fill( elec1.Phi() );
70 h_phi_fwd_electron[level] -> Fill( elec2.Phi() );
71 }
72
73}
#define z
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
Definition PlotBase.cxx:94
PlotBase(PlotBase *parent, const std::string &sDir)
Definition PlotBase.cxx:29
void fillElPlots(TLorentzVector &eleccen, TLorentzVector &elecfwd, int level)
static const std::string cLevelLabel[nLevels]
Definition FWDZeePlots.h:22
TH1 * h_eta_central_electron[nLevels]
Definition FWDZeePlots.h:34
TH1 * h_phi_central_electron[nLevels]
Definition FWDZeePlots.h:35
TH1 * h_eta_fwd_electron[nLevels]
Definition FWDZeePlots.h:37
TH1 * h_dr_electrons[nLevels]
Definition FWDZeePlots.h:31
TH1 * h_phi_fwd_electron[nLevels]
Definition FWDZeePlots.h:38
TH1 * h_pt_fwd_electron[nLevels]
Definition FWDZeePlots.h:36
void fillZPlots(TLorentzVector &, int level)
FWDZeePlots(PlotBase *pParent, const std::string &sDir, const std::string &sParticleType)
TH1 * h_pt_central_electron[nLevels]
Definition FWDZeePlots.h:33
static const int nLevels
Definition FWDZeePlots.h:21
virtual void initializePlots()