ATLAS Offline Software
Loading...
Searching...
No Matches
MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t > Struct Template Reference

#include <MeasurementSelector.h>

Inheritance diagram for MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >:
Collaboration diagram for MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >:

Classes

struct  CalibratedMeasurementTraits

Public Types

using T_BoundState = MeasurementSelectorTraits<derived_t>::BoundState
using TrackStateProxy = MeasurementSelectorTraits<derived_t>::TrackStateProxy
using abstract_measurement_range_t = MeasurementSelectorTraits<derived_t>::abstract_measurement_range_t
template<std::size_t DIM, typename measurement_t>
using PreCalibrator
template<std::size_t DIM, typename measurement_t>
using PostCalibrator
using Base = MeasurementSelectorBase< NMeasMax, MeasurementSelectorTraits<derived_t>::s_dimMax, derived_t>
using trajectory_t = typename Base::trajectory_t
using Config
using traits

Public Member Functions

template<std::size_t DIM>
ParameterMapping::type< DIM > parameterMap (const Acts::GeometryContext &, const Acts::CalibrationContext &, const Acts::Surface &)
template<std::size_t DIM, typename measurement_t>
const PostCalibrator< DIM, measurement_t > & postCalibrator () const
 the calibrator used after the measurement selection which does not have to be "connected"
template<std::size_t DIM, typename measurement_t>
const PreCalibrator< DIM, measurement_t > & preCalibrator () const
std::tuple< const measurement_container_variant_t &, abstract_measurement_range_tcontainerAndRange (const Acts::Surface &surface) const
 Get container and index range for measurements on the given surface.
bool expectMeasurements (const Acts::Surface &surface, const measurement_container_variant_t *container_variant_ptr, const abstract_measurement_range_t &abstract_range) const
Acts::Result< boost::container::small_vector< typename TrackStateProxy::IndexType, s_maxBranchesPerSurface > > createTrackStates (const Acts::GeometryContext &geometryContext, const Acts::CalibrationContext &calibrationContext, const Acts::Surface &surface, const T_BoundState &boundState, typename TrackStateProxy::IndexType prevTip, std::vector< TrackStateProxy > &trackStateCandidates, trajectory_t &trajectory, const Acts::Logger &logger) const
std::tuple< std::size_t, std::pair< float, float > > getCuts (const Acts::Surface &surface, const T_BoundState &boundState, const Acts::Logger &logger) const

Static Public Member Functions

static const MeasurementSelectorTraits< derived_t >::BoundTrackParameters & boundParams (const T_BoundState &boundState)
static const MeasurementSelectorTraits< derived_t >::BoundMatrix & boundJacobiMatrix (const T_BoundState &boundState)
static double pathLength (const T_BoundState &boundState)
template<typename T>
static const auto & forwardToCalibrator (const T &a)
template<typename measurement_container_t>
static auto rangeForContainer (const measurement_container_t &concrete_container, const abstract_measurement_range_t &abstract_range)
 Create a range over elements of the given container from an abstract range.
static constexpr std::size_t dimMax ()

Public Attributes

Config m_config

Static Public Attributes

static constexpr std::size_t s_maxBranchesPerSurface = Base::s_maxBranchesPerSurface

Protected Member Functions

const derived_t & derived () const
unsigned int makeOutlierFlag (bool value)
Acts::Result< boost::container::small_vector< typename TrackStateProxy::IndexType, s_maxBranchesPerSurface > > selectMeasurementsCreateTrackStates (const Acts::GeometryContext &geometryContext, const Acts::CalibrationContext &calibrationContext, const Acts::Surface &surface, const T_BoundState &boundState, T_MeasurementRange &&measurement_range, std::size_t prevTip, trajectory_t &trajectory, const Acts::Logger &logger, const std::size_t numMeasurementsCut, const std::pair< float, float > &maxChi2Cut, bool forced) const

Static Protected Member Functions

static void createStates (std::size_t n_new_states, const T_BoundState &boundState, std::size_t prevTip, trajectory_t &trajectory, const Acts::BoundSubspaceIndices &subspaceIndices, boost::container::small_vector< typename TrackStateProxy::IndexType, s_maxBranchesPerSurface > &track_states, const Acts::Logger &logger, bool outlier_states)
static std::size_t getEtaBin (const parameters_t &boundParameters, const std::vector< float > &etaBins)

Detailed Description

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
struct MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >

Definition at line 799 of file MeasurementSelector.h.

Member Typedef Documentation

◆ abstract_measurement_range_t

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
using MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::abstract_measurement_range_t = MeasurementSelectorTraits<derived_t>::abstract_measurement_range_t

Definition at line 802 of file MeasurementSelector.h.

◆ Base

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
using MeasurementSelectorWithDispatch< NMeasMax, derived_t, measurement_container_variant_t >::Base = MeasurementSelectorBase< NMeasMax, MeasurementSelectorTraits<derived_t>::s_dimMax, derived_t>
inherited

Definition at line 722 of file MeasurementSelector.h.

◆ Config

using MeasurementSelectorBase< NMeasMax, DIMMAX, derived_t >::Config
inherited

Definition at line 323 of file MeasurementSelector.h.

◆ PostCalibrator

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
template<std::size_t DIM, typename measurement_t>
using MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::PostCalibrator
Initial value:
Acts::Delegate<
void
(const Acts::GeometryContext&,
const Acts::CalibrationContext&,
const measurement_t &,
MeasurementSelectorTraits< derived_t >::TrackStateProxy TrackStateProxy

Definition at line 867 of file MeasurementSelector.h.

◆ PreCalibrator

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
template<std::size_t DIM, typename measurement_t>
using MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::PreCalibrator
Initial value:
Acts::Delegate<
std::tuple < typename MeasurementSelectorTraits<derived_t>::template PreSelectionMeasurement<DIM>,
typename MeasurementSelectorTraits<derived_t>::template PreSelectionMeasurementCovariance<DIM>,
unsigned int>
(const Acts::GeometryContext&,
const Acts::CalibrationContext&,
const Acts::Surface&,
const measurement_t &,
Acts::BoundTrackParameters BoundTrackParameters

Definition at line 854 of file MeasurementSelector.h.

◆ T_BoundState

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
using MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::T_BoundState = MeasurementSelectorTraits<derived_t>::BoundState

Definition at line 800 of file MeasurementSelector.h.

◆ TrackStateProxy

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
using MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::TrackStateProxy = MeasurementSelectorTraits<derived_t>::TrackStateProxy

Definition at line 801 of file MeasurementSelector.h.

◆ traits

using MeasurementSelectorBase< NMeasMax, DIMMAX, derived_t >::traits
inherited

Definition at line 324 of file MeasurementSelector.h.

◆ trajectory_t

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
using MeasurementSelectorWithDispatch< NMeasMax, derived_t, measurement_container_variant_t >::trajectory_t = typename Base::trajectory_t
inherited

Definition at line 724 of file MeasurementSelector.h.

Member Function Documentation

◆ boundJacobiMatrix()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
const MeasurementSelectorTraits< derived_t >::BoundMatrix & MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::boundJacobiMatrix ( const T_BoundState & boundState)
inlinestatic

Definition at line 810 of file MeasurementSelector.h.

◆ boundParams()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
const MeasurementSelectorTraits< derived_t >::BoundTrackParameters & MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::boundParams ( const T_BoundState & boundState)
inlinestatic

Definition at line 805 of file MeasurementSelector.h.

805 {
806 return std::get<0>(boundState);
807 }

◆ containerAndRange()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
std::tuple< const measurement_container_variant_t &, abstract_measurement_range_t > MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::containerAndRange ( const Acts::Surface & surface) const

Get container and index range for measurements on the given surface.

Returns
tuple of container, begin index and end index
Note
return a tuple containing a measurement container variant for the given surface and the index range for measurements on that surface. The index range may be empty.

◆ createStates()

void MeasurementSelectorBase< NMeasMax, DIMMAX, derived_t >::createStates ( std::size_t n_new_states,
const T_BoundState & boundState,
std::size_t prevTip,
trajectory_t & trajectory,
const Acts::BoundSubspaceIndices & subspaceIndices,
boost::container::small_vector< typename TrackStateProxy::IndexType, s_maxBranchesPerSurface > & track_states,
const Acts::Logger & logger,
bool outlier_states )
inlinestaticprotectedinherited

Definition at line 360 of file MeasurementSelector.h.

367 {
368 // create track states for all compatible measurement candidates
371
373
374 track_states.reserve( n_new_states );
377 for (unsigned int state_i=0; state_i<n_new_states; ++state_i) {
379
380 if (firstTrackState.has_value()) {
381 // subsequent track states don't need storage for these as they will
382 // be shared
384 }
385
386 if (outlier_states) {
387 // outlier won't have separate filtered parameters
389 }
390
392 ACTS_VERBOSE("Create SourceLink output track state #"
393 << trackState.index() << " with mask: " << mask);
394
395 if (firstTrackState.has_value()) {
398 }
399 else {
400 // only set these for first
401 trackState.predicted() = boundParams.parameters();
402 if (boundParams.covariance()) {
403 trackState.predictedCovariance() = *boundParams.covariance();
404 }
407 }
408 trackState.pathLength() = pathLength;
409
410 trackState.setReferenceSurface(boundParams.referenceSurface().getSharedPtr());
411
412 trackState.setProjectorSubspaceIndices(subspaceIndices);
413
414 auto typeFlags = trackState.typeFlags();
415 if (trackState.referenceSurface().surfaceMaterial() != nullptr) {
416 typeFlags.setHasMaterial();
417 }
418 typeFlags.setHasParameters();
419
420 // @TODO these track states still need some additional processing. Should there be a special
421 // flag for this ?
422 track_states.push_back( trackState.index());
423 }
424 }

◆ createTrackStates()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
Acts::Result< boost::container::small_vector< typename TrackStateProxy::IndexType, s_maxBranchesPerSurface > > MeasurementSelectorWithDispatch< NMeasMax, derived_t, measurement_container_variant_t >::createTrackStates ( const Acts::GeometryContext & geometryContext,
const Acts::CalibrationContext & calibrationContext,
const Acts::Surface & surface,
const T_BoundState & boundState,
typename TrackStateProxy::IndexType prevTip,
std::vector< TrackStateProxy > & trackStateCandidates,
trajectory_t & trajectory,
const Acts::Logger & logger ) const
inlineinherited

Definition at line 734 of file MeasurementSelector.h.

741 {
742
745 // get associated measurement container and the relevant measurement range for the given surface.
746 auto [a_measurement_container_variant_ptr, range, forced] = this->derived().containerAndRange(surface);
749 return result;
750 }
751 if (!range.empty()) {
753 // numMeasurementsCut is == 0 in case getCuts failed
754 // anyway cannot select anything if numMeasurementsCut==0;
755 if (numMeasurementsCut>0) {
756
757 result = std::visit( [this,
760 &surface,
761 &boundState,
762 &range,
763 prevTip,
764 &trajectory,
765 &logger,
767 &maxChi2Cut,
770 constexpr std::size_t DIM = ArgType::dimension();
772 return
773 this->template
776 surface,
779 prevTip,
781 logger,
784 forced);
785 },
787 }
788 }
789 else {
791 }
792 return result;
793 }
std::tuple< std::size_t, std::pair< float, float > > getCuts(const Acts::Surface &surface, const T_BoundState &boundState, const Acts::Logger &logger) const
Acts::Result< boost::container::small_vector< typename TrackStateProxy::IndexType, s_maxBranchesPerSurface > > selectMeasurementsCreateTrackStates(const Acts::GeometryContext &geometryContext, const Acts::CalibrationContext &calibrationContext, const Acts::Surface &surface, const T_BoundState &boundState, T_MeasurementRange &&measurement_range, std::size_t prevTip, trajectory_t &trajectory, const Acts::Logger &logger, const std::size_t numMeasurementsCut, const std::pair< float, float > &maxChi2Cut, bool forced) const

◆ derived()

const derived_t & MeasurementSelectorBase< NMeasMax, DIMMAX, derived_t >::derived ( ) const
inlineprotectedinherited

Definition at line 334 of file MeasurementSelector.h.

334{ return *static_cast<const derived_t *>(this); }

◆ dimMax()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
constexpr std::size_t MeasurementSelectorWithDispatch< NMeasMax, derived_t, measurement_container_variant_t >::dimMax ( )
inlinestaticconstexprinherited

Definition at line 729 of file MeasurementSelector.h.

◆ expectMeasurements()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
bool MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::expectMeasurements ( const Acts::Surface & surface,
const measurement_container_variant_t * container_variant_ptr,
const abstract_measurement_range_t & abstract_range ) const
Parameters
surfacea surface
container_variant_ptrabstract measurement container as returned by containerAndRange
abstract_rangethe range as returned by containerAndRange for the given surface
Returns
true if measurements are expected, false if the surface is not supposed to have valid measurements.

◆ forwardToCalibrator()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
template<typename T>
const auto & MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::forwardToCalibrator ( const T & a)
inlinestatic

Definition at line 822 of file MeasurementSelector.h.

822 {
824 return a;
825 }
826 else {
827 return *a;
828 }
829 }

◆ getCuts()

std::tuple< std::size_t, std::pair< float, float > > MeasurementSelectorBase< NMeasMax, DIMMAX, derived_t >::getCuts ( const Acts::Surface & surface,
const T_BoundState & boundState,
const Acts::Logger & logger ) const
inlineinherited

Definition at line 673 of file MeasurementSelector.h.

675 {
679 // Get geoID of this surface
680 auto geoID = surface.geometryId();
681 // Find the appropriate cuts
682 auto cuts = m_config.find(geoID);
683 if (cuts == m_config.end()) {
684 // indicates failure
686 }
687 else {
688 // num measurement Cut
689 // getchi2 cut
691 numMeasurementsCut = (!cuts->numMeasurementsCutOff.empty()
692 ? cuts->numMeasurementsCutOff[ std::min(cuts->numMeasurementsCutOff.size()-1, eta_bin) ]
693 : NMeasMax);
694 maxChi2Cut = ! cuts->chi2CutOff.empty()
695 ? cuts->chi2CutOff[ std::min(cuts->chi2CutOff.size()-1, eta_bin) ]
698 ACTS_VERBOSE("Get cut for eta-bin="
700 << ": chi2 (max,max-outlier) " << maxChi2Cut.first << ", " << maxChi2Cut.second
701 << " max.meas." << numMeasurementsCut);
702 }
703 return result;
704 }

◆ getEtaBin()

std::size_t MeasurementSelectorBase< NMeasMax, DIMMAX, derived_t >::getEtaBin ( const parameters_t & boundParameters,
const std::vector< float > & etaBins )
inlinestaticprotectedinherited

Definition at line 654 of file MeasurementSelector.h.

655 {
656 if (etaBins.empty()) {
657 return 0u; // shortcut if no etaBins
658 }
659 const float eta = std::abs(std::atanh(std::cos(boundParameters.parameters()[Acts::eBoundTheta])));
660 std::size_t bin = 0;
661 for (auto etaBin : etaBins) {
662 if (etaBin >= eta) {
663 break;
664 }
665 bin++;
666 }
667 return bin;
668 }

◆ makeOutlierFlag()

unsigned int MeasurementSelectorBase< NMeasMax, DIMMAX, derived_t >::makeOutlierFlag ( bool value)
inlineprotectedinherited

Definition at line 446 of file MeasurementSelector.h.

446{ return static_cast<unsigned int>(value)<<2u; }

◆ parameterMap()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
template<std::size_t DIM>
ParameterMapping::type< DIM > MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::parameterMap ( const Acts::GeometryContext & ,
const Acts::CalibrationContext & ,
const Acts::Surface &  )
inline

Definition at line 838 of file MeasurementSelector.h.

840 {
842 }
static constexpr type< N > identity()

◆ pathLength()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
double MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::pathLength ( const T_BoundState & boundState)
inlinestatic

Definition at line 814 of file MeasurementSelector.h.

814 {
815 return std::get<2>(boundState);
816 }

◆ postCalibrator()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
template<std::size_t DIM, typename measurement_t>
const PostCalibrator< DIM, measurement_t > & MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::postCalibrator ( ) const

the calibrator used after the measurement selection which does not have to be "connected"

Note
The return value does not have to be a delegate, it can be an arbitrary functor/lambda, which however must be castable to bool to test whether there is a postCalibrator

◆ preCalibrator()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
template<std::size_t DIM, typename measurement_t>
const PreCalibrator< DIM, measurement_t > & MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::preCalibrator ( ) const
Note
The return value does not have to be a delegate, it can be an arbitrary functor/lambda,

◆ rangeForContainer()

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
template<typename measurement_container_t>
auto MeasurementSelectorBaseImpl< NMeasMax, derived_t, measurement_container_variant_t >::rangeForContainer ( const measurement_container_t & concrete_container,
const abstract_measurement_range_t & abstract_range )
static

Create a range over elements of the given container from an abstract range.

Template Parameters
measurement_container_ta concrete container type which is one of one of the possible types of measurement_container_variant_t
Parameters
abstract_rangethe range as returned by containerAndRange
Returns
an itrerable range over elements of the given specified by the abstract range.

◆ selectMeasurementsCreateTrackStates()

Acts::Result< boost::container::small_vector< typename TrackStateProxy::IndexType, s_maxBranchesPerSurface > > MeasurementSelectorBase< NMeasMax, DIMMAX, derived_t >::selectMeasurementsCreateTrackStates ( const Acts::GeometryContext & geometryContext,
const Acts::CalibrationContext & calibrationContext,
const Acts::Surface & surface,
const T_BoundState & boundState,
T_MeasurementRange && measurement_range,
std::size_t prevTip,
trajectory_t & trajectory,
const Acts::Logger & logger,
const std::size_t numMeasurementsCut,
const std::pair< float, float > & maxChi2Cut,
bool forced ) const
inlineprotectedinherited

Definition at line 464 of file MeasurementSelector.h.

474 {
477
478 using iterator_t = decltype(measurement_range.begin());
481 // get calibrator
484
487
488
489
490 // get prediction in the measurement domain
493 surface);
494 auto predicted
499
500 // select n measurents with the smallest chi2.
504 for ( const auto &measurement : measurement_range ) {
506 if (forced && postCalibrator) {
507 // skip preCalibrator and computeChi2, by doing everything else. We start with what's done if no preCalibrator.
508 const auto &m = derived().forwardToCalibrator(measurement);
509 matching_measurement.m_measurement = std::make_tuple( m.template localPosition<DIM>(), m.template localCovariance<DIM>(), 0u );
510 matching_measurement.m_chi2 = 0.0f;
512 if (!selected_measurements.acceptNoSort()) break;
513 } else {
516 surface,
519 matching_measurement.m_chi2 = computeChi2(matching_measurement.m_measurement.position(),
520 matching_measurement.m_measurement.covariance(),
521 predicted.first,
522 predicted.second);
523 // only consider measurements which pass the outlier chi2 cut
524 if (matching_measurement.m_chi2<maxChi2Cut.second) {
526 selected_measurements.acceptAndSort([](const TheMatchingMeasurement &a,
527 const TheMatchingMeasurement &b) {
528 return a.m_chi2 < b.m_chi2;
529 });
530 }
531 }
532 }
533
534 if (selected_measurements.empty()) {
535 auto config_for_surface = m_config.find(surface.geometryId());
536 if (config_for_surface != m_config.end()) {
537 if (config_for_surface->edgeTolerance.has_value()) {
538 // if the prediction failes the bound test, where the edgeTolerance is expected to be negative
539 // then the "hole" is considered to be an edge hole which is not treated as a hole.
540 auto local_coords = derived().boundParams(boundState).parameters().template block<2,1>(0,0);
541 if (!surface.insideBounds(local_coords,config_for_surface->edgeTolerance.value())) {
543 }
544 }
545 }
546 }
547 else {
548
549 // apply final calibration to n-best measurements
550 // First Create states without setting information about the calibrated measurement for the selected measurements
551 // @TODO first create state then copy measurements, or crete state by state and set measurements ?
552 // the lastter has the "advantage" that the outlier flag can be set individually
553 // the former has the advantage that part of the state creation code is independent of the
554 // the measurement.
555
560 prevTip,
563 *result,
564 logger,
565 (!selected_measurements.empty()
566 ? selected_measurements.getSlot( *(selected_measurements.begin())).m_measurement.flags().isOutlier() || postCalibrator
567 : false) );
568 assert( result->size() == selected_measurements.size() );
569
570 if (postCalibrator) {
571 // either run post selection calibrator which will set the calibrated position and covariance
572 // directly to the state.
573 auto predicted_pos_dbl = predicted.first.template cast<double>();
574 auto predicted_cov_dbl = predicted.second.template cast<double>();
575 unsigned int state_i=0u;
579 TrackStateProxy trackState( trajectory.getTrackState( (*result)[state_i] ) );
582
583 // apply the calibration
586 derived().forwardToCalibrator(a_selected_measurement.m_sourceLink.value()),
588 );
589 // update chi2 using calibrated measurement
594 // ... and set outlier flag
595 // and share or create storage for filtered.
596 bool is_outlier = !forced && trackState.chi2() >= maxChi2Cut.first;
597 if (is_outlier) {
598 trackState.typeFlags().setIsOutlier();
601 } else {
602 trackState.typeFlags().setIsMeasurement();
604 }
605 ++state_i;
606 }
607 }
608 else {
609 // or copy the pre-selection calibrated position and covariance to the
610 // track states and adjust the flags.
611 unsigned int state_i=0u;
615 TrackStateProxy trackState( trajectory.getTrackState( (*result)[state_i] ) );
617
618 bool is_outlier = !forced && a_selected_measurement.m_chi2 >= maxChi2Cut.first;
619 auto type_flags = trackState.typeFlags();
620 if (is_outlier) {
621 // the filtered parameters will not be computed for outliers, so has to be shared from the prediction.
622 type_flags.setIsOutlier();
625 } else {
626 // for measurements the filtered parameters will be computed, so space needs to be allocated.
627 type_flags.setIsMeasurement();
629 }
630 if (a_selected_measurement.m_measurement.flags().isSplitHit()) {
631 type_flags.setIsSplitHit();
632 }
633
635 ::pack(std::move(a_selected_measurement.m_sourceLink.value())));
636
637 trackState.allocateCalibrated(DIM);
638 trackState.template calibrated<DIM>()
640 ::MatrixFloatType>(a_selected_measurement.m_measurement.position());
643 ::MatrixFloatType>(a_selected_measurement.m_measurement.covariance());
644 trackState.chi2() = a_selected_measurement.m_chi2;
645 ++state_i;
646 }
647 }
648 }
649
650 return result;
651 }
double computeChi2(const measurement_vector_t &a, const measurement_cov_matrix_t &a_cov, const predicted_vector_t &b, const predicted_cov_matrix_t &b_cov)
size_t size() const
Number of registered mappings.

Member Data Documentation

◆ m_config

Config MeasurementSelectorBase< NMeasMax, DIMMAX, derived_t >::m_config
inherited

Definition at line 326 of file MeasurementSelector.h.

◆ s_maxBranchesPerSurface

template<std::size_t NMeasMax, typename derived_t, typename measurement_container_variant_t>
std::size_t MeasurementSelectorWithDispatch< NMeasMax, derived_t, measurement_container_variant_t >::s_maxBranchesPerSurface = Base::s_maxBranchesPerSurface
staticconstexprinherited

Definition at line 726 of file MeasurementSelector.h.


The documentation for this struct was generated from the following file: