ATLAS Offline Software
Loading...
Searching...
No Matches
TrkCollectionAliasAlg.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// TrkCollectionAliasAlg.cxx, (c) ATLAS Detector software
8
10
11//================ Constructor =================================================
12
13Trk::TrkCollectionAliasAlg::TrkCollectionAliasAlg(const std::string& name, ISvcLocator* pSvcLocator) :
14 AthReentrantAlgorithm(name,pSvcLocator) {}
15
16//================ Destructor =================================================
17
19= default;
20
21
22//================ Initialisation =================================================
23
25{
26 ATH_CHECK( m_collectionName.initialize() );
27 ATH_CHECK( m_aliasName.initialize() );
28
29 return StatusCode::SUCCESS;
30}
31
32//================ Finalisation =================================================
33
35{
36 return StatusCode::SUCCESS;
37}
38
39//================ Execution ====================================================
40
41StatusCode Trk::TrkCollectionAliasAlg::execute(const EventContext& ctx) const
42{
44 return tracks.alias(m_aliasName);
45}
46
47//============================================================================================
48
#define ATH_CHECK
Evaluate an expression and check for errors.
An algorithm that can be simultaneously executed in multiple threads.
StatusCode alias(const WriteHandleKey< T > &key)
Make an alias.
StatusCode initialize()
standard Athena-Algorithm method
SG::ReadHandleKey< TrackCollection > m_collectionName
member variables for algorithm properties:
StatusCode execute(const EventContext &ctx) const
standard Athena-Algorithm method
SG::WriteHandleKey< TrackCollection > m_aliasName
StatusCode finalize()
standard Athena-Algorithm method
TrkCollectionAliasAlg(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
~TrkCollectionAliasAlg()
Default Destructor.