ATLAS Offline Software
PhotonShowerShapeFudgeAlg.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 //
10 // includes
11 //
12 
14 
15 //
16 // method implementations
17 //
18 
19 namespace CP
20 {
21 
23  initialize ()
24  {
25  ANA_CHECK (m_showerShapeFudgeTool.retrieve());
30  return StatusCode::SUCCESS;
31  }
32 
33 
34 
36  execute ()
37  {
38  for (const auto& sys : m_systematicsList.systematicsVector())
39  {
40  xAOD::PhotonContainer *photons = nullptr;
41  ANA_CHECK (m_photonHandle.getCopy (photons, sys));
42  for (xAOD::Photon *photon : *photons)
43  {
45  {
47  }
48  }
49  }
50  return StatusCode::SUCCESS;
51  }
52 }
PhotonShowerShapeFudgeAlg.h
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
CP::SysListHandle::initialize
::StatusCode initialize()
intialize this property
Definition: SysListHandle.cxx:69
CP::SysReadSelectionHandle::getBool
bool getBool(const SG::AuxElement &element, const CP::SystematicSet &sys) const
get the selection as a bool
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::PhotonShowerShapeFudgeAlg::execute
StatusCode execute() override
Definition: PhotonShowerShapeFudgeAlg.cxx:36
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
CP::PhotonShowerShapeFudgeAlg::initialize
StatusCode initialize() override
Definition: PhotonShowerShapeFudgeAlg.cxx:23
CP::PhotonShowerShapeFudgeAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition: PhotonShowerShapeFudgeAlg.h:51
ANA_CHECK_CORRECTION
#define ANA_CHECK_CORRECTION(helper, object, expr)
a helper check macro to work with OutOfValidityHelper
Definition: OutOfValidityHelper.h:132
CP::OutOfValidityHelper::initialize
::StatusCode initialize()
standard initialize
Definition: OutOfValidityHelper.cxx:25
xAOD::photon
@ photon
Definition: TrackingPrimitives.h:199
xAOD::Photon_v1
Definition: Photon_v1.h:37
CP::SysReadSelectionHandle::initialize
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
Definition: SysReadSelectionHandle.cxx:34
CP::PhotonShowerShapeFudgeAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: PhotonShowerShapeFudgeAlg.h:42
CP::PhotonShowerShapeFudgeAlg::m_photonHandle
SysCopyHandle< xAOD::PhotonContainer > m_photonHandle
the photon collection we run on
Definition: PhotonShowerShapeFudgeAlg.h:46
CP::PhotonShowerShapeFudgeAlg::m_outOfValidity
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
Definition: PhotonShowerShapeFudgeAlg.h:56
SG::AllowEmpty
@ AllowEmpty
Definition: StoreGate/StoreGate/VarHandleKey.h:30
CP::PhotonShowerShapeFudgeAlg::m_showerShapeFudgeTool
ToolHandle< IElectronPhotonShowerShapeFudgeTool > m_showerShapeFudgeTool
the smearing tool
Definition: PhotonShowerShapeFudgeAlg.h:38