ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14//
15// method implementations
16//
17
18namespace 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());
27 ANA_CHECK (m_systematicsList.initialize());
28 return StatusCode::SUCCESS;
29 }
30
31
32
33 StatusCode JetCalibAlg ::
34 execute ()
35 {
36 for (const auto& sys : m_systematicsList.systematicsVector())
37 {
38 xAOD::JetContainer *jets = nullptr;
39 ANA_CHECK (m_jetHandle.getCopy (jets, sys));
40 ANA_CHECK (m_calibrationTool->calibrate(*jets));
41 }
42
43 return StatusCode::SUCCESS;
44 }
45}
#define ATH_MSG_INFO(x)
#define ANA_CHECK(EXP)
check whether the given expression was successful
SysCopyHandle< xAOD::JetContainer > m_jetHandle
the jet collection we run on
Definition JetCalibAlg.h:45
ToolHandle< IJetCalibTool > m_calibrationTool
the calibration tool
Definition JetCalibAlg.h:37
SysListHandle m_systematicsList
the systematics list we run
Definition JetCalibAlg.h:41
Select isolated Photons, Electrons and Muons.
JetContainer_v1 JetContainer
Definition of the current "jet container version".