Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
IsolationPlots.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 <utility>
6 
7 #include "IsolationPlots.h"
8 
9 using CLHEP::GeV;
10 
11 namespace Egamma{
12 
13 
14  IsolationPlots::IsolationPlots(PlotBase* pParent, const std::string& sDir, std::string sParticleType):PlotBase(pParent, sDir),
15  m_sParticleType(std::move(sParticleType)),
16  ptcone20(nullptr),
17  ptcone30(nullptr),
18  ptvarcone20(nullptr),
19  ptvarcone30(nullptr),
20  topoetcone20(nullptr),
21  topoetcone30(nullptr),
22  topoetcone40(nullptr)
23  {}
24 
26 
27  ptcone20 = Book1D("ptcone20", "p_{T}^{cone20} of "+ m_sParticleType+";p_{T}^{cone20};Entries", 65, -5., 60.);
28  ptcone30 = Book1D("ptcone30", "p_{T}^{cone30} of "+ m_sParticleType+";p_{T}^{cone30};Entries", 65, -5., 60.);
29  ptvarcone20 = Book1D("ptvarcone20", "p_{T}^{varcone20} of "+ m_sParticleType+";p_{T}^{varcone20};Entries", 65, -5., 60.);
30  ptvarcone30 = Book1D("ptvarcone30", "p_{T}^{varcone30} of "+ m_sParticleType+";p_{T}^{varcone30};Entries", 65, -5., 60.);
31  topoetcone20 = Book1D("topoetcone20", "Topo E_{T}^{cone20} of "+ m_sParticleType+";TopoE_{T}^{cone20};Entries", 90, -10., 80.);
32  topoetcone30 = Book1D("topoetcone30", "Topo E_{T}^{cone30} of "+ m_sParticleType+";TopoE_{T}^{cone30};Entries", 90, -10., 80.);
33  topoetcone40 = Book1D("topoetcone40", "Topo E_{T}^{cone40} of "+ m_sParticleType+";TopoE_{T}^{cone40};Entries", 90, -10., 80.);
34 
35  }
36 
37 
38 
39  void IsolationPlots::fill(const xAOD::Egamma& egamma, const xAOD::EventInfo& eventInfo) {
47  }
48 
50 // void IsolationPlots::FillIsolationPlot(TH1* hist, xAOD::EgammaParameters::IsolationType isoType, const xAOD::Egamma& egamma){//rel19
51  float val = -10000000;
52  float weight = 1.;
53  weight = eventInfo.beamSpotWeight();
54 
55  if(egamma.isolationValue(val, isoType)){
56  hist->Fill(val/GeV,weight);
57  }
58 
59  }
60 
61 
62 }
Egamma::IsolationPlots::topoetcone30
TH1 * topoetcone30
Definition: IsolationPlots.h:28
xAOD::Iso::ptvarcone30
@ ptvarcone30
Definition: IsolationType.h:56
Egamma::IsolationPlots::initializePlots
virtual void initializePlots()
Definition: IsolationPlots.cxx:25
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
xAOD::Iso::topoetcone20
@ topoetcone20
Topo-cluster ET-sum.
Definition: IsolationType.h:48
Egamma::IsolationPlots::ptcone30
TH1 * ptcone30
Definition: IsolationPlots.h:24
xAOD::Iso::ptvarcone20
@ ptvarcone20
Mini-Isolation http://arxiv.org/abs/1007.2221.
Definition: IsolationType.h:55
PlotBase
Definition: PlotBase.h:34
Egamma
Definition: ClusMomentumPlots.cxx:11
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
plotmaker.hist
hist
Definition: plotmaker.py:148
xAOD::Iso::ptcone30
@ ptcone30
Definition: IsolationType.h:41
xAOD::Iso::ptcone20
@ ptcone20
Track isolation.
Definition: IsolationType.h:40
xAOD::Iso::topoetcone30
@ topoetcone30
Definition: IsolationType.h:49
xAOD::Egamma_v1
Definition: Egamma_v1.h:56
Egamma::IsolationPlots::ptvarcone20
TH1 * ptvarcone20
Definition: IsolationPlots.h:25
egamma
Definition: egamma.h:58
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
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
Egamma::IsolationPlots::fill
void fill(const xAOD::Egamma &egamma, const xAOD::EventInfo &eventInfo)
Definition: IsolationPlots.cxx:39
Egamma::IsolationPlots::topoetcone40
TH1 * topoetcone40
Definition: IsolationPlots.h:29
Egamma::IsolationPlots::m_sParticleType
std::string m_sParticleType
Definition: IsolationPlots.h:21
xAOD::Iso::IsolationType
IsolationType
Overall enumeration for isolation types in xAOD files.
Definition: IsolationType.h:26
Egamma::IsolationPlots::ptvarcone30
TH1 * ptvarcone30
Definition: IsolationPlots.h:26
Egamma::IsolationPlots::FillIsolationPlot
static void FillIsolationPlot(TH1 *hist, xAOD::Iso::IsolationType isoType, const xAOD::Egamma &egamma, const xAOD::EventInfo &eventInfo)
Definition: IsolationPlots.cxx:49
Egamma::IsolationPlots::ptcone20
TH1 * ptcone20
Definition: IsolationPlots.h:23
IsolationPlots.h
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
Egamma::IsolationPlots::topoetcone20
TH1 * topoetcone20
Definition: IsolationPlots.h:27
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
xAOD::Iso::topoetcone40
@ topoetcone40
Definition: IsolationType.h:50
Egamma::IsolationPlots::IsolationPlots
IsolationPlots(PlotBase *pParent, const std::string &sDir, std::string sParticleType)
Definition: IsolationPlots.cxx:14