19 &measurement_to_summary_type,
22 std::vector<ActsTrk::TrackStateBackend::ConstTrackStateProxy::IndexType > ¶m_state_idx_out,
26 chi2_stat_out.
reset();
29 param_state_idx_out.clear();
31 const auto lastMeasurementIndex = track.tipIndex();
32 track.container().trackStateContainer().visitBackwards(
35 &measurement_to_summary_type,
39 &special_hit_counts_out
40 ](
const typename ActsTrk::TrackStateBackend::ConstTrackStateProxy &state) ->
void
43 auto flag = state.typeFlags();
46 if (state.hasReferenceSurface()) {
47 if (state.referenceSurface().surfacePlacement()) {
49 actsDetEl =
dynamic_cast<const ActsDetectorElement *
>(state.referenceSurface().surfacePlacement());
57 else if (detEl->
isSCT()) {
65 Acts::Vector2 localPos(state.predicted()[Acts::eBoundLoc0],state.predicted()[Acts::eBoundLoc1]);
66 if (state.referenceSurface().insideBounds(localPos)) {
75 else if (flag.hasMeasurement()) {
77 param_state_idx_out.push_back(state.index());
81 if (state.hasUncalibratedSourceLink()) {
83 assert( sl !=
nullptr );
86 if (
static_cast<unsigned int>(
to_underlying(uncalibMeas.
type())) < siDetEleColl.size()) {
90 if (flag.isSharedHit()) {
98 if (state.calibratedSize()>0 && !flag.isOutlier()) {
101 double chi2add = std::min(state.chi2(),1e5f) / state.calibratedSize();
102 chi2_stat_out.
add(chi2add );
void gatherTrackSummaryData(const typename ActsTrk::TrackContainer::ConstTrackProxy &track, const std::array< const InDetDD::SiDetectorElementCollection *, to_underlying(xAOD::UncalibMeasType::nTypes)> &siDetEleColl, const std::array< unsigned short, to_underlying(xAOD::UncalibMeasType::nTypes)> &measurement_to_summary_type, SumOfValues &chi2_stat_out, HitSummaryData &hit_info_out, std::vector< ActsTrk::TrackStateBackend::ConstTrackStateProxy::IndexType > ¶m_state_idx_out, std::array< std::array< uint8_t, to_underlying(HitCategory::N)>, to_underlying(xAOD::UncalibMeasType::nTypes)> &special_hit_counts_out)
Helper to gather track summary information from the track states of the specified track.