ATLAS Offline Software
PreselCaloExtensionBuilderAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef TRACKTOCALO_PRESELCALOEXTENSIONBUILDERALG_H
6 #define TRACKTOCALO_PRESELCALOEXTENSIONBUILDERALG_H
7 
9 #include "GaudiKernel/ToolHandle.h"
15 
16 namespace Trk {
32  public:
33  PreselCaloExtensionBuilderAlg(const std::string& name, ISvcLocator* pSvcLocator);
35 
36  virtual StatusCode initialize() override;
37  virtual StatusCode execute(const EventContext& ctx) const override;
38 
39  private:
40  ToolHandle<Trk::IParticleCaloExtensionTool> m_particleCaloExtensionTool{this, "ParticleCaloExtensionTool",
41  "ParticleCaloExtensionTool"};
42  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_inputTracksKey{this, "InputTracks", "", "Input track container"};
43  SG::WriteHandleKey<CaloExtensionCollection> m_outputCacheKey{this, "OutputCache", "", "Output extension cache"};
44  }; //> end class PreselCaloExtensionBuilderAlg
45 } // namespace Trk
46 
47 #endif //> !TRACKTOCALO_PRESELCALOEXTENSIONBUILDERALG_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
Trk::PreselCaloExtensionBuilderAlg::m_particleCaloExtensionTool
ToolHandle< Trk::IParticleCaloExtensionTool > m_particleCaloExtensionTool
Definition: PreselCaloExtensionBuilderAlg.h:40
Trk::PreselCaloExtensionBuilderAlg::PreselCaloExtensionBuilderAlg
PreselCaloExtensionBuilderAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PreselCaloExtensionBuilderAlg.cxx:13
SG::ReadHandleKey< xAOD::TrackParticleContainer >
Trk::PreselCaloExtensionBuilderAlg::initialize
virtual StatusCode initialize() override
Definition: PreselCaloExtensionBuilderAlg.cxx:18
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::PreselCaloExtensionBuilderAlg::~PreselCaloExtensionBuilderAlg
~PreselCaloExtensionBuilderAlg()
Trk::PreselCaloExtensionBuilderAlg::m_inputTracksKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_inputTracksKey
Definition: PreselCaloExtensionBuilderAlg.h:42
Trk::PreselCaloExtensionBuilderAlg::m_outputCacheKey
SG::WriteHandleKey< CaloExtensionCollection > m_outputCacheKey
Definition: PreselCaloExtensionBuilderAlg.h:43
Trk::PreselCaloExtensionBuilderAlg
Build the calo extensions for a preselected collection of tracks.
Definition: PreselCaloExtensionBuilderAlg.h:31
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloExtensionCollection.h
IParticleCaloExtensionTool.h
Trk::PreselCaloExtensionBuilderAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: PreselCaloExtensionBuilderAlg.cxx:25
TrackParticleContainer.h