ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
tauRecTools
src
TauVertexFinder.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 TAURECTOOLS_TAUVERTEXFINDER_H
6
#define TAURECTOOLS_TAUVERTEXFINDER_H
7
8
#include "
tauRecTools/TauRecToolBase.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
#include "
StoreGate/ReadHandle.h
"
11
#include "
xAODTracking/VertexContainer.h
"
12
#include "
JetEDM/TrackVertexAssociation.h
"
13
#include "
InDetTrackSelectionTool/IInDetTrackSelectionTool.h
"
14
#include "
TrackVertexAssociationTool/ITrackVertexAssociationTool.h
"
15
17
28
29
class
TauVertexFinder
:
public
TauRecToolBase
{
30
public
:
31
//-------------------------------------------------------------
33
//-------------------------------------------------------------
34
TauVertexFinder
(
const
std::string& name);
35
ASG_TOOL_CLASS2
(
TauVertexFinder
,
TauRecToolBase
,
ITauToolBase
);
36
~TauVertexFinder
();
37
38
//-------------------------------------------------------------
40
//-------------------------------------------------------------
41
StatusCode
initialize
()
override
;
42
StatusCode
executeVertexFinder
(
xAOD::TauJet
& pTau,
43
const
xAOD::VertexContainer
* vertexContainer =
nullptr
)
const override
;
44
45
private
:
46
ElementLink<xAOD::VertexContainer>
47
getPV_TJVA
(
const
xAOD::TauJet
& tauJet,
48
const
xAOD::VertexContainer
& vertices,
49
float
& maxJVF)
const
;
50
51
std::pair<float, float>
getVertexScores
(
const
std::vector<const xAOD::TrackParticle*>& tracks,
float
vx_z)
const
;
52
53
private
:
54
55
Gaudi::Property<bool>
m_useTJVA
{
this
,
"UseTJVA"
,
true
};
56
Gaudi::Property<double>
m_dDeltaRMax
{
this
,
"DeltaRMax"
, 0.2,
"Maximum DeltaR to consider tracks for TJVA"
};
57
Gaudi::Property<std::string>
m_assocTracksName
{
this
,
"AssociatedTracks"
,
""
};
58
59
ToolHandle< InDet::IInDetTrackSelectionTool >
m_TrackSelectionToolForTJVA
{
this
,
"InDetTrackSelectionToolForTJVA"
,
""
};
60
ToolHandle<CP::ITrackVertexAssociationTool>
m_trkVertexAssocTool
{
this
,
"TVATool"
,
"Tau track-vertex association tool"
};
61
62
SG::ReadHandleKey<xAOD::VertexContainer>
m_vertexInputContainer
{
this
,
"Key_vertexInputContainer"
,
"PrimaryVertices"
,
"input vertex container key"
};
63
64
};
65
66
#endif
// TAURECTOOLS_TAUVERTEXFINDER_H
IInDetTrackSelectionTool.h
ITrackVertexAssociationTool.h
ReadHandle.h
Handle class for reading from StoreGate.
TauRecToolBase.h
TrackVertexAssociation.h
VertexContainer.h
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
ITauToolBase
The base class for all tau tools.
Definition
ITauToolBase.h:30
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
TauRecToolBase::TauRecToolBase
TauRecToolBase(const std::string &name)
Definition
TauRecToolBase.cxx:125
TauVertexFinder::getPV_TJVA
ElementLink< xAOD::VertexContainer > getPV_TJVA(const xAOD::TauJet &tauJet, const xAOD::VertexContainer &vertices, float &maxJVF) const
Definition
TauVertexFinder.cxx:101
TauVertexFinder::TauVertexFinder
TauVertexFinder(const std::string &name)
Constructor and Destructor.
Definition
TauVertexFinder.cxx:8
TauVertexFinder::initialize
StatusCode initialize() override
Algorithm functions.
Definition
TauVertexFinder.cxx:14
TauVertexFinder::getVertexScores
std::pair< float, float > getVertexScores(const std::vector< const xAOD::TrackParticle * > &tracks, float vx_z) const
Definition
TauVertexFinder.cxx:230
TauVertexFinder::m_trkVertexAssocTool
ToolHandle< CP::ITrackVertexAssociationTool > m_trkVertexAssocTool
Definition
TauVertexFinder.h:60
TauVertexFinder::m_assocTracksName
Gaudi::Property< std::string > m_assocTracksName
Definition
TauVertexFinder.h:57
TauVertexFinder::m_dDeltaRMax
Gaudi::Property< double > m_dDeltaRMax
Definition
TauVertexFinder.h:56
TauVertexFinder::m_useTJVA
Gaudi::Property< bool > m_useTJVA
Definition
TauVertexFinder.h:55
TauVertexFinder::m_TrackSelectionToolForTJVA
ToolHandle< InDet::IInDetTrackSelectionTool > m_TrackSelectionToolForTJVA
Definition
TauVertexFinder.h:59
TauVertexFinder::m_vertexInputContainer
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexInputContainer
Definition
TauVertexFinder.h:62
TauVertexFinder::ASG_TOOL_CLASS2
ASG_TOOL_CLASS2(TauVertexFinder, TauRecToolBase, ITauToolBase)
TauVertexFinder::~TauVertexFinder
~TauVertexFinder()
Definition
TauVertexFinder.cxx:11
TauVertexFinder::executeVertexFinder
StatusCode executeVertexFinder(xAOD::TauJet &pTau, const xAOD::VertexContainer *vertexContainer=nullptr) const override
Definition
TauVertexFinder.cxx:27
xAOD::VertexContainer
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Definition
VertexContainer.h:14
xAOD::TauJet
TauJet_v3 TauJet
Definition of the current "tau version".
Definition
TauJet.h:17
Generated on
for ATLAS Offline Software by
1.17.0