ATLAS Offline Software
Loading...
Searching...
No Matches
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
8namespace Egamma{
9
10
11PhotonAmbPlots::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),
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);
28 m_oShowerShapesAllPlots.fill(photon,eventInfo);
29
30 }
31}
Egamma::KinematicsPlots m_oKinAllPlots
PhotonAmbPlots(PlotBase *pParent, const std::string &sDir, const std::string &sParticleType)
void fill(const xAOD::Photon &photon, const xAOD::EventInfo &eventInfo, bool isPrompt)
virtual void initializePlots()
Egamma::ShowerShapesPlots m_oShowerShapesAllPlots
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
EventInfo_v1 EventInfo
Definition of the latest event info version.
Photon_v1 Photon
Definition of the current "egamma version".