ATLAS Offline Software
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"
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 
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);
29 
30  }
31 }
PlotBase::Book1D
TH1F * 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:88
Egamma::ShowerShapesPlots::fill
void fill(const xAOD::Egamma &egamma, const xAOD::EventInfo &eventInfo)
Definition: ShowerShapesPlots.cxx:154
PlotBase
Definition: PlotBase.h:33
Egamma
Definition: ClusMomentumPlots.cxx:11
Egamma::PhotonAmbPlots::PhotonAmbPlots
PhotonAmbPlots(PlotBase *pParent, const std::string &sDir, const std::string &sParticleType)
Definition: PhotonAmbPlots.cxx:11
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
Egamma::PhotonAmbPlots::m_oShowerShapesAllPlots
Egamma::ShowerShapesPlots m_oShowerShapesAllPlots
Definition: PhotonAmbPlots.h:24
Egamma::PhotonAmbPlots::m_nParticles
TH1 * m_nParticles
Definition: PhotonAmbPlots.h:28
PhotonAmbPlots.h
Egamma::PhotonAmbPlots::m_oKinAllPlots
Egamma::KinematicsPlots m_oKinAllPlots
Definition: PhotonAmbPlots.h:23
MCTruthClassifierDefs.h
Egamma::PhotonAmbPlots::m_nParticles_weighted
TH1 * m_nParticles_weighted
Definition: PhotonAmbPlots.h:29
Egamma::KinematicsPlots::fill
void fill(const xAOD::IParticle &part, const xAOD::EventInfo &eventInfo)
Definition: Reconstruction/egamma/EgammaPhysValMonitoring/src/KinematicsPlots.cxx:28
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
xAOD::photon
@ photon
Definition: TrackingPrimitives.h:199
xAOD::Photon_v1
Definition: Photon_v1.h:37
Egamma::PhotonAmbPlots::m_sParticleType
std::string m_sParticleType
Definition: PhotonAmbPlots.h:26
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