ATLAS Offline Software
Loading...
Searching...
No Matches
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
19namespace CP
20{
21
22 StatusCode PhotonShowerShapeFudgeAlg ::
23 initialize ()
24 {
28 ANA_CHECK (m_systematicsList.initialize());
29 ANA_CHECK (m_outOfValidity.initialize());
30 return StatusCode::SUCCESS;
31 }
32
33
34
35 StatusCode PhotonShowerShapeFudgeAlg ::
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 {
44 if (m_preselection.getBool (*photon, sys))
45 {
47 }
48 }
49 }
50 return StatusCode::SUCCESS;
51 }
52}
#define ANA_CHECK(EXP)
check whether the given expression was successful
#define ANA_CHECK_CORRECTION(helper, object, expr)
a helper check macro to work with OutOfValidityHelper
ToolHandle< IElectronPhotonShowerShapeFudgeTool > m_showerShapeFudgeTool
the smearing tool
SysCopyHandle< xAOD::PhotonContainer > m_photonHandle
the photon collection we run on
SysListHandle m_systematicsList
the systematics list we run
SysReadSelectionHandle m_preselection
the preselection we apply to our input
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
Select isolated Photons, Electrons and Muons.
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
Photon_v1 Photon
Definition of the current "egamma version".