ATLAS Offline Software
ElectronFrwdPlots.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "ElectronFrwdPlots.h"
8 
9 namespace Egamma{
10 
11 ElectronFrwdPlots::ElectronFrwdPlots(PlotBase* pParent, const std::string& sDir, const std::string& sParticleType):PlotBase(pParent, sDir),
12  m_oKinFrwdAllRecoPlots(this, "All/KinPlots/", "Reco Electron"),
13  m_oKinFrwdIsoRecoPlots(this, "Iso/KinPlots/", "Reco Electron"),
14  m_oKinFrwdTightPlots(this, "FrwdTight/KinPlots/", "FrwdTight Electron"),
15  m_oClustMomAllRecoPlots(this, "All/ClusMomentPlots/", sParticleType ),
16  m_oClustMomIsoRecoPlots(this, "Iso/ClusMomentPlots/", sParticleType ),
17  nParticles(nullptr),
18  nParticles_weighted(nullptr),
19  m_sParticleType(sParticleType)
20 
21 {}
22 
24  nParticles = Book1D("n", "Number of"+ m_sParticleType + "s;#" + m_sParticleType + " electrons;Events", 15, 0., 15.);
25  nParticles_weighted = Book1D("n_weighted", "Number of"+ m_sParticleType + "s;#" + m_sParticleType + " electrons;Events", 15, 0., 15.);
26 }
27 
29 
30 
33 
34  if(!isPrompt) return;
35 
38 
39  bool val_tight=false;
40  if(electron.passSelection(val_tight, "Tight")) {
42  }
43 
44 
45 }
46 
47 }
Egamma::ElectronFrwdPlots::m_sParticleType
std::string m_sParticleType
Definition: ElectronFrwdPlots.h:36
ElectronValidationPlots.h
Egamma::ElectronFrwdPlots::m_oKinFrwdIsoRecoPlots
Egamma::KinematicsPlots m_oKinFrwdIsoRecoPlots
Definition: ElectronFrwdPlots.h:27
Egamma::ElectronFrwdPlots::nParticles
TH1 * nParticles
Definition: ElectronFrwdPlots.h:33
PlotBase
Definition: PlotBase.h:34
ElectronFrwdPlots.h
Egamma
Definition: ClusMomentumPlots.cxx:11
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
Egamma::ElectronFrwdPlots::nParticles_weighted
TH1 * nParticles_weighted
Definition: ElectronFrwdPlots.h:34
Egamma::ElectronFrwdPlots::m_oClustMomIsoRecoPlots
Egamma::ClusMomentumPlots m_oClustMomIsoRecoPlots
Definition: ElectronFrwdPlots.h:30
Egamma::ElectronFrwdPlots::ElectronFrwdPlots
ElectronFrwdPlots(PlotBase *pParent, const std::string &sDir, const std::string &sParticleType)
Definition: ElectronFrwdPlots.cxx:11
PlotBase::Book1D
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
MCTruthClassifierDefs.h
Egamma::ClusMomentumPlots::fill
void fill(const xAOD::Egamma &egamma, const xAOD::EventInfo &eventInfo)
Definition: ClusMomentumPlots.cxx:36
Egamma::ElectronFrwdPlots::m_oClustMomAllRecoPlots
Egamma::ClusMomentumPlots m_oClustMomAllRecoPlots
Definition: ElectronFrwdPlots.h:29
Egamma::ElectronFrwdPlots::initializePlots
virtual void initializePlots()
Definition: ElectronFrwdPlots.cxx:23
Egamma::KinematicsPlots::fill
void fill(const xAOD::IParticle &part, const xAOD::EventInfo &eventInfo)
Definition: Reconstruction/egamma/EgammaPhysValMonitoring/src/KinematicsPlots.cxx:28
Egamma::ElectronFrwdPlots::m_oKinFrwdAllRecoPlots
Egamma::KinematicsPlots m_oKinFrwdAllRecoPlots
Definition: ElectronFrwdPlots.h:26
Egamma::ElectronFrwdPlots::m_oKinFrwdTightPlots
Egamma::KinematicsPlots m_oKinFrwdTightPlots
Definition: ElectronFrwdPlots.h:28
Egamma::ElectronFrwdPlots::fill
void fill(const xAOD::Electron &electron, const xAOD::EventInfo &eventInfo, bool isPrompt)
Definition: ElectronFrwdPlots.cxx:28
xAOD::Electron_v1
Definition: Electron_v1.h:34
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
MCTruthPartClassifier::isPrompt
int isPrompt(const unsigned int classify, bool allow_prompt_tau_decays=true)
Definition: TruthClassifiers.h:180
xAOD::EgammaParameters::electron
@ electron
Definition: EgammaEnums.h:18