ATLAS Offline Software
TrkAmbiguityScore.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 /***************************************************************************
7 TrkAmbiguityScore Algorithm
8 ***************************************************************************/
9 
10 
11 #ifndef TRKAMBIGUITYSCORE_H
12 #define TRKAMBIGUITYSCORE_H
13 
15 #include "GaudiKernel/ToolHandle.h"
20 #include <string>
21 
22 namespace Trk
23 {
24  class ITrackAmbiguityProcessorTool;
25  class ITrackAmbiguityScoreProcessorTool;
26 
27  class TrkAmbiguityScore : public AthReentrantAlgorithm
28  {
29  public:
30  TrkAmbiguityScore(const std::string& name, ISvcLocator* pSvcLocator);
31  ~TrkAmbiguityScore(void);
32 
33  StatusCode initialize(void) override;
34  StatusCode execute(const EventContext& ctx) const override;
35  StatusCode finalize(void) override;
36 
37  private:
39  SG::WriteHandleKey<TracksScores> m_scoredTracksKey{this, "TrackOutput", "Tracks"};
40  ToolHandle<ITrackAmbiguityScoreProcessorTool> m_scoreTool
41  {this, "AmbiguityScoreProcessor", ""};
42  };
43 
44 }
45 
46 
47 #endif
Trk::TrkAmbiguityScore::TrkAmbiguityScore
TrkAmbiguityScore(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrkAmbiguityScore.cxx:8
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
Trk::TrkAmbiguityScore::execute
StatusCode execute(const EventContext &ctx) const override
Definition: TrkAmbiguityScore.cxx:27
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
Trk::TrkAmbiguityScore::finalize
StatusCode finalize(void) override
Definition: TrkAmbiguityScore.cxx:58
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
Trk::TrkAmbiguityScore::m_originTracksKey
SG::ReadHandleKeyArray< TrackCollection > m_originTracksKey
Definition: TrkAmbiguityScore.h:40
SG::WriteHandleKey< TracksScores >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrackCollection.h
Trk::TrkAmbiguityScore::m_scoredTracksKey
SG::WriteHandleKey< TracksScores > m_scoredTracksKey
Definition: TrkAmbiguityScore.h:41
AthReentrantAlgorithm.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::TrkAmbiguityScore::m_scoreTool
ToolHandle< ITrackAmbiguityScoreProcessorTool > m_scoreTool
Definition: TrkAmbiguityScore.h:43
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
Trk::TrkAmbiguityScore::initialize
StatusCode initialize(void) override
Definition: TrkAmbiguityScore.cxx:17
Trk::TrkAmbiguityScore::~TrkAmbiguityScore
~TrkAmbiguityScore(void)
ITrackAmbiguityScoreProcessorTool.h