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
w
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
Jet
JetCalibTools
src
JetCalibTool.cxx
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// JetCalibTool.cxx
8
// Implementation file for class JetCalibTool
10
11
#include "
JetCalibTools/JetCalibTool.h
"
12
#include "
PathResolver/PathResolver.h
"
13
#include "
AsgDataHandles/ReadDecorHandle.h
"
14
15
JetCalibTool::JetCalibTool
(
const
std::string&
name
)
16
:
asg
::AsgTool(
name
){ }
17
18
19
21
// Public methods:
23
24
StatusCode
JetCalibTool::initialize
() {
25
ATH_MSG_DEBUG
(
"Initializing "
<<
name
() );
26
27
ATH_CHECK
(
m_calibSteps
.retrieve());
28
if
(!
m_smearingTool
.empty() ){
29
ATH_CHECK
(
m_smearingTool
.retrieve());
30
}
31
32
return
StatusCode::SUCCESS;
33
}
34
35
36
StatusCode
JetCalibTool::calibrate
(
xAOD::JetContainer
&
jets
)
const
{
37
38
ATH_MSG_DEBUG
(
"calibrating jet collection."
);
39
for
(
const
ToolHandle<IJetCalibStep>& cstep:
m_calibSteps
){
40
ATH_CHECK
( cstep->calibrate(
jets
) );
41
}
42
return
StatusCode::SUCCESS;
43
}
44
45
46
StatusCode
JetCalibTool::getNominalResolutionData
(
const
xAOD::Jet
&
jet
,
const
JetHelper::JetContext
& jcontext,
double
&
resolution
)
const
{
47
48
if
(
m_smearingTool
.empty()){
49
ATH_MSG_ERROR
(
"No smearing tool configured !"
);
50
return
StatusCode::FAILURE;
51
}
52
return
m_smearingTool
->getNominalResolutionData(
jet
, jcontext,
resolution
);
53
}
54
55
StatusCode
JetCalibTool::getNominalResolutionMC
(
const
xAOD::Jet
&
jet
,
const
JetHelper::JetContext
& jcontext,
double
&
resolution
)
const
{
56
if
(
m_smearingTool
.empty()){
57
ATH_MSG_ERROR
(
"No smearing tool configured !"
);
58
return
StatusCode::FAILURE;
59
}
60
return
m_smearingTool
->getNominalResolutionMC(
jet
, jcontext,
resolution
);
61
}
62
JetHelper::JetContext
Class JetContext Designed to read AOD information related to the event, N vertices,...
Definition:
JetContext.h:24
JetCalibTool.h
asg
Definition:
DataHandleTestTool.h:28
defineDB.jets
jets
Definition:
JetTagCalibration/share/defineDB.py:24
JetCalibTool::getNominalResolutionMC
virtual StatusCode getNominalResolutionMC(const xAOD::Jet &jet, const JetHelper::JetContext &, double &resolution) const override
Definition:
JetCalibTool.cxx:55
Dedxcorrection::resolution
double resolution[nGasTypes][nParametersResolution]
Definition:
TRT_ToT_Corrections.h:46
JetCalibTool::m_smearingTool
ToolHandle< IJetCalibStep > m_smearingTool
Definition:
JetCalibTool.h:52
JetCalibTool::m_calibSteps
ToolHandleArray< IJetCalibStep > m_calibSteps
Definition:
JetCalibTool.h:50
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition:
AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:794
JetCalibTool::JetCalibTool
JetCalibTool(const std::string &name="JetCalibTool")
Constructor with parameters:
Definition:
JetCalibTool.cxx:15
PathResolver.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
xAOD::Jet_v1
Class describing a jet.
Definition:
Jet_v1.h:57
JetCalibTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition:
JetCalibTool.cxx:24
ReadDecorHandle.h
Handle class for reading a decoration on an object.
JetCalibTool::getNominalResolutionData
virtual StatusCode getNominalResolutionData(const xAOD::Jet &jet, const JetHelper::JetContext &, double &resolution) const override
Definition:
JetCalibTool.cxx:46
JetCalibTool::calibrate
virtual StatusCode calibrate(xAOD::JetContainer &) const override
Apply calibration to a jet container.
Definition:
JetCalibTool.cxx:36
Generated on Fri May 9 2025 21:12:06 for ATLAS Offline Software by
1.8.18