ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
egammaUtils
egammaUtils
ShowerDepthUtil.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef EGAMMAUTILS_SHOWERDEPTHTOOL_H
6
#define EGAMMAUTILS_SHOWERDEPTHTOOL_H
7
8
// System include(s).
9
#include <memory>
10
#include <optional>
11
#include <utility>
12
13
#include <TH1.h>
14
15
namespace
CP
{
16
17
class
ShowerDepthUtil
{
18
public
:
19
ShowerDepthUtil
();
20
22
float
getCorrectedShowerDepthEM1
(
float
etas1,
float
phi
,
23
bool
isData =
true
)
const
;
24
26
float
getCorrectedShowerDepthEM2
(
float
etas2,
float
phi
,
27
bool
isData =
true
)
const
;
28
30
std::pair<float, float>
getCorrectedRZ
(
float
eta
,
float
phi
,
31
bool
isData =
true
,
32
int
sampling = 1)
const
;
33
35
float
getRZCorrection
(
float
eta
,
float
phi
,
bool
isData =
true
)
const
;
36
38
float
getCorrectedEtaDirection
(
float
zvertex,
float
eta
,
float
phi
,
39
bool
isData =
true
,
int
sampling = 1)
const
;
40
42
std::optional<float>
getCaloPointingEta
(
float
etas1,
float
etas2,
float
phi
,
43
bool
isData =
true
)
const
;
44
46
static
float
getShowerDepthEM1
(
float
etas1);
47
49
static
float
getShowerDepthEM2
(
float
etas2);
50
52
static
std::pair<float, float>
getRZ
(
float
eta
,
int
sampling);
53
54
static
float
getEtaDirection
(
float
zvertex,
float
R,
float
z
);
55
56
private
:
58
static
std::unique_ptr<TH1>
getHistoFromFile
(
const
char
* fileName,
59
const
char
* histoName);
60
61
std::unique_ptr<TH1>
m_hData
;
62
std::unique_ptr<TH1>
m_hMC
;
63
};
64
65
}
// namespace CP
66
67
#endif
// ELECTRONISOLATIONSELECTION_SHOWERDEPTHTOOL_H
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
z
#define z
CP::ShowerDepthUtil::getCorrectedShowerDepthEM1
float getCorrectedShowerDepthEM1(float etas1, float phi, bool isData=true) const
Shower depth (in mm) on EM1 vs.
Definition
ShowerDepthUtil.cxx:49
CP::ShowerDepthUtil::m_hMC
std::unique_ptr< TH1 > m_hMC
Definition
ShowerDepthUtil.h:62
CP::ShowerDepthUtil::m_hData
std::unique_ptr< TH1 > m_hData
Definition
ShowerDepthUtil.h:61
CP::ShowerDepthUtil::getCaloPointingEta
std::optional< float > getCaloPointingEta(float etas1, float etas2, float phi, bool isData=true) const
Eta direction from samplings 1 and 2 (pointing).
Definition
ShowerDepthUtil.cxx:124
CP::ShowerDepthUtil::getShowerDepthEM2
static float getShowerDepthEM2(float etas2)
Shower depth (in mm) vs.
Definition
ShowerDepthUtil.cxx:87
CP::ShowerDepthUtil::getHistoFromFile
static std::unique_ptr< TH1 > getHistoFromFile(const char *fileName, const char *histoName)
Return TH1* from file given fileName, histoName.
Definition
ShowerDepthUtil.cxx:193
CP::ShowerDepthUtil::getCorrectedRZ
std::pair< float, float > getCorrectedRZ(float eta, float phi, bool isData=true, int sampling=1) const
Return the shower depth in R,Z considering misalignments.
Definition
ShowerDepthUtil.cxx:137
CP::ShowerDepthUtil::ShowerDepthUtil
ShowerDepthUtil()
Definition
ShowerDepthUtil.cxx:38
CP::ShowerDepthUtil::getCorrectedShowerDepthEM2
float getCorrectedShowerDepthEM2(float etas2, float phi, bool isData=true) const
Shower depth (in mm) on EM2 vs.
Definition
ShowerDepthUtil.cxx:55
CP::ShowerDepthUtil::getShowerDepthEM1
static float getShowerDepthEM1(float etas1)
Shower depth (in mm) vs.
Definition
ShowerDepthUtil.cxx:65
CP::ShowerDepthUtil::getRZCorrection
float getRZCorrection(float eta, float phi, bool isData=true) const
Return the calorimeter displacement in R(Z) for barrel (endcap).
Definition
ShowerDepthUtil.cxx:153
CP::ShowerDepthUtil::getEtaDirection
static float getEtaDirection(float zvertex, float R, float z)
Definition
ShowerDepthUtil.cxx:189
CP::ShowerDepthUtil::getCorrectedEtaDirection
float getCorrectedEtaDirection(float zvertex, float eta, float phi, bool isData=true, int sampling=1) const
Eta direction from zvertex to the shower in the given sampling.
Definition
ShowerDepthUtil.cxx:104
CP::ShowerDepthUtil::getRZ
static std::pair< float, float > getRZ(float eta, int sampling)
Shower depth in R,Z for the given sampling.
Definition
ShowerDepthUtil.cxx:111
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::phi
setEt phi
Definition
TrigEMCluster_v1.cxx:29
Generated on
for ATLAS Offline Software by
1.17.0