ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
EgammaPhysValMonitoring
src
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
25
void
IsolationPlots::initializePlots
(){
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) {
40
FillIsolationPlot
(
ptcone20
,
xAOD::Iso::ptcone20
,
egamma
, eventInfo);
41
FillIsolationPlot
(
ptcone30
,
xAOD::Iso::ptcone30
,
egamma
, eventInfo);
42
FillIsolationPlot
(
ptvarcone20
,
xAOD::Iso::ptvarcone20
,
egamma
, eventInfo);
43
FillIsolationPlot
(
ptvarcone30
,
xAOD::Iso::ptvarcone30
,
egamma
, eventInfo);
44
FillIsolationPlot
(
topoetcone20
,
xAOD::Iso::topoetcone20
,
egamma
, eventInfo);
45
FillIsolationPlot
(
topoetcone30
,
xAOD::Iso::topoetcone30
,
egamma
, eventInfo);
46
FillIsolationPlot
(
topoetcone40
,
xAOD::Iso::topoetcone40
,
egamma
, eventInfo);
47
}
48
49
void
IsolationPlots::FillIsolationPlot
(TH1* hist,
xAOD::Iso::IsolationType
isoType,
const
xAOD::Egamma
&
egamma
,
const
xAOD::EventInfo
& eventInfo){
//rel20
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
}
IsolationPlots.h
GeV
#define GeV
Definition
PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
Egamma::IsolationPlots::ptvarcone20
TH1 * ptvarcone20
Definition
IsolationPlots.h:25
Egamma::IsolationPlots::topoetcone30
TH1 * topoetcone30
Definition
IsolationPlots.h:28
Egamma::IsolationPlots::m_sParticleType
std::string m_sParticleType
Definition
IsolationPlots.h:21
Egamma::IsolationPlots::fill
void fill(const xAOD::Egamma &egamma, const xAOD::EventInfo &eventInfo)
Definition
IsolationPlots.cxx:39
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::initializePlots
virtual void initializePlots()
Definition
IsolationPlots.cxx:25
Egamma::IsolationPlots::ptcone20
TH1 * ptcone20
Definition
IsolationPlots.h:23
Egamma::IsolationPlots::ptvarcone30
TH1 * ptvarcone30
Definition
IsolationPlots.h:26
Egamma::IsolationPlots::ptcone30
TH1 * ptcone30
Definition
IsolationPlots.h:24
Egamma::IsolationPlots::IsolationPlots
IsolationPlots(PlotBase *pParent, const std::string &sDir, std::string sParticleType)
Definition
IsolationPlots.cxx:14
Egamma::IsolationPlots::topoetcone40
TH1 * topoetcone40
Definition
IsolationPlots.h:29
Egamma::IsolationPlots::topoetcone20
TH1 * topoetcone20
Definition
IsolationPlots.h:27
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
elec/gamma data class.
Definition
egamma.h:59
xAOD::EventInfo_v1::beamSpotWeight
float beamSpotWeight() const
Weight for beam spot size reweighting.
Definition
EventInfo_v1.cxx:970
Egamma
Definition
ClusMomentumPlots.cxx:11
std
STL namespace.
xAOD::Iso::IsolationType
IsolationType
Overall enumeration for isolation types in xAOD files.
Definition
IsolationType.h:26
xAOD::Iso::topoetcone20
@ topoetcone20
Topo-cluster ET-sum.
Definition
IsolationType.h:48
xAOD::Iso::ptvarcone30
@ ptvarcone30
Definition
IsolationType.h:56
xAOD::Iso::topoetcone40
@ topoetcone40
Definition
IsolationType.h:50
xAOD::Iso::ptcone20
@ ptcone20
Track isolation.
Definition
IsolationType.h:40
xAOD::Iso::ptcone30
@ ptcone30
Definition
IsolationType.h:41
xAOD::Iso::ptvarcone20
@ ptvarcone20
Mini-Isolation http://arxiv.org/abs/1007.2221.
Definition
IsolationType.h:55
xAOD::Iso::topoetcone30
@ topoetcone30
Definition
IsolationType.h:49
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition
IEventInfoCnvTool.h:16
xAOD::Egamma
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition
Egamma.h:17
Generated on
for ATLAS Offline Software by
1.17.0