ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
EgammaPhysValMonitoring
src
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
"
6
#include "
ElectronValidationPlots.h
"
7
#include "
TruthUtils/TruthClasses.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
23
void
ElectronFrwdPlots::initializePlots
(){
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
28
void
ElectronFrwdPlots::fill
(
const
xAOD::Electron
& electron,
const
xAOD::EventInfo
& eventInfo,
bool
isPrompt) {
29
30
31
m_oKinFrwdAllRecoPlots
.fill(electron,eventInfo);
32
m_oClustMomAllRecoPlots
.fill(electron,eventInfo);
33
34
if
(!isPrompt)
return
;
35
36
m_oKinFrwdIsoRecoPlots
.fill(electron,eventInfo);
37
m_oClustMomIsoRecoPlots
.fill(electron,eventInfo);
38
39
bool
val_tight=
false
;
40
if
(electron.passSelection(val_tight,
"Tight"
)) {
41
m_oKinFrwdTightPlots
.fill(electron,eventInfo);
42
}
43
44
45
}
46
47
}
ElectronFrwdPlots.h
ElectronValidationPlots.h
TruthClasses.h
Egamma::ElectronFrwdPlots::nParticles
TH1 * nParticles
Definition
ElectronFrwdPlots.h:33
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
Egamma::ElectronFrwdPlots::m_oKinFrwdIsoRecoPlots
Egamma::KinematicsPlots m_oKinFrwdIsoRecoPlots
Definition
ElectronFrwdPlots.h:27
Egamma::ElectronFrwdPlots::m_oClustMomIsoRecoPlots
Egamma::ClusMomentumPlots m_oClustMomIsoRecoPlots
Definition
ElectronFrwdPlots.h:30
Egamma::ElectronFrwdPlots::m_sParticleType
std::string m_sParticleType
Definition
ElectronFrwdPlots.h:36
Egamma::ElectronFrwdPlots::m_oKinFrwdAllRecoPlots
Egamma::KinematicsPlots m_oKinFrwdAllRecoPlots
Definition
ElectronFrwdPlots.h:26
Egamma::ElectronFrwdPlots::nParticles_weighted
TH1 * nParticles_weighted
Definition
ElectronFrwdPlots.h:34
Egamma::ElectronFrwdPlots::ElectronFrwdPlots
ElectronFrwdPlots(PlotBase *pParent, const std::string &sDir, const std::string &sParticleType)
Definition
ElectronFrwdPlots.cxx:11
Egamma::ElectronFrwdPlots::initializePlots
virtual void initializePlots()
Definition
ElectronFrwdPlots.cxx:23
Egamma::ElectronFrwdPlots::m_oClustMomAllRecoPlots
Egamma::ClusMomentumPlots m_oClustMomAllRecoPlots
Definition
ElectronFrwdPlots.h:29
PlotBase::Book1D
TH1D * Book1D(std::string_view name, std::string_view labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
Definition
PlotBase.cxx:94
PlotBase::PlotBase
PlotBase(PlotBase *parent, std::string_view sDir)
Definition
PlotBase.cxx:29
Egamma
Definition
ClusMomentumPlots.cxx:11
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition
IEventInfoCnvTool.h:16
xAOD::Electron
Electron_v1 Electron
Definition of the current "egamma version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/Electron.h:17
Generated on
for ATLAS Offline Software by
1.17.0