forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
factorize fit function in vertex test.
- Loading branch information
1 parent
1a2deaf
commit c8fc009
Showing
3 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
Tests/UnitTests/Core/Vertexing/AdaptiveMultiVertexFinderTestsHelper.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// This file is part of the Acts project. | ||
// | ||
// Copyright (C) 2023 CERN for the benefit of the Acts project | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
#include "Acts/EventData/TrackParameters.hpp" | ||
#include "Acts/Propagator/EigenStepper.hpp" | ||
#include "Acts/Vertexing/AdaptiveMultiVertexFinder.hpp" | ||
#include "Acts/Vertexing/AdaptiveMultiVertexFitter.hpp" | ||
#include "Acts/Vertexing/GaussianTrackDensity.hpp" | ||
#include "Acts/Vertexing/HelicalTrackLinearizer.hpp" | ||
#include "Acts/Vertexing/TrackDensityVertexFinder.hpp" | ||
#include "Acts/Vertexing/Vertex.hpp" | ||
#include "Acts/Vertexing/VertexingOptions.hpp" | ||
|
||
namespace Acts::Test { | ||
|
||
namespace BoundAmvf { | ||
using Propagator = Acts::Propagator<EigenStepper<>>; | ||
using Linearizer = HelicalTrackLinearizer<Propagator>; | ||
using Fitter = AdaptiveMultiVertexFitter<BoundTrackParameters, Linearizer>; | ||
using SeedFinder = | ||
TrackDensityVertexFinder<Fitter, | ||
GaussianTrackDensity<BoundTrackParameters>>; | ||
using Finder = AdaptiveMultiVertexFinder<Fitter, SeedFinder>; | ||
} // namespace BoundAmvf | ||
|
||
// template <typename input_track_t, typename finder_t> | ||
// Result<std::vector<Vertex<input_track_t>>> find_impl( | ||
// const finder_t& finder, const std::vector<const input_track_t*>& allTracks, | ||
// const VertexingOptions<input_track_t>& vertexingOptions, | ||
// typename finder_t::state_t& state) { | ||
// return finder.find(allTracks, vertexingOptions, state); | ||
// } | ||
|
||
Result<std::vector<Vertex<BoundTrackParameters>>> find( | ||
const BoundAmvf::Finder& finder, | ||
const std::vector<const BoundTrackParameters*>& allTracks, | ||
const VertexingOptions<BoundTrackParameters>& vertexingOptions, | ||
BoundAmvf::Finder::State& state) { | ||
return finder.find(allTracks, vertexingOptions, state); | ||
} | ||
|
||
} // namespace Acts::Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters