ATLAS Offline Software
Loading...
Searching...
No Matches
MdtSegmentSeedGenerator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef MUONR4_MUONPATTERNHELPERS_MDTSEGMENTSEEDGENERATOR_H
5#define MUONR4_MUONPATTERNHELPERS_MDTSEGMENTSEEDGENERATOR_H
6
10
11#include "Acts/Seeding/CompositeSpacePointLineSeeder.hpp"
12namespace MuonR4{
14 class SegmentSeed;
15}
16
17namespace MuonR4::SegmentFit {
18
23 protected:
26 using SeedSelector_t = std::function<bool(const Amg::Vector3D& pos,
27 const Amg::Vector3D& dir)>;
39 explicit SeederStateBase(const SegmentSeed* parentSeed,
40 const ISpacePointCalibrator* calibrator,
41 const bool calibratedPull,
42 SeedSelector_t&& seedSelector = nullptr);
43 public:
47 const SegmentSeed* parent() const;
50 bool goodCandidate(const SpacePoint& testMdt) const;
57 double candidateChi2(const Acts::CalibrationContext& cctx,
58 const Amg::Vector3D& seedPos,
59 const Amg::Vector3D& seedDir,
60 const double t0,
61 const SpacePoint& candidate) const;
64 double strawRadius(const SpacePoint& testMdt) const;
67 CalibCont_t newContainer(const Acts::CalibrationContext& cctx) const;
76 void append(const Acts::CalibrationContext& cctx,
77 const Amg::Vector3D& pos,
78 const Amg::Vector3D& dir,
79 const double t0,
80 const SpacePoint& appendMe,
81 CalibCont_t& appendTo) const;
86 bool stopSeeding(const std::size_t lowerLayer,
87 const std::size_t upperLayer) const;
88
93 bool goodForSeeding(const Amg::Vector3D& tangentPos,
94 const Amg::Vector3D& tangentDir) const;
95 private:
98 bool m_calibratePull{false};
99 const SeedSelector_t m_selector{nullptr};
100 };
101 static_assert(Acts::Experimental::detail::CompSpacePointSeederDelegate<SeederStateBase,
104
105 static_assert(Acts::Experimental::detail::CompositeSpacePointSeedSelector<SeederStateBase>);
111
112 class MdtSegmentSeedGenerator: public Acts::Experimental::CompositeSpacePointLineSeeder {
113 public:
114 using LineSeeder_t = Acts::Experimental::CompositeSpacePointLineSeeder;
116
119 using LineSeeder_t::LineSeeder_t;
121 using State_t = SeedingState<HitVec_t, CalibCont_t, SeederStateBase>;
124 };
125}
126#endif
static Double_t t0
Interface class to refine the space point calibration with an external seed.
Helper class to generate valid seeds for the segment fit.
SeedingState< HitVec_t, CalibCont_t, SeederStateBase > State_t
Define the state holder object.
Acts::Experimental::CompositeSpacePointLineSeeder LineSeeder_t
SegmentSeed< CalibCont_t > Seed_t
Abrivation of the calibrated Seed type returned by the seeder.
Representation of a segment seed (a fully processed hough maximum) produced by the hough transform.
Definition SegmentSeed.h:14
std::vector< const SpacePoint * > HitVec
SpacePointPerLayerSplitter(const SpacePointBucket &bucket)
Constructor taking a complete bucket.
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
Eigen::Matrix< double, 3, 1 > Vector3D
This header ties the generic definitions in this package.
Helper struct to delegate the EDM interactions with the space point container during the seeding from...
SeederStateBase(const SegmentSeed *parentSeed, const ISpacePointCalibrator *calibrator, const bool calibratedPull, SeedSelector_t &&seedSelector=nullptr)
Protected constructor to prevent instantiation from anything else than the seeder state.
const ISpacePointCalibrator * m_calibrator
const SegmentSeed * parent() const
Returns the parent seed from which the state is constructed.
double candidateChi2(const Acts::CalibrationContext &cctx, const Amg::Vector3D &seedPos, const Amg::Vector3D &seedDir, const double t0, const SpacePoint &candidate) const
Returns the pull of the candidate w.r.t.
std::function< bool(const Amg::Vector3D &pos, const Amg::Vector3D &dir)> SeedSelector_t
Selector function to sort out seed lines that are incompatible with external geometrical constaints e...
double strawRadius(const SpacePoint &testMdt) const
Returns the outer tube radius of the space point.
bool goodCandidate(const SpacePoint &testMdt) const
Returns whether the hit is a good candidate for seeding.
bool goodForSeeding(const Amg::Vector3D &tangentPos, const Amg::Vector3D &tangentDir) const
Selector function to remove the two line tangent seed using external constaints (e....
void append(const Acts::CalibrationContext &cctx, const Amg::Vector3D &pos, const Amg::Vector3D &dir, const double t0, const SpacePoint &appendMe, CalibCont_t &appendTo) const
Appends the space point measurement to the candidate seed container Optionally, the hit may be calibr...
CalibCont_t newContainer(const Acts::CalibrationContext &cctx) const
Creates a new candidate seed container.
Segment::MeasVec CalibCont_t
Abrivation of the collection of calibrated space points.
bool stopSeeding(const std::size_t lowerLayer, const std::size_t upperLayer) const
Requests whether the seed line generation shall be stopped based on the pair of.