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
10
11namespace MuonR4{
15 const Segment* detailedSegment(const xAOD::MuonSegment& seg);
20 std::vector<const xAOD::UncalibratedMeasurement*> collectMeasurements(const xAOD::MuonSegment& segment,
21 bool skipOutlier = true);
25 std::string printID(const xAOD::MuonSegment& seg);
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
42 Acts::GeometryIdentifier volumeId(const Acts::Surface& surface);
46 bool operator()(const xAOD::IParticle* a,
47 const xAOD::IParticle* b) const;
48 };
49
50}
51
52#endif
static Double_t a
Placeholder for what will later be the muon segment EDM representation.
Class providing the definition of the 4-vector interface.
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.
Acts::GeometryIdentifier volumeId(const Acts::Surface &surface)
Returns the identifier of the volume in which the surface is embedded.
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.
Auxiliary class to sort the particles by momentum First sorting is by pt, then eta and finally by phi...
bool operator()(const xAOD::IParticle *a, const xAOD::IParticle *b) const