ATLAS Offline Software
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 
8 #include "xAODMuon/MuonSegment.h"
9 
10 namespace 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
MuonR4::printID
std::string printID(const xAOD::MuonSegment &seg)
Print the chamber ID of a segment, e.g.
Definition: TrackingHelpers.cxx:17
Trk::TrackState::Segment
@ Segment
Definition: TrackStateDefs.h:37
MuonSegment.h
MuonR4::collectMeasurements
std::vector< const xAOD::UncalibratedMeasurement * > collectMeasurements(const xAOD::MuonSegment &segment, bool skipOutlier=true)
Helper function to extract the measurements from the segment.
Definition: TrackingHelpers.cxx:56
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
MuonR4::nMeasurements
std::size_t nMeasurements(const xAOD::MuonSegment &segment)
Returns the number of associated Uncalibrated measurements.
Definition: TrackingHelpers.cxx:36
MuonR4::detailedSegment
const Segment * detailedSegment(const xAOD::MuonSegment &seg)
Helper function to navigate from the xAOD::MuonSegment to the MuonR4::Segment.
Definition: TrackingHelpers.cxx:24
xAOD::UncalibratedMeasurement_v1
Definition: UncalibratedMeasurement_v1.h:13
beamspotman.n
n
Definition: beamspotman.py:727
MuonR4::getMeasurement
const xAOD::UncalibratedMeasurement * getMeasurement(const xAOD::MuonSegment &segment, const std::size_t n)
Returns the n-th uncalibrated measurement.
Definition: TrackingHelpers.cxx:39
MuonR4::isOutlierMeasurement
bool isOutlierMeasurement(const xAOD::MuonSegment &segment, const std::size_t n)
Returns whether the n-the uncalibrated measurement is an outlier.
Definition: TrackingHelpers.cxx:48
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
Segment.h