ATLAS Offline Software
InnerDetector/InDetRecTools/InDetTrackSelectionTool/src/ToolTester.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef INDETTRACKSELECTIONTOOL_TOOLTESTER_H
8 #define INDETTRACKSELECTIONTOOL_TOOLTESTER_H
9 
10 // Gaudi/Athena include(s):
12 #include "GaudiKernel/ToolHandle.h"
13 
16 
17 
18 namespace InDet {
19 
20  // forward declaration of tool
21  class IInDetTrackSelectionTool;
22 
29 
30  public:
32  ToolTester( const std::string& name, ISvcLocator* svcLoc );
33 
35  virtual StatusCode initialize();
37  virtual StatusCode execute(const EventContext &ctx) const;
38 
39  private:
42 
43  SG::ReadHandleKey<xAOD::VertexContainer> m_vertexKey { this, "VertexContainer", "PrimaryVertices",
44  "reconstructed vertex container" };
45 
47  ToolHandle< IInDetTrackSelectionTool > m_selTool;
48 
49  }; // class ToolTester
50 
51 } // namespace InDet
52 
53 #endif // INDETTRACKSELECTIONTOOL_TOOLTESTER_H
InDet::ToolTester::m_vertexKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
Definition: InnerDetector/InDetRecTools/InDetTrackSelectionTool/src/ToolTester.h:43
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
SG::ReadHandleKey< xAOD::TrackParticleContainer >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
InDet::ToolTester::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition: InnerDetector/InDetRecTools/InDetTrackSelectionTool/src/ToolTester.cxx:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
InDet::ToolTester::execute
virtual StatusCode execute(const EventContext &ctx) const
Function executing the algorithm.
Definition: InnerDetector/InDetRecTools/InDetTrackSelectionTool/src/ToolTester.cxx:47
InDet::ToolTester
Simple algorithm for using the tools in Athena.
Definition: InnerDetector/InDetRecTools/InDetTrackSelectionTool/src/ToolTester.h:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
VertexContainer.h
InDet::ToolTester::m_selTool
ToolHandle< IInDetTrackSelectionTool > m_selTool
Connection to the selection tool.
Definition: InnerDetector/InDetRecTools/InDetTrackSelectionTool/src/ToolTester.h:47
InDet::ToolTester::m_sgKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_sgKey
StoreGate key for the track container to investigate.
Definition: InnerDetector/InDetRecTools/InDetTrackSelectionTool/src/ToolTester.h:41
InDet::ToolTester::ToolTester
ToolTester(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition: InnerDetector/InDetRecTools/InDetTrackSelectionTool/src/ToolTester.cxx:19
TrackParticleContainer.h