ATLAS Offline Software
JetModifierAlg.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_modifierTool.retrieve());
28  return StatusCode::SUCCESS;
29  }
30 
31 
32 
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_modifierTool->modify (*jets));
41  }
42 
43  return StatusCode::SUCCESS;
44  }
45 }
CP::JetModifierAlg::execute
StatusCode execute() override
Definition: JetModifierAlg.cxx:34
CP::JetModifierAlg::m_jetHandle
SysCopyHandle< xAOD::JetContainer > m_jetHandle
the jet collection we run on
Definition: JetModifierAlg.h:41
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
CP::SysListHandle::systematicsVector
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
Definition: SysListHandle.cxx:96
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
JetModifierAlg.h
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
CP::JetModifierAlg::initialize
StatusCode initialize() override
Definition: JetModifierAlg.cxx:22
CP::JetModifierAlg::m_outOfValidity
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
Definition: JetModifierAlg.h:46
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
CP::JetModifierAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: JetModifierAlg.h:37
CP::OutOfValidityHelper::initialize
::StatusCode initialize()
standard initialize
Definition: OutOfValidityHelper.cxx:25
CP::JetModifierAlg::m_modifierTool
ToolHandle< IJetModifier > m_modifierTool
the modifier tool
Definition: JetModifierAlg.h:33
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24