ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
ElectronPhotonID
ElectronPhotonFourMomentumCorrection
src
CalibratedEgammaProvider.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
//athena friendly provider of egamma calibrations - applies the egammaCalibTool to collections
7
//author: will buttinger
8
9
10
#ifndef CALIBRATEDEGAMMAPROVIDER_H
11
#define CALIBRATEDEGAMMAPROVIDER_H
12
13
// Gaudi/Athena include(s):
14
#include "
AthenaBaseComps/AthAlgorithm.h
"
15
#include "
AsgTools/ToolHandle.h
"
16
17
// Local include(s):
18
#include "
EgammaAnalysisInterfaces/IEgammaCalibrationAndSmearingTool.h
"
19
#include "
xAODCore/ShallowCopy.h
"
20
21
#include "
xAODEgamma/ElectronContainer.h
"
22
#include "
xAODEgamma/PhotonContainer.h
"
23
#include "
xAODEgamma/EgammaContainer.h
"
24
#include "
xAODEventInfo/EventInfo.h
"
25
namespace
CP
{
26
27
class
CalibratedEgammaProvider
:
public
AthAlgorithm
{
28
29
public
:
31
CalibratedEgammaProvider
(
const
std::string&
name
, ISvcLocator* svcLoc );
32
34
virtual
StatusCode
initialize
();
36
virtual
StatusCode
execute
(
const
EventContext& ctx);
37
38
private
:
39
SG::ReadHandleKey<xAOD::EventInfo>
m_evtInfoKey
{
this
,
"EvtInfoKey"
,
"EventInfo"
,
"Specify an Event info"
};
40
SG::ReadHandleKey<xAOD::EgammaContainer>
m_inputKey
{
this
,
"Input"
,
"Electrons"
,
"Electron or photon input collection to calibrate"
};
41
SG::WriteHandleKey<xAOD::EgammaContainer>
m_outputKey
{
this
,
"Output"
,
"CalibratedElectrons"
,
"Name of output collection. If same as input key, will try to modify in-situ"
};
42
ToolHandle<CP::IEgammaCalibrationAndSmearingTool>
m_tool
{
this
,
"Tool"
,
""
,
"Leave blank to get an autoconfigured instance"
};
43
44
45
};
// class
46
47
}
//namespace
48
#endif
// CALIBRATEDEGAMMAPROVIDER_H
AthAlgorithm.h
EgammaContainer.h
ElectronContainer.h
PhotonContainer.h
IEgammaCalibrationAndSmearingTool.h
ShallowCopy.h
ToolHandle.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
CP::CalibratedEgammaProvider::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition
CalibratedEgammaProvider.cxx:21
CP::CalibratedEgammaProvider::CalibratedEgammaProvider
CalibratedEgammaProvider(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition
CalibratedEgammaProvider.cxx:18
CP::CalibratedEgammaProvider::m_evtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
Definition
CalibratedEgammaProvider.h:39
CP::CalibratedEgammaProvider::m_inputKey
SG::ReadHandleKey< xAOD::EgammaContainer > m_inputKey
Definition
CalibratedEgammaProvider.h:40
CP::CalibratedEgammaProvider::m_tool
ToolHandle< CP::IEgammaCalibrationAndSmearingTool > m_tool
Definition
CalibratedEgammaProvider.h:42
CP::CalibratedEgammaProvider::execute
virtual StatusCode execute(const EventContext &ctx)
Function executing the algorithm.
Definition
CalibratedEgammaProvider.cxx:36
CP::CalibratedEgammaProvider::m_outputKey
SG::WriteHandleKey< xAOD::EgammaContainer > m_outputKey
Definition
CalibratedEgammaProvider.h:41
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0