ATLAS Offline Software
Loading...
Searching...
No Matches
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
32
33 namespace Trk
34 {
35
36
38 {
39 public:
40 StatusCode initialize();
41 StatusCode finalize();
42
46
47 TruthVertexSelectionTool(const std::string& t, const std::string& n, const IInterface* p);
48
52
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
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
TruthVertexSelectionTool(const std::string &t, const std::string &n, const IInterface *p)
constructor
SG::ReadHandleKey< McEventCollection > m_mcEventCollectionKey
StatusCode finalize()
EndOfInitialize.
virtual ~TruthVertexSelectionTool()
destructor
virtual unsigned int findVertexInContainer(const xAOD::VertexContainer *) const
Selection method returning the position of selected the PV in the container.
Ensure that the ATLAS eigen extensions are properly loaded.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".