ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkLLP
DerivationFrameworkLLP
TrackParametersKVU.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/*
6
Decorates the vertex constrained track parameters to the track container.
7
The vertex fit is performed with a track and the nearest vertex.
8
The updated the perigee paramters, chi2 of the vertex fit, and covariance matrix of the perigee parameters are decorated, but d0 and z0 should be 0.
9
The nDoF of the vertex fit is always 2. (5 track parameters + 3 vertex parameters - 3 track parameters - 3 vertex parameters)
10
11
user specifies...
12
13
TrackParticleContainerName: track particle container.
14
VertexContainerName: vertex container.
15
*/
16
17
#ifndef DERIVATIONFRAMEWORK_TRACKPARAMETERSATPV_H
18
#define DERIVATIONFRAMEWORK_TRACKPARAMETERSATPV_H
19
20
#include<string>
21
22
// Gaudi & Athena basics
23
#include "
AthenaBaseComps/AthAlgTool.h
"
24
#include "GaudiKernel/ToolHandle.h"
25
26
27
#include "
VxVertex/VxContainer.h
"
28
#include "
VxVertex/VxCandidate.h
"
29
#include "
VxVertex/VxTrackAtVertex.h
"
30
#include "
TrkTrack/TrackCollection.h
"
31
#include "
TrkTrack/Track.h
"
32
33
// DerivationFramework includes
34
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
35
36
#include "
xAODTracking/VertexContainer.h
"
37
#include "
TrkVertexFitterInterfaces/IVertexTrackUpdator.h
"
38
#include "
xAODTracking/TrackParticleContainer.h
"
39
#include "
TrkExInterfaces/IExtrapolator.h
"
40
#include "
TrkVertexFitterInterfaces/IVertexLinearizedTrackFactory.h
"
41
#include "
TrkVertexFitterInterfaces/ITrackToVertexIPEstimator.h
"
42
43
namespace
DerivationFramework
{
44
45
53
class
TrackParametersKVU
:
public
extends<AthAlgTool, IAugmentationTool> {
54
55
public
:
56
57
using
base_class::base_class;
58
59
// Athena algtool's Hooks
60
virtual
StatusCode
initialize
()
override
;
61
63
virtual
StatusCode
addBranches
(
const
EventContext& ctx)
const override
;
64
65
private
:
66
SG::ReadHandleKey< xAOD::TrackParticleContainer >
m_trackContainerKey
{
67
this
,
"TrackParticleContainerName"
,
"InDetDisappearingTrackParticles"
};
68
SG::ReadHandleKey< xAOD::VertexContainer >
m_vertexContainerKey
{
69
this
,
"VertexContainerName"
,
"PrimaryVertices"
};
70
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_KVUphiKey
{
71
this
,
"KVUphiKey"
,
m_trackContainerKey
,
"KVUphi"
};
72
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_KVUthetaKey
{
73
this
,
"KVUthetaKey"
,
m_trackContainerKey
,
"KVUtheta"
};
74
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_KVUd0Key
{
75
this
,
"KVUd0Key"
,
m_trackContainerKey
,
"KVUd0"
};
76
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_KVUz0Key
{
77
this
,
"KVUz0Key"
,
m_trackContainerKey
,
"KVUz0"
};
78
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_KVUqOverPKey
{
79
this
,
"KVUqOverPKey"
,
m_trackContainerKey
,
"KVUqOverP"
};
80
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_KVUChi2Key
{
81
this
,
"KVUChi2Key"
,
m_trackContainerKey
,
"KVUChi2"
};
82
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_KVUusedPVKey
{
83
this
,
"KVUusedPVKey"
,
m_trackContainerKey
,
"KVUusedPV"
};
84
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_KVUCovMatKey
{
85
this
,
"KVUCovMatKey"
,
m_trackContainerKey
,
"KVUCovMat"
};
86
87
ToolHandle< Trk::IVertexTrackUpdator >
m_vertexTrackUpdator
{
88
this
,
"VertexTrackUpdator"
,
"Trk::KalmanVertexTrackUpdator"
};
89
ToolHandle< Trk::IExtrapolator >
m_extrapolator
{
90
this
,
"TrackExtrapolator"
,
"Trk::Extrapolator/AtlasExtrapolator"
};
91
ToolHandle< Trk::IVertexLinearizedTrackFactory >
m_LinearizedTrackFactory
{
92
this
,
"LinearizedTrackFactory"
,
"Trk::FullLinearizedTrackFactory/FullLinearizedTrackFactory"
};
93
ToolHandle< Trk::ITrackToVertexIPEstimator>
m_IPEstimator
{
94
this
,
"IPEstimator"
,
"Trk::TrackToVertexIPEstimator/TrackToVertexIPEstimator"
};
95
};
96
97
}
98
99
#endif
AthAlgTool.h
TrackParticleContainer.h
IAugmentationTool.h
IExtrapolator.h
ITrackToVertexIPEstimator.h
IVertexLinearizedTrackFactory.h
IVertexTrackUpdator.h
TrackCollection.h
Track.h
VertexContainer.h
VxCandidate.h
VxContainer.h
VxTrackAtVertex.h
DerivationFramework::TrackParametersKVU
the code used in this implementation is kindly stolen from: atlasoff:: ISF/ISF_Core/ISF_Tools
Definition
TrackParametersKVU.h:53
DerivationFramework::TrackParametersKVU::m_KVUCovMatKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_KVUCovMatKey
Definition
TrackParametersKVU.h:84
DerivationFramework::TrackParametersKVU::m_KVUd0Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_KVUd0Key
Definition
TrackParametersKVU.h:74
DerivationFramework::TrackParametersKVU::m_KVUChi2Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_KVUChi2Key
Definition
TrackParametersKVU.h:80
DerivationFramework::TrackParametersKVU::m_LinearizedTrackFactory
ToolHandle< Trk::IVertexLinearizedTrackFactory > m_LinearizedTrackFactory
Definition
TrackParametersKVU.h:91
DerivationFramework::TrackParametersKVU::m_KVUz0Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_KVUz0Key
Definition
TrackParametersKVU.h:76
DerivationFramework::TrackParametersKVU::m_KVUqOverPKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_KVUqOverPKey
Definition
TrackParametersKVU.h:78
DerivationFramework::TrackParametersKVU::m_vertexTrackUpdator
ToolHandle< Trk::IVertexTrackUpdator > m_vertexTrackUpdator
Definition
TrackParametersKVU.h:87
DerivationFramework::TrackParametersKVU::m_vertexContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainerKey
Definition
TrackParametersKVU.h:68
DerivationFramework::TrackParametersKVU::m_trackContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackContainerKey
Definition
TrackParametersKVU.h:66
DerivationFramework::TrackParametersKVU::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override
Check that the current event passes this filter.
Definition
TrackParametersKVU.cxx:43
DerivationFramework::TrackParametersKVU::m_KVUphiKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_KVUphiKey
Definition
TrackParametersKVU.h:70
DerivationFramework::TrackParametersKVU::initialize
virtual StatusCode initialize() override
Definition
TrackParametersKVU.cxx:12
DerivationFramework::TrackParametersKVU::m_KVUusedPVKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_KVUusedPVKey
Definition
TrackParametersKVU.h:82
DerivationFramework::TrackParametersKVU::m_IPEstimator
ToolHandle< Trk::ITrackToVertexIPEstimator > m_IPEstimator
Definition
TrackParametersKVU.h:93
DerivationFramework::TrackParametersKVU::m_extrapolator
ToolHandle< Trk::IExtrapolator > m_extrapolator
Definition
TrackParametersKVU.h:89
DerivationFramework::TrackParametersKVU::m_KVUthetaKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_KVUthetaKey
Definition
TrackParametersKVU.h:72
SG::ReadHandleKey< xAOD::TrackParticleContainer >
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
Generated on
for ATLAS Offline Software by
1.17.0