-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Free parameter estimation from seed (#3832)
This is a generalization of the bound version `estimateTrackParamsFromSeed`. From the interface one can see what information is really necessary to estimate parameters ```c++ FreeVector estimateTrackParamsFromSeed(const Vector3& sp0, const Vector3& sp1, const Vector3& sp2, const Vector3& bField); template <typename spacepoint_iterator_t> FreeVector estimateTrackParamsFromSeed(spacepoint_iterator_t spBegin, spacepoint_iterator_t spEnd, const Vector3& bField) { ``` vs ```c++ template <typename spacepoint_iterator_t> std::optional<BoundVector> estimateTrackParamsFromSeed( const GeometryContext& gctx, spacepoint_iterator_t spBegin, spacepoint_iterator_t spEnd, const Surface& surface, const Vector3& bField, ActsScalar bFieldMin, const Acts::Logger& logger = getDummyLogger()) { ``` Originally I wanted to make use of this new version inside the bound version but I ended up doing a different error handling which is also more generic IMO. We can unify this with the next breaking change. I would propose to drop the bound version completely and let the user deal with the global to local conversion which makes it very explicit that one needs a surface to put the parameters on. A propagator can then be used to extrapolate parameters to a different reference surface.
- Loading branch information
Showing
3 changed files
with
167 additions
and
8 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
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
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