ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetTrackPerfMon
src
VertexRoiSelectionTool.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
#ifndef INDETTRACKPERFMON_VERTEXROISELECTIONTOOL_H
6
#define INDETTRACKPERFMON_VERTEXROISELECTIONTOOL_H
7
15
17
#include "
AsgTools/IAsgTool.h
"
18
#include "
AsgTools/AsgTool.h
"
19
#include "
TrigDecisionTool/TrigDecisionTool.h
"
20
#include "AthLinks/ElementLink.h"
21
23
#include <string>
24
#include <vector>
25
26
class
TrigRoiDescriptorCollection
;
27
28
namespace
IDTPM
{
29
30
class
TrackAnalysisCollections
;
31
32
class
VertexRoiSelectionTool
:
33
public
virtual
asg::IAsgTool
,
34
public
asg::AsgTool
{
35
36
public
:
37
38
ASG_TOOL_CLASS
(
VertexRoiSelectionTool
, IAsgTool );
39
41
VertexRoiSelectionTool
(
const
std::string& name );
42
44
virtual
~VertexRoiSelectionTool
() =
default
;
45
47
virtual
StatusCode
initialize
()
override
;
48
50
StatusCode
selectVerticesInRoI
(
51
TrackAnalysisCollections
& trkAnaColls,
52
const
ElementLink< TrigRoiDescriptorCollection >
& roiLink );
53
55
template
<
class
V >
56
bool
accept
(
const
V& v,
const
TrigRoiDescriptor
*
r
)
const
;
57
59
template
<
class
V >
60
std::vector< const V* >
getVertices
(
61
const
std::vector< const V* >& vvec,
62
const
TrigRoiDescriptor
*
r
)
const
;
63
65
std::vector< const xAOD::Vertex* >
getTrigVertices
(
66
const
std::vector< const xAOD::Vertex* >& vvec,
67
const
ElementLink< TrigRoiDescriptorCollection >
& roiLink )
const
;
68
69
private
:
70
72
SG::ReadHandleKey< xAOD::VertexContainer >
m_triggerVertexContainerName
{
73
this
,
"TriggerVertexContainerName"
,
""
,
"Name of container of trigger vertices"
};
74
76
PublicToolHandle< Trig::TrigDecisionTool >
m_trigDecTool
{
77
this
,
"TrigDecisionTool"
,
"Trig::TrigDecisionTool/TrigDecisionTool"
,
""
};
78
79
};
// class VertexRoiSelectionTool
80
81
}
// namespace IDTPM
82
83
#endif
// > !INDETTRACKPERFMON_VERTEXROISELECTIONTOOL_H
AsgTool.h
IAsgTool.h
TrigDecisionTool.h
ElementLink< TrigRoiDescriptorCollection >
IDTPM::TrackAnalysisCollections
Definition
TrackAnalysisCollections.h:46
IDTPM::VertexRoiSelectionTool::initialize
virtual StatusCode initialize() override
Initialize.
Definition
VertexRoiSelectionTool.cxx:37
IDTPM::VertexRoiSelectionTool::selectVerticesInRoI
StatusCode selectVerticesInRoI(TrackAnalysisCollections &trkAnaColls, const ElementLink< TrigRoiDescriptorCollection > &roiLink)
Main Vertex selection method.
Definition
VertexRoiSelectionTool.cxx:159
IDTPM::VertexRoiSelectionTool::getVertices
std::vector< const V * > getVertices(const std::vector< const V * > &vvec, const TrigRoiDescriptor *r) const
vertex getter function (for offline tracks or truth particles)
Definition
VertexRoiSelectionTool.cxx:95
IDTPM::VertexRoiSelectionTool::m_triggerVertexContainerName
SG::ReadHandleKey< xAOD::VertexContainer > m_triggerVertexContainerName
Trigger vertex container's name.
Definition
VertexRoiSelectionTool.h:72
IDTPM::VertexRoiSelectionTool::accept
bool accept(const V &v, const TrigRoiDescriptor *r) const
geometric RoI filters - for non-trigger veritices (e.g. offline, truth, etc.)
Definition
VertexRoiSelectionTool.cxx:56
IDTPM::VertexRoiSelectionTool::ASG_TOOL_CLASS
ASG_TOOL_CLASS(VertexRoiSelectionTool, IAsgTool)
IDTPM::VertexRoiSelectionTool::m_trigDecTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
TrigDecTool.
Definition
VertexRoiSelectionTool.h:76
IDTPM::VertexRoiSelectionTool::getTrigVertices
std::vector< const xAOD::Vertex * > getTrigVertices(const std::vector< const xAOD::Vertex * > &vvec, const ElementLink< TrigRoiDescriptorCollection > &roiLink) const
TrigDecTool- and EventView-based getter function for trigger vertices.
Definition
VertexRoiSelectionTool.cxx:127
IDTPM::VertexRoiSelectionTool::VertexRoiSelectionTool
VertexRoiSelectionTool(const std::string &name)
Constructor.
Definition
VertexRoiSelectionTool.cxx:29
IDTPM::VertexRoiSelectionTool::~VertexRoiSelectionTool
virtual ~VertexRoiSelectionTool()=default
Destructor.
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
TrigRoiDescriptorCollection
Definition
TrigRoiDescriptorCollection.h:14
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits ifndef XAOD_ANA...
Definition
TrigRoiDescriptor.h:48
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
asg::IAsgTool
Base class for the dual-use tool interface classes.
Definition
IAsgTool.h:41
r
int r
Definition
globals.cxx:22
IDTPM
Athena include(s).
Definition
IPlotsDefinitionSvc.h:25
Generated on
for ATLAS Offline Software by
1.17.0