ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
EgammaPhysValMonitoring
src
PhotonAmbPlots.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 "
PhotonAmbPlots.h
"
6
#include "
TruthUtils/TruthClasses.h
"
7
8
namespace
Egamma
{
9
10
11
PhotonAmbPlots::PhotonAmbPlots
(
PlotBase
* pParent,
const
std::string& sDir,
const
std::string& sParticleType):
PlotBase
(pParent, sDir),
12
m_oKinAllPlots
(this,
"All/KinPlots/"
,
"Reco "
+ sParticleType +
" Photon"
),
13
m_oShowerShapesAllPlots
(this,
"All/ShowerShapesPlots/"
, sParticleType +
" Photon"
),
14
m_sParticleType
(sParticleType),
15
m_nParticles
(nullptr),
16
m_nParticles_weighted
(nullptr)
17
{}
18
19
void
PhotonAmbPlots::initializePlots
(){
20
m_nParticles
=
Book1D
(
"n"
,
"Number of "
+
m_sParticleType
+
"s;#"
+
m_sParticleType
+
"s;Events"
, 15, 0., 15.);
21
m_nParticles_weighted
=
Book1D
(
"n_weighted"
,
"Number of "
+
m_sParticleType
+
"s;#"
+
m_sParticleType
+
"s;Events"
, 15, 0., 15.);
22
}
23
24
void
PhotonAmbPlots::fill
(
const
xAOD::Photon
& photon,
const
xAOD::EventInfo
& eventInfo,
bool
/*isPrompt*/
) {
25
//if(!isPrompt) ;//return;
26
27
m_oKinAllPlots
.fill(photon,eventInfo);
28
m_oShowerShapesAllPlots
.fill(photon,eventInfo);
29
30
}
31
}
PhotonAmbPlots.h
TruthClasses.h
Egamma::PhotonAmbPlots::m_oKinAllPlots
Egamma::KinematicsPlots m_oKinAllPlots
Definition
PhotonAmbPlots.h:23
Egamma::PhotonAmbPlots::m_nParticles
TH1 * m_nParticles
Definition
PhotonAmbPlots.h:28
Egamma::PhotonAmbPlots::PhotonAmbPlots
PhotonAmbPlots(PlotBase *pParent, const std::string &sDir, const std::string &sParticleType)
Definition
PhotonAmbPlots.cxx:11
Egamma::PhotonAmbPlots::fill
void fill(const xAOD::Photon &photon, const xAOD::EventInfo &eventInfo, bool isPrompt)
Definition
PhotonAmbPlots.cxx:24
Egamma::PhotonAmbPlots::initializePlots
virtual void initializePlots()
Definition
PhotonAmbPlots.cxx:19
Egamma::PhotonAmbPlots::m_sParticleType
std::string m_sParticleType
Definition
PhotonAmbPlots.h:26
Egamma::PhotonAmbPlots::m_oShowerShapesAllPlots
Egamma::ShowerShapesPlots m_oShowerShapesAllPlots
Definition
PhotonAmbPlots.h:24
Egamma::PhotonAmbPlots::m_nParticles_weighted
TH1 * m_nParticles_weighted
Definition
PhotonAmbPlots.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::Photon
Photon_v1 Photon
Definition of the current "egamma version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/Photon.h:17
Generated on
for ATLAS Offline Software by
1.17.0