ATLAS Offline Software
JetCalibrationAlg.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 //
9 // includes
10 //
11 
13 
14 //
15 // method implementations
16 //
17 
18 namespace CP
19 {
20 
22  initialize ()
23  {
24  ANA_CHECK (m_calibrationTool.retrieve());
27  return StatusCode::SUCCESS;
28  }
29 
30 
31 
33  execute ()
34  {
35  for (const auto& sys : m_systematicsList.systematicsVector())
36  {
37  xAOD::JetContainer *jets = nullptr;
38  ANA_CHECK (m_jetHandle.getCopy (jets, sys));
39  ANA_CHECK (m_calibrationTool->applyCalibration(*jets));
40  }
41 
42  return StatusCode::SUCCESS;
43  }
44 }
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
CP::JetCalibrationAlg::initialize
StatusCode initialize() override
Definition: JetCalibrationAlg.cxx:22
CP::SysListHandle::systematicsVector
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
Definition: SysListHandle.cxx:96
CP::JetCalibrationAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: JetCalibrationAlg.h:36
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
CP::JetCalibrationAlg::m_calibrationTool
ToolHandle< IJetCalibrationTool > m_calibrationTool
the calibration tool
Definition: JetCalibrationAlg.h:32
CP::SysListHandle::initialize
::StatusCode initialize()
intialize this property
Definition: SysListHandle.cxx:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
CP::JetCalibrationAlg::m_jetHandle
SysCopyHandle< xAOD::JetContainer > m_jetHandle
the jet collection we run on
Definition: JetCalibrationAlg.h:40
JetCalibrationAlg.h
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
CP::JetCalibrationAlg::execute
StatusCode execute() override
Definition: JetCalibrationAlg.cxx:33