Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Sherwood
athena
Commits
f5801622
Commit
f5801622
authored
4 years ago
by
Bastian Schlag
Browse files
Options
Downloads
Patches
Plain Diff
fix mem leak in acts vertexing
parent
16dcd668
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tracking/Acts/ActsPriVtxFinder/src/ActsAdaptiveMultiPriVtxFinderTool.cxx
+8
-8
8 additions, 8 deletions
...ctsPriVtxFinder/src/ActsAdaptiveMultiPriVtxFinderTool.cxx
with
8 additions
and
8 deletions
Tracking/Acts/ActsPriVtxFinder/src/ActsAdaptiveMultiPriVtxFinderTool.cxx
+
8
−
8
View file @
f5801622
...
...
@@ -47,7 +47,7 @@ namespace
StatusCode
ActsAdaptiveMultiPriVtxFinderTool
::
initialize
()
{
using
namespace
std
::
literals
::
string_literals
;
using
namespace
std
::
literals
::
string_literals
;
ATH_CHECK
(
m_beamSpotKey
.
initialize
());
ATH_CHECK
(
m_trkFilter
.
retrieve
());
...
...
@@ -66,7 +66,7 @@ ActsAdaptiveMultiPriVtxFinderTool::initialize()
auto
stepper
=
Acts
::
EigenStepper
<
BField_t
>
(
std
::
move
(
bField
));
auto
propagator
=
std
::
make_shared
<
Propagator
>
(
std
::
move
(
stepper
),
std
::
move
(
navigator
));
// IP Estimator
// IP Estimator
using
IPEstimator
=
Acts
::
ImpactPointEstimator
<
TrackWrapper
,
Propagator
>
;
IPEstimator
::
Config
ipEstCfg
(
bField
,
propagator
);
ipEstCfg
.
maxIterations
=
m_ipEstMaxIterations
;
...
...
@@ -92,7 +92,7 @@ ActsAdaptiveMultiPriVtxFinderTool::initialize()
fitterCfg
.
doSmoothing
=
m_fitterDoSmoothing
;
VertexFitter
fitter
(
fitterCfg
,
extractParameters
);
// Linearizer for Acts::BoundParameters type test
// Linearizer for Acts::BoundParameters type test
TrackLinearizer
::
Config
ltConfig
(
bField
,
propagator
);
TrackLinearizer
linearizer
(
ltConfig
);
...
...
@@ -322,15 +322,15 @@ ActsAdaptiveMultiPriVtxFinderTool::findVertex(const EventContext& ctx, std::vect
}
Trk
::
Perigee
*
fittedPerigee
=
actsBoundToTrkPerigee
(
trk
.
fittedParams
,
beamSpotPos
);
Trk
::
Perigee
*
originalPerigee
=
actsBoundToTrkPerigee
((
trk
.
originalParams
)
->
parameters
(),
beamSpotPos
);
T
rk
::
VxTrackAtVertex
trkAtVtx
(
trk
.
chi2Track
,
fittedPerigee
,
originalPerigee
);
Trk
::
VxTrackAtVertex
trkAtVtx
((
trk
.
originalParams
)
->
trackLink
()
->
clone
()
);
trkAtVtx
.
setPerigeeAtVertex
(
fittedPerigee
);
t
rk
AtVtx
.
setTrackQuality
(
Trk
::
FitQuality
(
trk
.
chi2Track
,
trk
.
ndf
)
);
trkAtVtx
.
setVtxCompatibility
(
trk
.
vertexCompatibility
);
trkAtVtx
.
setWeight
(
trk
.
trackWeight
);
trkAtVtxVec
->
push_back
(
trkAtVtx
);
Trk
::
LinkToXAODTrackParticle
*
linkToXAODTP
=
dynamic_cast
<
Trk
::
LinkToXAODTrackParticle
*>
((
trk
.
originalParams
)
->
trackLink
()
->
clone
()
);
const
Trk
::
LinkToXAODTrackParticle
*
linkToXAODTP
=
dynamic_cast
<
const
Trk
::
LinkToXAODTrackParticle
*>
((
trk
.
originalParams
)
->
trackLink
());
if
(
linkToXAODTP
)
{
xAODVtx
->
addTrackAtVertex
(
*
linkToXAODTP
,
trk
.
trackWeight
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment