ATLAS Offline Software
Loading...
Searching...
No Matches
TrackingHelpers.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 MUONTRACKEVENT_TRACKINGHELPERS_H
5#define MUONTRACKEVENT_TRACKINGHELPERS_H
6
9
10namespace MuonR4{
14 const Segment* detailedSegment(const xAOD::MuonSegment& seg);
19 std::vector<const xAOD::UncalibratedMeasurement*> collectMeasurements(const xAOD::MuonSegment& segment,
20 bool skipOutlier = true);
24 std::string printID(const xAOD::MuonSegment& seg);
25
28 std::size_t nMeasurements(const xAOD::MuonSegment& segment);
33 const std::size_t n);
37 bool isOutlierMeasurement(const xAOD::MuonSegment& segment,
38 const std::size_t n);
39
40}
41
42#endif
Placeholder for what will later be the muon segment EDM representation.
This header ties the generic definitions in this package.
std::string printID(const xAOD::MuonSegment &seg)
Print the chamber ID of a segment, e.g.
const xAOD::UncalibratedMeasurement * getMeasurement(const xAOD::MuonSegment &segment, const std::size_t n)
Returns the n-th uncalibrated measurement.
std::size_t nMeasurements(const xAOD::MuonSegment &segment)
Returns the number of associated Uncalibrated measurements.
std::vector< const xAOD::UncalibratedMeasurement * > collectMeasurements(const xAOD::MuonSegment &segment, bool skipOutlier=true)
Helper function to extract the measurements from the segment.
bool isOutlierMeasurement(const xAOD::MuonSegment &segment, const std::size_t n)
Returns whether the n-the uncalibrated measurement is an outlier.
const Segment * detailedSegment(const xAOD::MuonSegment &seg)
Helper function to navigate from the xAOD::MuonSegment to the MuonR4::Segment.
MuonSegment_v1 MuonSegment
Reference the current persistent version:
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.