ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkVertexFitter
TrkVertexTools
TrkVertexTools
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
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
#include "
TrkVertexFitterInterfaces/IVertexSelectionTool.h
"
11
#include "
GeneratorObjects/McEventCollection.h
"
12
32
33
namespace
Trk
34
{
35
36
37
class
TruthVertexSelectionTool
:
public
AthAlgTool
,
virtual
public
IVertexSelectionTool
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
53
virtual
~TruthVertexSelectionTool
();
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.h
McEventCollection.h
IVertexSelectionTool.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
Trk::IVertexSelectionTool
Interface class for vertex Container Sorting.
Definition
Tracking/TrkVertexFitter/TrkVertexFitterInterfaces/TrkVertexFitterInterfaces/IVertexSelectionTool.h:38
Trk::TruthVertexSelectionTool::TruthVertexSelectionTool
TruthVertexSelectionTool(const std::string &t, const std::string &n, const IInterface *p)
constructor
Definition
TruthVertexSelectionTool.cxx:15
Trk::TruthVertexSelectionTool::m_mcEventCollectionKey
SG::ReadHandleKey< McEventCollection > m_mcEventCollectionKey
Definition
TruthVertexSelectionTool.h:59
Trk::TruthVertexSelectionTool::finalize
StatusCode finalize()
EndOfInitialize.
Definition
TruthVertexSelectionTool.cxx:33
Trk::TruthVertexSelectionTool::~TruthVertexSelectionTool
virtual ~TruthVertexSelectionTool()
destructor
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
Trk::TruthVertexSelectionTool::initialize
StatusCode initialize()
Definition
TruthVertexSelectionTool.cxx:25
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
xAOD::VertexContainer
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Definition
VertexContainer.h:14
Generated on
for ATLAS Offline Software by
1.17.0