14#include "Acts/Surfaces/PerigeeSurface.hpp"
18#include <boost/math/distributions/chi_squared.hpp>
90 auto magneticField = std::make_unique<ATLASMagneticFieldWrapper>();
93 if(trackingGeometry->geometryVersion() == Acts::TrackingGeometry::GeometryVersion::Gen3) {
97 case Acts::toUnderlying(
ITkExit):
105 ATH_MSG_ERROR(
"Invalid configuration "<<m_envelopeConstraint);
106 return StatusCode::FAILURE;
112 detail::Navigator::Config
config{std::move(trackingGeometry)};
113 config.resolvePassive =
false;
114 config.resolveMaterial =
true;
115 config.resolveSensitive =
true;
123 std::vector<double> absEtaEdges;
124 if (m_etaBins.size() <= 2)
126 absEtaEdges.reserve(2ul);
127 absEtaEdges.push_back(0.0);
128 absEtaEdges.push_back(std::numeric_limits<double>::infinity());
132 absEtaEdges.reserve(m_etaBins.size());
133 absEtaEdges.push_back(m_absEtaMin);
134 absEtaEdges.insert(absEtaEdges.end(), m_etaBins.begin() + 1, m_etaBins.end() - 1);
135 absEtaEdges.push_back(m_absEtaMax);
138 auto setCut = [](
auto &cfgVal,
const auto &
cuts,
size_t ind) ->
void
145 Acts::TrackSelector::EtaBinnedConfig trackSelectorCfg{std::move(absEtaEdges)};
146 if (m_etaBins.size() <= 2)
148 assert(trackSelectorCfg.cutSets.size() == 1);
149 trackSelectorCfg.cutSets[0].absEtaMin = m_absEtaMin;
150 trackSelectorCfg.cutSets[0].absEtaMax = m_absEtaMax;
153 for (
auto &cfg : trackSelectorCfg.cutSets)
155 setCut(
cfg.phiMin, m_phiMin, cutIndex);
156 setCut(
cfg.phiMax, m_phiMax, cutIndex);
157 setCut(
cfg.etaMin, m_etaMin, cutIndex);
158 setCut(
cfg.etaMax, m_etaMax, cutIndex);
159 setCut(
cfg.ptMin, m_ptMin, cutIndex);
160 setCut(
cfg.ptMax, m_ptMax, cutIndex);
161 setCut(
cfg.loc0Min, m_d0Min, cutIndex);
162 setCut(
cfg.loc0Max, m_d0Max, cutIndex);
163 setCut(
cfg.loc1Min, m_z0Min, cutIndex);
164 setCut(
cfg.loc1Max, m_z0Max, cutIndex);
165 setCut(
cfg.minMeasurements, m_minMeasurements, cutIndex);
166 setCut(
cfg.maxHoles, m_maxHoles, cutIndex);
167 setCut(
cfg.maxOutliers, m_maxOutliers, cutIndex);
168 setCut(
cfg.maxHolesAndOutliers, m_maxHolesAndOutliers, cutIndex);
169 setCut(
cfg.maxSharedHits, m_maxSharedHits, cutIndex);
170 setCut(
cfg.maxChi2, m_maxChi2, cutIndex);
177 ATH_CHECK(initializeMeasurementSelector());
180 std::move(extrapolator),
183 Acts::TrackSelector{trackSelectorCfg}};
185 m_trackFinder = std::make_unique<CKF_pimpl>(std::move(ckfConfig));
191 return StatusCode::SUCCESS;
195 ATH_MSG_FATAL(
"execute() method from the base class was called! Implement proper execute() method in the derived class!");
197 return StatusCode::FAILURE;
203 return StatusCode::SUCCESS;
207 const EventContext &ctx,
222 measurementSelector->connect(&options.extensions.createTrackStates);
224 return measurementSelector;
228 const EventContext &ctx,
231 const Acts::PerigeeSurface* pSurface)
const {
232 Acts::PropagatorPlainOptions plainOptions{detContext.
geometry, detContext.
magField};
234 plainOptions.direction = Acts::Direction::Forward();
242 std::unique_ptr<ActsTrk::IMeasurementSelector> measurementSelector =
setMeasurementSelector(ctx, measurements, options);
244 Acts::PropagatorPlainOptions plainSecondOptions{detContext.
geometry, detContext.
magField};
246 plainSecondOptions.direction = plainOptions.direction.invert();
250 options.extensions, plainSecondOptions);
251 secondOptions.targetSurface = pSurface;
252 secondOptions.skipPrePropagationUpdate =
true;
255 return {std::move(options), std::move(secondOptions), std::move(measurementSelector)};
259 const auto &trackSelectorCfg =
trackFinder().trackSelector.config();
261 return (!(std::abs(
eta) < trackSelectorCfg.absEtaEdges.back())) ? trackSelectorCfg.cutSets.back()
262 : (std::abs(
eta) < trackSelectorCfg.absEtaEdges.front()) ? trackSelectorCfg.cutSets.front()
263 : trackSelectorCfg.getCuts(
eta);
266 std::vector<typename detail::RecoTrackContainer::TrackProxy>
275 if (!secondInitialParameters.referenceSurface().insideBounds(secondInitialParameters.localPosition())) {
282 ATH_MSG_VERBOSE(
"Original parameters before inflation: \n" << secondInitialParameters);
284 auto inflatedCovariance = secondInitialParameters.covariance().value();
287 const auto& origSurface = secondInitialParameters.referenceSurface();
288 auto surfacePtr =
const_cast<Acts::Surface&
>(origSurface).shared_from_this();
290 Acts::BoundTrackParameters newParams(
291 std::static_pointer_cast<const Acts::Surface>(std::move(surfacePtr)),
292 secondInitialParameters.parameters(),
293 std::make_optional(inflatedCovariance),
294 secondInitialParameters.particleHypothesis());
295 secondInitialParameters = std::move(newParams);
297 ATH_MSG_VERBOSE(
"Inflated covariance matrix : \n" << secondInitialParameters.covariance().value());
300 auto rootBranch = tracksContainerTemp.makeTrack();
301 rootBranch.copyFromWithoutStates(trackProxy);
305 trackFinder().ckf.findTracks(secondInitialParameters, options, tracksContainerTemp, rootBranch);
306 if (not secondResult.ok()) {
309 return secondResult.value();
313 if (trackState.hasReferenceSurface()) {
314 if (
const auto *actsDetElem =
dynamic_cast<const ISurfacePlacement*
>(trackState.referenceSurface().surfacePlacement())) {
315 switch (actsDetElem->detectorType()) {
331 const detail::RecoTrackContainer::TrackProxy &track,
332 const detail::RecoTrackContainer::TrackStateProxy &trackState,
333 const Acts::TrackSelector::EtaBinnedConfig &trackSelectorCfg,
334 const Acts::GeometryContext &tgContext,
336 const std::size_t typeIndex,
337 EventStats::value_type &event_stat_category_i)
const {
348 measurementIndex,
true);
352 return BranchStopperResult::Continue;
355 const auto ¶meters = trackState.hasFiltered() ? trackState.filtered()
356 : trackState.predicted();
357 double eta = -std::log(std::tan(0.5 * parameters[Acts::eBoundTheta]));
362 double pT = std::sin(parameters[Acts::eBoundTheta]) /
363 parameters[Acts::eBoundQOverP];
367 << pT <<
" after " << track.nMeasurements()
369 return BranchStopperResult::StopAndDrop;
375 !(std::abs(
eta) < trackSelectorCfg.absEtaEdges.back() +
379 <<
eta <<
" after " << track.nMeasurements()
381 return BranchStopperResult::StopAndDrop;
387 bool enoughMeasurements = (track.nMeasurements() >= minMeasurementsBranchStop);
388 bool tooManyHoles = (track.nHoles() > cutSet.maxHoles);
389 bool tooManyOutliers = (track.nOutliers() > cutSet.maxOutliers);
390 bool tooManyHolesAndOutliers = (track.nHoles() + track.nOutliers() > cutSet.maxHolesAndOutliers);
393 auto [enoughMeasurementsPS, tooManyHolesPS, tooManyOutliersPS] =
395 enoughMeasurements = enoughMeasurements && enoughMeasurementsPS;
396 tooManyHoles = tooManyHoles || tooManyHolesPS;
397 tooManyOutliers = tooManyOutliers || tooManyOutliersPS;
400 if (!(tooManyHoles || tooManyOutliers || tooManyHolesAndOutliers)) {
401 return BranchStopperResult::Continue;
404 if (!enoughMeasurements) {
410 << (enoughMeasurements ?
"keep" :
"drop")
411 <<
" branch with nHoles=" << track.nHoles() <<
" ("
415 <<
" hgtd), nOutliers=" << track.nOutliers() <<
" ("
419 <<
"), nMeasurements=" << track.nMeasurements() <<
" ("
425 << (enoughMeasurements ?
"keep" :
"drop")
426 <<
" branch with nHoles=" << track.nHoles()
427 <<
", nOutliers=" << track.nOutliers()
428 <<
", nMeasurements=" << track.nMeasurements());
431 return enoughMeasurements ? BranchStopperResult::StopAndKeep
432 : BranchStopperResult::StopAndDrop;
439 tracksContainer.addColumn<
unsigned int>(
"nPixelHits");
440 tracksContainer.addColumn<
unsigned int>(
"nStripHits");
441 tracksContainer.addColumn<
unsigned int>(
"nHgtdHits");
442 tracksContainer.addColumn<
unsigned int>(
"nPixelHoles");
443 tracksContainer.addColumn<
unsigned int>(
"nStripHoles");
444 tracksContainer.addColumn<
unsigned int>(
"nHgtdHoles");
445 tracksContainer.addColumn<
unsigned int>(
"nPixelOutliers");
446 tracksContainer.addColumn<
unsigned int>(
"nStripOutliers");
447 tracksContainer.addColumn<
unsigned int>(
"nHgtdOutliers");
466 const detail::RecoTrackContainer::TrackProxy &track,
469 if (typeFlags.isHole()) {
471 }
else if (typeFlags.isOutlier()) {
473 }
else if (typeFlags.isMeasurement()) {
477 if (typeFlags.isHole()) {
479 }
else if (typeFlags.isOutlier()) {
481 }
else if (typeFlags.isMeasurement()) {
485 if (typeFlags.isHole()) {
487 }
else if (typeFlags.isOutlier()) {
489 }
else if (typeFlags.isMeasurement()) {
499 ATH_MSG_WARNING(
"mismatched hit count: total (" << track.nMeasurements()
511 ATH_MSG_WARNING(
"mismatched outlier count: total (" << track.nOutliers()
519 bool enoughMeasurements =
true, tooManyHoles =
false, tooManyOutliers =
false;
520 const auto &trackSelectorCfg =
trackFinder().trackSelector.config();
521 std::size_t etaBin = (std::abs(
eta) < trackSelectorCfg.absEtaEdges.front()) ? 0
522 : (std::abs(
eta) >= trackSelectorCfg.absEtaEdges.back()) ? trackSelectorCfg.absEtaEdges.size() - 1
523 : trackSelectorCfg.binIndex(
eta);
524 auto cutMin = [etaBin](std::size_t val,
const std::vector<std::size_t> &cutSet) {
525 return !cutSet.empty() && (val < (etaBin < cutSet.size() ? cutSet[etaBin] : cutSet.back()));
527 auto cutMax = [etaBin](std::size_t val,
const std::vector<std::size_t> &cutSet) {
528 return !cutSet.empty() && (val > (etaBin < cutSet.size() ? cutSet[etaBin] : cutSet.back()));
541 return {enoughMeasurements, tooManyHoles, tooManyOutliers};
549 chi2CutOffOutlier.reserve( cutOff.size() );
550 if (!outlierCutOff.empty()) {
551 if (cutOff.size() != outlierCutOff.size()) {
552 ATH_MSG_ERROR(
"Outlier chi2 cut off provided but number of elements does not agree with"
553 " chi2 cut off for measurements which however is required: "
554 << cutOff.size() <<
" != " << outlierCutOff.size());
555 return StatusCode::FAILURE;
561 auto chi2Cut = [](
double cut, std::size_t dim) ->
float {
562 const double pValue = std::erfc(cut / std::numbers::sqrt2);
563 return static_cast<float>(boost::math::quantile(
564 boost::math::complement(boost::math::chi_squared_distribution<double>(dim), pValue)));
566 for (std::size_t idx = 0; idx < cutOff.size(); ++idx) {
567 std::array<std::pair<float, float>, 4> cuts{};
568 for (std::size_t dim = 1; dim < cuts.size(); ++dim) {
569 cuts[dim] = std::make_pair(chi2Cut(cutOff[idx], dim),
570 idx < outlierCutOff.size()
571 ? chi2Cut(outlierCutOff[idx], dim)
572 : std::numeric_limits<float>::max());
575 chi2CutOffOutlier.push_back(cuts);
576 ATH_MSG_DEBUG(
"Measurement selector eta bin " << idx <<
": chi2 cuts for "
577 << cutOff[idx] <<
" / "
578 << (idx < outlierCutOff.size() ? outlierCutOff[idx] : std::numeric_limits<double>::infinity())
579 <<
" sigma: 1D " << cuts[1].first <<
" / " << cuts[1].second
580 <<
", 2D " << cuts[2].first <<
" / " << cuts[2].second
581 <<
", 3D " << cuts[3].first <<
" / " << cuts[3].second);
588 return StatusCode::SUCCESS ;
602 ATH_MSG_FATAL(
"Eta bins for statistics counter not in ascending order.");
612 std::lock_guard<std::mutex>
lock(m_mutex);
613 std::size_t category_i = 0;
614 for (
const std::array<unsigned int, kNStat> &src_stat : event_stat)
616 std::array<std::size_t, kNStat> &dest_stat = m_stat[category_i++];
617 for (std::size_t i = 0; i < src_stat.size(); ++i)
619 assert(i < dest_stat.size());
620 dest_stat[i] += src_stat[i];
629 std::vector<std::string> stat_labels =
635 std::make_pair(
kNoTrack,
"Cannot find track"),
645 std::make_pair(
kNoSecond,
"Tracks failing second CKF"),
651 assert(stat_labels.size() ==
kNStat);
652 std::vector<std::string> categories;
655 categories.push_back(
"ALL");
657 std::vector<std::string> eta_labels;
659 for (std::size_t eta_bin_i = 0; eta_bin_i <
m_statEtaBins.size() + 2; ++eta_bin_i)
668 std::vector<std::size_t> stat =
674 std::size_t stat_stride =
678 std::size_t eta_stride =
682 std::stringstream table_out;
688 for (std::size_t stat_i = 0; stat_i <
kNStat; ++stat_i)
690 std::size_t dest_idx_offset = stat_i * stat_stride;
691 table_out <<
makeTable(stat, dest_idx_offset, eta_stride,
696 .dumpHeader(stat_i == 0)
697 .dumpFooter(stat_i + 1 ==
kNStat)
698 .separateLastRow(
true)
699 .minLabelWidth(max_label_width)
700 .labelPrefix(stat_labels.at(stat_i));
710 std::size_t dest_idx_offset = eta_bin_i * eta_stride;
711 table_out <<
makeTable(stat, dest_idx_offset, stat_stride,
714 eta_labels.at(eta_bin_i))
727 auto [ratio_labels, ratio_def] =
729 std::vector<TableUtils::SummandDefinition>{
765 for (std::size_t ratio_i = 0; ratio_i < ratio_labels.size(); ++ratio_i)
768 ratio_i * ratio_stride,
774 .dumpHeader(ratio_i == 0)
775 .dumpFooter(ratio_i + 1 == ratio_labels.size())
776 .separateLastRow(
true)
777 .minLabelWidth(max_label_width)
778 .labelPrefix(ratio_labels.at(ratio_i));
785 (
m_statEtaBins.size() + 1) * ratio_eta_stride + 0 * ratio_stride,
791 .minLabelWidth(max_label_width)
795 eta_labels.erase(eta_labels.end() - 1);
798 ratio_i * ratio_stride,
806 .separateLastRow(
false)
807 .minLabelWidth(max_label_width)
808 .labelPrefix(ratio_labels.at(ratio_i));
817 std::vector<float>::const_iterator bin_iter = std::upper_bound(
m_statEtaBins.begin(),
821 assert(category_i < m_stat.size());
826 std::size_t out = 0u;
831 assert(category_i < stat.size());
832 out += stat[category_i][counter_i];
839 double eta = -std::log(std::tan(0.5 * track.theta()));
840 auto [enoughMeasurementsPS, tooManyHolesPS, tooManyOutliersPS] =
selectCounts(track,
eta);
841 return enoughMeasurementsPS && !tooManyHolesPS && !tooManyOutliersPS;
Scalar eta() const
pseudorapidity method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
#define ATH_MSG_VERBOSE(x,...)
#define ATH_MSG_INFO(x,...)
#define ATH_MSG_FATAL(x,...)
virtual void lock()=0
Interface to allow an object to lock itself when made const in SG.
TableUtils::StatTable< T > makeTable(const std::array< T, N > &counter, const std::array< std::string, N > &label)
std::unique_ptr< const Acts::Logger > makeActsAthenaLogger(IMessageSvc *svc, const std::string &name, int level, std::optional< std::string > parent_name)
Extension of the interface of the Acts::SurfacePlacementBase for ATLAS.
Gaudi::Property< std::vector< std::size_t > > m_maxStripHoles
Gaudi::Property< double > m_branchStopperAbsEtaMeasCut
Gaudi::Property< std::vector< float > > m_statEtaBins
Gaudi::Property< double > m_branchStopperPtMinFactor
Gaudi::Property< std::vector< std::size_t > > m_maxOutliers
Gaudi::Property< std::vector< std::size_t > > m_maxHgtdHoles
std::unique_ptr< const Acts::Logger > m_logger
logging instance
void printStatTables() const
Gaudi::Property< std::vector< double > > m_etaBins
Gaudi::Property< bool > m_doTwoWay
Gaudi::Property< bool > m_dumpAllStatEtaBins
Gaudi::Property< std::vector< size_t > > m_numMeasurementsCutOff
Gaudi::Property< std::vector< std::size_t > > m_maxSharedHits
Gaudi::Property< unsigned int > m_maxPropagationStep
static xAOD::UncalibMeasType measurementType(const detail::RecoTrackContainer::TrackStateProxy &trackState)
ToolHandle< ActsTrk::TrackStatePrinterTool > m_trackStatePrinter
Gaudi::Property< double > m_edgeHoleBorderWidth
Gaudi::Property< std::vector< double > > m_etaMax
Gaudi::Property< std::vector< double > > m_ptMin
Gaudi::Property< std::vector< std::size_t > > m_minPixelHits
Gaudi::Property< std::vector< std::size_t > > m_maxStripOutliers
SG::WriteHandleKey< ActsTrk::TrackContainer > m_trackContainerKey
Gaudi::Property< std::vector< double > > m_chi2CutOffSigma
Gaudi::Property< std::vector< double > > m_ptMax
Gaudi::Property< double > m_seedRefitPtMinFactor
detail::RecoTrackContainer::TrackProxy TrkProxy
Gaudi::Property< std::vector< std::size_t > > m_maxPixelHoles
static constexpr BranchState s_branchState
void copyStats(const EventStats &event_stat) const
Gaudi::Property< std::vector< double > > m_phiMin
Gaudi::Property< double > m_branchStopperMeasCutReduce
ToolHandle< ActsTrk::IPixelOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_pixelCalibTool
Gaudi::Property< std::vector< std::uint32_t > > m_endOfWorldVolumeIds
CKF_pimpl & trackFinder()
Gaudi::Property< std::vector< std::size_t > > m_minStripHits
ActsTrk::MutableTrackContainerHandlesHelper m_tracksBackendHandlesHelper
std::size_t getStatCategory(std::size_t seed_collection, float eta) const
std::size_t seedCollectionStride() const
Gaudi::Property< double > m_branchStopperAbsEtaMaxExtra
ToolHandle< GenericMonitoringTool > m_monTool
std::vector< typename detail::RecoTrackContainer::TrackProxy > doTwoWayTrackFinding(const detail::RecoTrackStateContainerProxy &firstMeasurement, const TrkProxy &trackProxy, detail::RecoTrackContainer &tracksContainerTemp, const TrackFinderOptions &options) const
Perform two-way track finding.
Gaudi::Property< std::vector< std::size_t > > m_absEtaMaxMeasurements
TrackFindingBaseAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::vector< double > > m_etaMin
Gaudi::Property< bool > m_recordMaterialStates
Gaudi::Property< std::vector< double > > m_d0Min
virtual StatusCode execute(const EventContext &ctx) const override
@ kNStoppedTracksMaxHoles
@ kNForcedSeedMeasurements
Gaudi::Property< std::vector< std::size_t > > m_maxHgtdOutliers
Gaudi::Property< std::vector< double > > m_z0Max
Gaudi::Property< double > m_absEtaMax
std::size_t computeStatSum(std::size_t seed_collection, EStat counter_i, const EventStats &stat) const
virtual StatusCode initialize() override
Gaudi::Property< std::vector< double > > m_z0Min
void checkCounts(const detail::RecoTrackContainer::TrackProxy &track) const
Gaudi::Property< bool > m_doBranchStopper
static void addCountsAndProperties(detail::RecoTrackContainer &tracksContainer, bool add_counts)
Gaudi::Property< std::vector< std::size_t > > m_minMeasurements
Gaudi::Property< std::vector< double > > m_maxChi2
Gaudi::Property< double > m_absEtaMin
BranchStopperResult stopBranch(const detail::RecoTrackContainer::TrackProxy &track, const detail::RecoTrackContainer::TrackStateProxy &trackState, const Acts::TrackSelector::EtaBinnedConfig &trackSelectorCfg, const Acts::GeometryContext &tgContext, const detail::MeasurementIndex &measurementIndex, const std::size_t typeIndex, EventStats::value_type &event_stat_category_i) const
Branch stopper.
static void initCounts(const detail::RecoTrackContainer::TrackProxy &track)
Gaudi::Property< std::vector< std::size_t > > m_maxPixelOutliers
const Acts::TrackSelector::Config & getCuts(double eta) const
Retrieves track selector configuration for given eta value.
Gaudi::Property< bool > m_checkCounts
Gaudi::Property< std::vector< std::size_t > > m_maxHoles
ToolHandle< ActsTrk::IStripOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_stripCalibTool
std::array< bool, 3 > selectCounts(const detail::RecoTrackContainer::TrackProxy &track, double eta) const
Gaudi::Property< std::vector< std::size_t > > m_maxHolesAndOutliers
std::unique_ptr< CKF_pimpl > m_trackFinder
Gaudi::Property< std::vector< double > > m_chi2OutlierCutOffSigma
StatusCode initializeMeasurementSelector()
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
TrackFindingDefaultOptions getDefaultOptions(const EventContext &ctx, const DetectorContextHolder &detContext, const detail::TrackFindingMeasurements &measurements, const Acts::PerigeeSurface *pSurface) const
Get CKF options for first and second pass + pointer to MeasurementSelector.
Acts::CombinatorialKalmanFilterOptions< detail::RecoTrackContainer > TrackFinderOptions
virtual StatusCode finalize() override
ContextUtility m_ctxProvider
Utility to fetch the geometry, magnetic field and calibration context in the event.
std::vector< std::array< unsigned int, kNStat > > EventStats
ToolHandle< ActsTrk::IHGTDOnTrackCalibratorTool< detail::RecoTrackStateContainer > > m_hgtdCalibTool
Gaudi::Property< double > m_twoWayinflateCovarianceFactor
std::size_t nSeedCollections() const
static void updateCounts(const detail::RecoTrackContainer::TrackProxy &track, Acts::ConstTrackStateTypeMap typeFlags, xAOD::UncalibMeasType detType)
Gaudi::Property< bool > m_addCounts
Gaudi::Property< std::vector< std::size_t > > m_minHgtdHits
struct ActsTrk::TrackFindingBaseAlg::MeasurementSelectorConfig m_measurementSelectorConfig
Gaudi::Property< std::vector< double > > m_phiMax
Gaudi::Property< std::vector< std::size_t > > m_ptMinMeasurements
Gaudi::Property< std::vector< double > > m_d0Max
Gaudi::Property< bool > m_inflateCovarianceTwoWay
Acts::CombinatorialKalmanFilterBranchStopperResult BranchStopperResult
std::unique_ptr< ActsTrk::IMeasurementSelector > setMeasurementSelector(const EventContext &ctx, const detail::TrackFindingMeasurements &measurements, TrackFinderOptions &options) const
Setup and attach measurement selector to KF options.
Gaudi::Property< std::uint32_t > m_envelopeConstraint
Stop the propagation as soon as the envelope is left (Gen3 only).
bool selectCountsFinal(const detail::RecoTrackContainer::TrackProxy &track) const
Gaudi::Property< std::vector< std::string > > m_seedLabels
const MeasurementRangeList & measurementRanges() const
bool msgLvl(const MSG::Level lvl) const
An algorithm that can be simultaneously executed in multiple threads.
static Root::TMsgLogger logger("iLumiCalc")
Acts::Result< void > gainMatrixUpdate(const Acts::GeometryContext &gctx, typename trajectory_t::TrackStateProxy trackState, const Acts::Logger &logger)
Acts::Propagator< Stepper, Navigator > Propagator
Acts::SympyStepper Stepper
Adapted from Acts Examples/Algorithms/TrackFinding/src/TrackFindingAlgorithmFunction....
Acts::Navigator Navigator
RecoTrackStateContainer::TrackStateProxy RecoTrackStateContainerProxy
std::unique_ptr< ActsTrk::IMeasurementSelector > getMeasurementSelector(const EventContext &ctx, const ActsTrk::IPixelOnTrackCalibratorTool< detail::RecoTrackStateContainer > *pixelOnTrackCalibratorTool, const ActsTrk::IStripOnTrackCalibratorTool< detail::RecoTrackStateContainer > *stripOnTrackCalibratorTool, const ActsTrk::IHGTDOnTrackCalibratorTool< detail::RecoTrackStateContainer > *hgtdOnTrackCalibratorTool, const ActsTrk::detail::MeasurementRangeList &measurementRanges, const std::vector< float > &etaBinsf, const std::vector< std::array< std::pair< float, float >, 4 > > &chi2CutOffOutlier, const std::vector< size_t > &numMeasurementsCutOff, double edge_hole_border_width)
Acts::TrackContainer< Acts::VectorTrackContainer, Acts::VectorMultiTrajectory > RecoTrackContainer
RecoTrackStateContainer::ConstTrackStateProxy RecoConstTrackStateContainerProxy
Acts::CombinatorialKalmanFilter< Propagator, RecoTrackContainer > CKF
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
std::string prefixFromTrackContainerName(const std::string &tracks)
Parse TrackContainer name to get the prefix for backends The name has to contain XYZTracks,...
@ Pixel
Inner detector legacy.
SystemEnvelope
Define an enumeration to retrieve the envelope tracking volume from.
This class is not to needed in AthSimulation.
std::tuple< std::vector< std::string >, std::vector< RatioDefinition > > splitRatioDefinitionsAndLabels(std::initializer_list< std::tuple< std::string, RatioDefinition > > a_ratio_list)
SummandDefinition defineSummand(T counter_idx, int multiplier)
std::size_t maxLabelWidth(const T_Collection &col)
RatioDefinition defineSimpleRatio(T numerator, T denominator)
std::vector< std::string > makeLabelVector(T_index n_entries, std::initializer_list< std::pair< T_index, T_string > > a_list)
constexpr std::size_t subCategoryStride(const std::size_t categories, const std::size_t sub_categories, const std::size_t n_counter)
constexpr std::size_t counterStride(const std::size_t categories, const std::size_t sub_categories, const std::size_t n_counter)
std::string makeEtaBinLabel(const std::vector< float > &eta_bins, std::size_t eta_bin_i, bool abs_eta=false)
std::tuple< std::string, RatioDefinition > makeRatioDefinition(std::string &&name, std::vector< SummandDefinition > &&numerator, std::vector< SummandDefinition > &&denominator)
std::vector< float > computeRatios(const std::vector< RatioDefinition > &ratio_def, const std::size_t categories, const std::size_t sub_categories, const std::vector< std::size_t > &counter)
constexpr std::size_t ratioStride(const std::size_t categories, const std::size_t sub_categories, const std::vector< RatioDefinition > &ratio_def)
std::vector< T_Output > createCounterArrayWithProjections(const std::size_t categories, const std::size_t sub_categories, const std::vector< std::array< T_Input, N > > &input_counts)
UncalibMeasType
Define the type of the uncalibrated measurement.
static void addFitterTypeProperty(track_container_t &tracksContainer)
add fitter column to the track container
Acts::GeometryContext geometry
Acts::MagneticFieldContext magField
Acts::CalibrationContext calib