ATLAS Offline Software
TrkCollectionAliasAlg.h
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.h, (c) ATLAS Detector software
8 
9 #ifndef TRKTRKCOLLECTIONALIASALG_H
10 #define TRKTRKCOLLECTIONALIASALG_H
11 
12 // Gaudi includes
15 
16 class AtlasDetectorID;
17 class Identifier;
18 
19 namespace Trk
20 {
21 
31  {
32  public:
33 
35  TrkCollectionAliasAlg(const std::string& name, ISvcLocator* pSvcLocator);
38 
42  StatusCode execute(const EventContext& ctx) const;
45 
46  private:
47 
50  // The key of the input track collection
52  {this, "CollectionName", "ResolvedTracks"};
53 
54  // The key that should be given to the alias
55  SG::WriteHandleKey<TrackCollection> m_aliasName{this, "AliasName", "Tracks"};
56 
57  };
58 } // end of namespace
59 
60 #endif
Trk::TrkCollectionAliasAlg::execute
StatusCode execute(const EventContext &ctx) const
standard Athena-Algorithm method
Definition: TrkCollectionAliasAlg.cxx:41
Trk::TrkCollectionAliasAlg::finalize
StatusCode finalize()
standard Athena-Algorithm method
Definition: TrkCollectionAliasAlg.cxx:34
Trk::TrkCollectionAliasAlg
Definition: TrkCollectionAliasAlg.h:31
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
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
TrackCollection.h
AthReentrantAlgorithm.h
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
Trk::TrkCollectionAliasAlg::m_aliasName
SG::WriteHandleKey< TrackCollection > m_aliasName
Definition: TrkCollectionAliasAlg.h:55
Trk::TrkCollectionAliasAlg::m_collectionName
SG::ReadHandleKey< TrackCollection > m_collectionName
member variables for algorithm properties:
Definition: TrkCollectionAliasAlg.h:52
Trk::TrkCollectionAliasAlg::TrkCollectionAliasAlg
TrkCollectionAliasAlg(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
Definition: TrkCollectionAliasAlg.cxx:13
Trk::TrkCollectionAliasAlg::~TrkCollectionAliasAlg
~TrkCollectionAliasAlg()
Default Destructor.
Trk::TrkCollectionAliasAlg::initialize
StatusCode initialize()
standard Athena-Algorithm method
Definition: TrkCollectionAliasAlg.cxx:24
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition: AtlasDetectorID.h:57
Identifier
Definition: IdentifierFieldParser.cxx:14