ATLAS Offline Software
Loading...
Searching...
No Matches
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):
15#include "AsgTools/ToolHandle.h"
16
17// Local include(s):
20
25namespace CP {
26
28
29public:
31 CalibratedEgammaProvider( const std::string& name, ISvcLocator* svcLoc );
32
34 virtual StatusCode initialize();
36 virtual StatusCode execute();
37
38private:
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(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode initialize()
Function initialising the algorithm.
CalibratedEgammaProvider(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
virtual StatusCode execute()
Function executing the algorithm.
SG::ReadHandleKey< xAOD::EgammaContainer > m_inputKey
ToolHandle< CP::IEgammaCalibrationAndSmearingTool > m_tool
SG::WriteHandleKey< xAOD::EgammaContainer > m_outputKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Select isolated Photons, Electrons and Muons.