Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Reconstruction
PFlow
PFlowValidation
PFOHistUtils
src
ClusterPlots.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
PFOHistUtils/ClusterPlots.h
"
6
7
namespace
PFO
{
8
9
ClusterPlots::ClusterPlots
(
PlotBase
* pParent,
const
std::string &
sDir
,
SG::ReadHandleKey<xAOD::CaloClusterContainer>
& sClusterContainerName) :
PlotBase
(pParent,
sDir
), m_sClusterContainerName(sClusterContainerName){}
10
11
void
ClusterPlots::initializePlots
(){
12
13
m_Cluster_pt
=
Book1D
(
"Cluster_Pt"
,
m_sClusterContainerName
.
key
() +
"_Pt (Entries/1 GeV)"
,300,-100.0,200.0);
14
m_Cluster_eta
=
Book1D
(
"Cluster_Eta"
,
m_sClusterContainerName
.
key
() +
"_Eta (Entries/0.1)"
,100,-5.0,5.0);
15
m_Cluster_phi
=
Book1D
(
"Cluster_Phi"
,
m_sClusterContainerName
.
key
() +
"_Phi (Entries/0.1)"
,64,-3.2,3.2);
16
m_Cluster_m
=
Book1D
(
"Cluster_m"
,
m_sClusterContainerName
.
key
() +
"_m (Entries/100 MeV)"
,100,0.0,10.0);
17
18
m_Cluster_ptEM
=
Book1D
(
"Cluster_PtEM"
,
m_sClusterContainerName
.
key
() +
"_PtEM (Entries/1 GeV)"
,300,-100.0,200.0);
19
m_Cluster_etaEM
=
Book1D
(
"Cluster_EtaEM"
,
m_sClusterContainerName
.
key
() +
"_EtaEM (Entries/0.1)"
,100,-5.0,5.0);
20
m_Cluster_phiEM
=
Book1D
(
"Cluster_PhiEM"
,
m_sClusterContainerName
.
key
() +
"_PhiEM (Entries/0.1)"
,64,-3.2,3.2);
21
m_Cluster_mEM
=
Book1D
(
"Cluster_mEM"
,
m_sClusterContainerName
.
key
() +
"_mEM (Entries/100 MeV)"
,100,0.0,10.0);
22
23
m_Cluster_time
=
Book1D
(
"Cluster_time"
,
m_sClusterContainerName
.
key
() +
"_time (Entries)"
,30,-200.0,100.0);
24
m_Cluster_clusterSize
=
Book1D
(
"Cluster_clusterSize"
,
m_sClusterContainerName
.
key
() +
"_clusterSize (Entries)"
,20,0.0,20.0);
25
26
m_Cluster_eta_lowpt
=
Book1D
(
"Cluster_Eta_lowPt"
,
m_sClusterContainerName
.
key
() +
"_Eta_lowPt (Entries/0.1)"
,100,-5.0,5.0);
27
m_Cluster_pt_interval
=
Book1D
(
"Cluster_Pt_interval"
,
m_sClusterContainerName
.
key
() +
"_Pt_interval (Entries/1 GeV)"
, 980, 20.0, 1000.0);
28
m_Cluster_pt_zoom
=
Book1D
(
"Cluster_Pt_zoom"
,
m_sClusterContainerName
.
key
() +
"_Pt_zomm (Entries/0.1 GeV)"
,3000,-100.0,200.0);
29
30
m_Cluster_eSample_EM
=
Book1D
(
"Cluster_eSample_EM"
,
m_sClusterContainerName
.
key
() +
"_eSample_EM (Entries/1 GeV) "
,300,-100.0,200.0);
31
m_Cluster_eSample_HAD
=
Book1D
(
"Cluster_eSample_HAD"
,
m_sClusterContainerName
.
key
() +
"_eSample_HAD (Entries/1 GeV) "
,300,-100.0,200.0);
32
33
}
34
35
void
ClusterPlots::fill
(
const
xAOD::CaloCluster
& Cluster,
const
xAOD::EventInfo
& eventInfo){
36
m_Cluster_pt
->Fill(Cluster.
pt
()/1000.0,eventInfo.beamSpotWeight());
37
m_Cluster_eta
->Fill(Cluster.
eta
(),eventInfo.beamSpotWeight());
38
m_Cluster_phi
->Fill(Cluster.
phi
(),eventInfo.beamSpotWeight());
39
m_Cluster_m
->Fill(Cluster.
m
()/1000.0,eventInfo.beamSpotWeight());
40
41
m_Cluster_ptEM
->Fill((Cluster.
rawE
()/cosh(Cluster.
rawEta
()))/1000.0,eventInfo.beamSpotWeight());
42
m_Cluster_etaEM
->Fill(Cluster.
rawEta
(),eventInfo.beamSpotWeight());
43
m_Cluster_phiEM
->Fill(Cluster.
rawPhi
(),eventInfo.beamSpotWeight());
44
m_Cluster_mEM
->Fill(Cluster.
rawM
()/1000.0,eventInfo.beamSpotWeight());
45
46
m_Cluster_time
->Fill(Cluster.
time
(),eventInfo.beamSpotWeight());
47
m_Cluster_clusterSize
->Fill(Cluster.
clusterSize
(),eventInfo.beamSpotWeight());
48
49
if
(Cluster.
pt
()/1000.0 > -20 && Cluster.
pt
()/1000.0 < 20){
50
m_Cluster_eta_lowpt
->Fill(Cluster.
eta
(),eventInfo.beamSpotWeight());
51
}
52
m_Cluster_pt_interval
->Fill(Cluster.
pt
()/1000.0,eventInfo.beamSpotWeight());
53
m_Cluster_pt_zoom
->Fill(Cluster.
pt
()/1000.0,eventInfo.beamSpotWeight());
54
55
float
eSample_EM;
56
eSample_EM = Cluster.
eSample
(
CaloSampling::PreSamplerB
) + Cluster.
eSample
(
CaloSampling::EMB1
) + Cluster.
eSample
(
CaloSampling::EMB2
) + Cluster.
eSample
(
CaloSampling::EMB3
) + Cluster.
eSample
(
CaloSampling::PreSamplerE
) + Cluster.
eSample
(
CaloSampling::EME1
) + Cluster.
eSample
(
CaloSampling::EME2
) + Cluster.
eSample
(
CaloSampling::EME3
) + Cluster.
eSample
(
CaloSampling::FCAL0
);
57
m_Cluster_eSample_EM
->Fill((
double
)eSample_EM/1000.0,eventInfo.beamSpotWeight());
58
59
60
61
float
eSample_HAD;
62
eSample_HAD = Cluster.
eSample
(
CaloSampling::TileBar0
) + Cluster.
eSample
(
CaloSampling::TileBar1
) + Cluster.
eSample
(
CaloSampling::TileBar2
) + Cluster.
eSample
(
CaloSampling::HEC0
) + Cluster.
eSample
(
CaloSampling::HEC1
) + Cluster.
eSample
(
CaloSampling::HEC2
) + Cluster.
eSample
(
CaloSampling::HEC3
) + Cluster.
eSample
(
CaloSampling::FCAL1
) + Cluster.
eSample
(
CaloSampling::FCAL2
);
63
m_Cluster_eSample_HAD
->Fill((
double
)eSample_HAD/1000.0,eventInfo.beamSpotWeight());
64
65
}
66
67
}
xAOD::CaloCluster_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
Definition:
CaloCluster_v1.cxx:256
xAOD::CaloCluster_v1::rawE
flt_t rawE() const
xAOD::CaloCluster_v1::time
flt_t time() const
Access cluster time.
xAOD::CaloCluster_v1::rawEta
flt_t rawEta() const
Get in signal state UNCALIBRATED.
constants.EMB1
int EMB1
Definition:
Calorimeter/CaloClusterCorrection/python/constants.py:53
PlotBase
Definition:
PlotBase.h:34
PFO::ClusterPlots::m_Cluster_m
TH1 * m_Cluster_m
Definition:
ClusterPlots.h:30
python.copyTCTOutput.sDir
sDir
Definition:
copyTCTOutput.py:60
CaloCell_ID_FCS::TileBar1
@ TileBar1
Definition:
FastCaloSim_CaloCell_ID.h:32
PFO::ClusterPlots::fill
void fill(const xAOD::CaloCluster &Cluster, const xAOD::EventInfo &eventInfo)
Definition:
ClusterPlots.cxx:35
ClusterPlots.h
xAOD::CaloCluster_v1::m
virtual double m() const
The invariant mass of the particle.
Definition:
CaloCluster_v1.cxx:261
CaloCell_ID_FCS::FCAL1
@ FCAL1
Definition:
FastCaloSim_CaloCell_ID.h:41
PFO::ClusterPlots::m_Cluster_ptEM
TH1 * m_Cluster_ptEM
Definition:
ClusterPlots.h:32
PFO::ClusterPlots::m_Cluster_phi
TH1 * m_Cluster_phi
Definition:
ClusterPlots.h:29
CaloCell_ID_FCS::HEC2
@ HEC2
Definition:
FastCaloSim_CaloCell_ID.h:29
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition:
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::ReadHandleKey< xAOD::CaloClusterContainer >
PFO::ClusterPlots::m_Cluster_pt_zoom
TH1 * m_Cluster_pt_zoom
Definition:
ClusterPlots.h:42
PFO::ClusterPlots::m_Cluster_eta
TH1 * m_Cluster_eta
Definition:
ClusterPlots.h:28
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
xAOD::CaloCluster_v1::clusterSize
ClusterSize clusterSize() const
Get cluster size.
Definition:
CaloCluster_v1.cxx:364
PFO::ClusterPlots::m_Cluster_pt_interval
TH1 * m_Cluster_pt_interval
Definition:
ClusterPlots.h:41
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition:
CaloCluster_v1.h:59
PFO::ClusterPlots::m_Cluster_clusterSize
TH1 * m_Cluster_clusterSize
Definition:
ClusterPlots.h:38
PFO::ClusterPlots::m_Cluster_mEM
TH1 * m_Cluster_mEM
Definition:
ClusterPlots.h:35
CaloCell_ID_FCS::HEC1
@ HEC1
Definition:
FastCaloSim_CaloCell_ID.h:28
constants.EMB2
int EMB2
Definition:
Calorimeter/CaloClusterCorrection/python/constants.py:54
PFO::ClusterPlots::m_Cluster_eta_lowpt
TH1 * m_Cluster_eta_lowpt
Definition:
ClusterPlots.h:40
xAOD::CaloCluster_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition:
CaloCluster_v1.cxx:251
CaloCell_ID_FCS::TileBar0
@ TileBar0
Definition:
FastCaloSim_CaloCell_ID.h:31
constants.EME1
int EME1
Definition:
Calorimeter/CaloClusterCorrection/python/constants.py:55
PFO::ClusterPlots::initializePlots
void initializePlots()
Definition:
ClusterPlots.cxx:11
PFO
Definition:
ClusterMomentPlots.h:15
PFO::ClusterPlots::m_Cluster_eSample_EM
TH1 * m_Cluster_eSample_EM
Definition:
ClusterPlots.h:44
xAOD::CaloCluster_v1::rawM
flt_t rawM() const
Get mass in signal state UNCALIBRATED.
xAOD::CaloCluster_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle (negative for negative-energy clusters)
Definition:
CaloCluster_v1.cxx:247
PFO::ClusterPlots::m_sClusterContainerName
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_sClusterContainerName
Definition:
ClusterPlots.h:48
CaloCell_ID_FCS::EME3
@ EME3
Definition:
FastCaloSim_CaloCell_ID.h:26
PFO::ClusterPlots::m_Cluster_eSample_HAD
TH1 * m_Cluster_eSample_HAD
Definition:
ClusterPlots.h:45
xAOD::EventInfo_v1
Class describing the basic event information.
Definition:
EventInfo_v1.h:43
CaloCell_ID_FCS::HEC0
@ HEC0
Definition:
FastCaloSim_CaloCell_ID.h:27
xAOD::CaloCluster_v1::eSample
float eSample(const CaloSample sampling) const
Definition:
CaloCluster_v1.cxx:521
xAOD::CaloCluster_v1::rawPhi
flt_t rawPhi() const
Get in signal state UNCALIBRATED.
PFO::ClusterPlots::m_Cluster_phiEM
TH1 * m_Cluster_phiEM
Definition:
ClusterPlots.h:34
PFO::ClusterPlots::m_Cluster_pt
TH1 * m_Cluster_pt
Definition:
ClusterPlots.h:27
CaloCell_ID_FCS::PreSamplerE
@ PreSamplerE
Definition:
FastCaloSim_CaloCell_ID.h:23
CaloCell_ID_FCS::PreSamplerB
@ PreSamplerB
Definition:
FastCaloSim_CaloCell_ID.h:19
CaloCell_ID_FCS::FCAL2
@ FCAL2
Definition:
FastCaloSim_CaloCell_ID.h:42
PFO::ClusterPlots::m_Cluster_time
TH1 * m_Cluster_time
Definition:
ClusterPlots.h:37
CaloCell_ID_FCS::HEC3
@ HEC3
Definition:
FastCaloSim_CaloCell_ID.h:30
CaloCell_ID_FCS::FCAL0
@ FCAL0
Definition:
FastCaloSim_CaloCell_ID.h:40
CaloCell_ID_FCS::EMB3
@ EMB3
Definition:
FastCaloSim_CaloCell_ID.h:22
PFO::ClusterPlots::m_Cluster_etaEM
TH1 * m_Cluster_etaEM
Definition:
ClusterPlots.h:33
CaloCell_ID_FCS::TileBar2
@ TileBar2
Definition:
FastCaloSim_CaloCell_ID.h:33
PFO::ClusterPlots::ClusterPlots
ClusterPlots(PlotBase *pParent, const std::string &sDir, SG::ReadHandleKey< xAOD::CaloClusterContainer > &sClusterContainerName)
Definition:
ClusterPlots.cxx:9
constants.EME2
int EME2
Definition:
Calorimeter/CaloClusterCorrection/python/constants.py:56
Generated on Tue Mar 25 2025 21:08:27 for ATLAS Offline Software by
1.8.18