ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
JetAnalysisAlgorithms
Root
JetCalibAlg.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
//
9
// includes
10
//
11
12
#include <
JetAnalysisAlgorithms/JetCalibAlg.h
>
13
14
//
15
// method implementations
16
//
17
18
namespace
CP
19
{
20
21
StatusCode JetCalibAlg ::
22
initialize ()
23
{
24
ATH_MSG_INFO
(
"Initialize for jets: "
<<
m_jetHandle
.getNamePattern() );
25
ANA_CHECK
(
m_calibrationTool
.retrieve());
26
ANA_CHECK
(
m_jetHandle
.initialize (
m_systematicsList
));
27
ANA_CHECK
(
m_systematicsList
.initialize());
28
return
StatusCode::SUCCESS;
29
}
30
31
32
33
StatusCode JetCalibAlg ::
34
execute (
const
EventContext& ctx)
35
{
36
for
(
const
auto
& sys :
m_systematicsList
.systematicsVector())
37
{
38
xAOD::JetContainer
*jets =
nullptr
;
39
ANA_CHECK
(
m_jetHandle
.getCopy (jets, sys, ctx));
40
ANA_CHECK
(
m_calibrationTool
->calibrate(*jets));
41
}
42
43
return
StatusCode::SUCCESS;
44
}
45
}
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
JetCalibAlg.h
CP::JetCalibAlg::m_jetHandle
SysCopyHandle< xAOD::JetContainer > m_jetHandle
the jet collection we run on
Definition
JetCalibAlg.h:45
CP::JetCalibAlg::m_calibrationTool
ToolHandle< IJetCalibTool > m_calibrationTool
the calibration tool
Definition
JetCalibAlg.h:37
CP::JetCalibAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
JetCalibAlg.h:41
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0