ATLAS Offline Software
TruthVertexSelectionTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrkVertexTools_TruthVertexSelectionTool_H
6 #define TrkVertexTools_TruthVertexSelectionTool_H
7 
9 #include "GaudiKernel/ToolHandle.h"
12 
33  namespace Trk
34  {
35 
36 
38  {
39  public:
42 
47  TruthVertexSelectionTool(const std::string& t, const std::string& n, const IInterface* p);
48 
54 
55  virtual unsigned int findVertexInContainer(const xAOD::VertexContainer * ) const;
56 
57 
58  private:
59  SG::ReadHandleKey<McEventCollection> m_mcEventCollectionKey { this, "mcContainerName", "GEN_AOD", "key to retrieve MC truth" };
60 
61  }; //end of class description
62  }//end of namespace definition
63 
64  #endif
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
Trk::TruthVertexSelectionTool::m_mcEventCollectionKey
SG::ReadHandleKey< McEventCollection > m_mcEventCollectionKey
Definition: TruthVertexSelectionTool.h:59
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey< McEventCollection >
Trk::TruthVertexSelectionTool
Definition: TruthVertexSelectionTool.h:38
Trk::TruthVertexSelectionTool::initialize
StatusCode initialize()
Definition: TruthVertexSelectionTool.cxx:25
Trk::TruthVertexSelectionTool::TruthVertexSelectionTool
TruthVertexSelectionTool(const std::string &t, const std::string &n, const IInterface *p)
constructor
Definition: TruthVertexSelectionTool.cxx:15
IVertexSelectionTool.h
McEventCollection.h
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Trk::IVertexSelectionTool
Interface class for vertex Container Sorting.
Definition: IVertexSelectionTool.h:38
Trk::TruthVertexSelectionTool::findVertexInContainer
virtual unsigned int findVertexInContainer(const xAOD::VertexContainer *) const
Selection method returning the position of selected the PV in the container.
Definition: TruthVertexSelectionTool.cxx:38
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
Trk::TruthVertexSelectionTool::finalize
StatusCode finalize()
EndOfInitialize.
Definition: TruthVertexSelectionTool.cxx:33
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
AthAlgTool
Definition: AthAlgTool.h:26
Trk::TruthVertexSelectionTool::~TruthVertexSelectionTool
virtual ~TruthVertexSelectionTool()
destructor