ATLAS Offline Software
Loading...
Searching...
No Matches
MdtSegmentSeedGenerator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef MUONR4_MUONPATTERNHELPERS_MDTSEGMENTSEEDGENERATOR_H
5#define MUONR4_MUONPATTERNHELPERS_MDTSEGMENTSEEDGENERATOR_H
6
9
10
11#include "Acts/Seeding/CompositeSpacePointLineSeeder.hpp"
12namespace MuonR4{
14 class SegmentSeed;
15}
16
17namespace MuonR4::SegmentFit {
18
22 protected:
24 explicit SeederStateBase(const SegmentSeed* parentSeed,
25 const ISpacePointCalibrator* calibrator,
26 const bool calibratedPull);
27 public:
29 using CalibCont_t = std::vector<std::unique_ptr<CalibratedSpacePoint>>;
31 const SegmentSeed* parent() const;
34 bool goodCandidate(const SpacePoint& testMdt) const;
41 double candidateChi2(const Acts::CalibrationContext& cctx,
42 const Amg::Vector3D& seedPos,
43 const Amg::Vector3D& seedDir,
44 const double t0,
45 const SpacePoint& candidate) const;
48 double strawRadius(const SpacePoint& testMdt) const;
51 CalibCont_t newContainer(const Acts::CalibrationContext& cctx) const;
60 void append(const Acts::CalibrationContext& cctx,
61 const Amg::Vector3D& pos,
62 const Amg::Vector3D& dir,
63 const double t0,
64 const SpacePoint& appendMe,
65 CalibCont_t& appendTo) const;
70 bool stopSeeding(const std::size_t lowerLayer,
71 const std::size_t upperLayer) const;
72 private:
75 bool m_calibratePull{false};
76 };
77 static_assert(Acts::Experimental::detail::CompSpacePointSeederDelegate<SeederStateBase,
80
81
87
88 class MdtSegmentSeedGenerator: public Acts::Experimental::CompositeSpacePointLineSeeder {
89 public:
90 using LineSeeder_t = Acts::Experimental::CompositeSpacePointLineSeeder;
92
95 using LineSeeder_t::LineSeeder_t;
97 using State_t = SeedingState<HitVec_t, CalibCont_t, SeederStateBase>;
100 };
101}
102#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
SpacePointPerLayerSplitter::HitVec HitVec_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.
SeederStateBase(const SegmentSeed *parentSeed, const ISpacePointCalibrator *calibrator, const bool calibratedPull)
Protected constructor to instantiate the.
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.
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.
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.
std::vector< std::unique_ptr< CalibratedSpacePoint > > 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.