ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
ElectronPhotonID
PhotonVertexSelection
PhotonVertexSelection
DecoratePhotonPointingAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PHOTONVERTEXSELECTION_DECORATEPHOTONPOINTINGALG_H
6
#define PHOTONVERTEXSELECTION_DECORATEPHOTONPOINTINGALG_H
7
8
#include <
AnaAlgorithm/AnaAlgorithm.h
>
9
#include <
AsgDataHandles/ReadHandleKey.h
>
10
#include <
AsgDataHandles/WriteDecorHandleKey.h
>
11
#include <
AsgTools/ToolHandle.h
>
12
#include <
AsgTools/PropertyWrapper.h
>
13
#include <
PhotonVertexSelection/IPhotonPointingTool.h
>
14
#include <
PhotonVertexSelection/IPhotonVertexSelectionTool.h
>
15
#include <
xAODEgamma/EgammaContainerFwd.h
>
16
#include <
xAODEventInfo/EventInfo.h
>
17
25
class
DecoratePhotonPointingAlg
:
public
EL::AnaAlgorithm
{
26
public
:
27
DecoratePhotonPointingAlg
(
const
std::string& name,
28
ISvcLocator* svcLoc =
nullptr
);
29
30
virtual
StatusCode
initialize
()
override
;
31
StatusCode
execute
()
override
;
32
33
private
:
34
35
//Write decoration handle keys
36
SG::WriteDecorHandleKey<xAOD::EgammaContainer>
m_caloPointingZ
;
37
SG::WriteDecorHandleKey<xAOD::EgammaContainer>
m_zCommon
;
38
SG::WriteDecorHandleKey<xAOD::EgammaContainer>
m_zCommonError
;
39
40
Gaudi::Property<std::string>
m_caloPointingZDecorName
{
this
,
"caloPointingZDecorName"
,
"caloPointingZ"
,
""
};
41
Gaudi::Property<std::string>
m_zCommonDecorName
{
this
,
"zCommonDecorName"
,
"zCommon"
,
""
};
42
Gaudi::Property<std::string>
m_zCommonErrorDecorName
{
this
,
"zCommonErrorDecorName"
,
"zCommonError"
,
""
};
43
44
SG::ReadHandleKey<xAOD::EgammaContainer>
m_photonContainerKey
{
45
this
,
"PhotonContainerKey"
,
"Photons"
,
"The input Photons container (it can be also Electrons)"
};
46
47
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInKey
{
48
this
,
"EventInfoKey"
,
"EventInfo"
,
"containerName to read"
};
49
50
ToolHandle<CP::IPhotonPointingTool>
m_pointingTool
{
51
this
,
"PhotonPointingTool"
,
52
"CP::PhotonPointingTool/PhotonPointingTool"
,
""
};
53
54
ToolHandle<CP::IPhotonVertexSelectionTool>
m_photonVtxTool
{
55
this
,
"PhotonVertexSelectionTool"
,
56
"CP::PhotonVertexSelectionTool/PhotonVertexSelectionTool"
,
57
"Photon vertex selection tool to use"
};
58
};
59
60
#endif
// PHOTONVERTEXSELECTION_DECORATEPHOTONPOINTINGALG_H
AnaAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
EgammaContainerFwd.h
IPhotonPointingTool.h
IPhotonVertexSelectionTool.h
PropertyWrapper.h
ToolHandle.h
DecoratePhotonPointingAlg::execute
StatusCode execute() override
Definition
DecoratePhotonPointingAlg.cxx:37
DecoratePhotonPointingAlg::initialize
virtual StatusCode initialize() override
Definition
DecoratePhotonPointingAlg.cxx:17
DecoratePhotonPointingAlg::m_photonContainerKey
SG::ReadHandleKey< xAOD::EgammaContainer > m_photonContainerKey
Definition
DecoratePhotonPointingAlg.h:44
DecoratePhotonPointingAlg::m_zCommonDecorName
Gaudi::Property< std::string > m_zCommonDecorName
Definition
DecoratePhotonPointingAlg.h:41
DecoratePhotonPointingAlg::m_zCommonError
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_zCommonError
Definition
DecoratePhotonPointingAlg.h:38
DecoratePhotonPointingAlg::m_pointingTool
ToolHandle< CP::IPhotonPointingTool > m_pointingTool
Definition
DecoratePhotonPointingAlg.h:50
DecoratePhotonPointingAlg::m_eventInKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInKey
Definition
DecoratePhotonPointingAlg.h:47
DecoratePhotonPointingAlg::m_zCommon
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_zCommon
Definition
DecoratePhotonPointingAlg.h:37
DecoratePhotonPointingAlg::m_photonVtxTool
ToolHandle< CP::IPhotonVertexSelectionTool > m_photonVtxTool
Definition
DecoratePhotonPointingAlg.h:54
DecoratePhotonPointingAlg::m_caloPointingZ
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_caloPointingZ
Definition
DecoratePhotonPointingAlg.h:36
DecoratePhotonPointingAlg::m_caloPointingZDecorName
Gaudi::Property< std::string > m_caloPointingZDecorName
Definition
DecoratePhotonPointingAlg.h:40
DecoratePhotonPointingAlg::DecoratePhotonPointingAlg
DecoratePhotonPointingAlg(const std::string &name, ISvcLocator *svcLoc=nullptr)
Definition
DecoratePhotonPointingAlg.cxx:13
DecoratePhotonPointingAlg::m_zCommonErrorDecorName
Gaudi::Property< std::string > m_zCommonErrorDecorName
Definition
DecoratePhotonPointingAlg.h:42
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0