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
40
41
47 Amg::Vector3D atFirstSurface(const Acts::GeometryContext& gctx,
48 const xAOD::MuonSegment& segment,
49 const bool skipOutlier = true);
56 const bool skipOutlier =true);
59 Acts::GeometryIdentifier volumeId(const Acts::Surface& surface);
63 bool operator()(const xAOD::IParticle* a,
64 const xAOD::IParticle* b) const;
65 };
66
67}
68
69#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.
Eigen::Matrix< double, 3, 1 > Vector3D
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 xAOD::UncalibratedMeasurement * firstMeasurement(const xAOD::MuonSegment &segment, const bool skipOutlier=true)
Retrieves the first measurement associated with the segment.
Amg::Vector3D atFirstSurface(const Acts::GeometryContext &gctx, const xAOD::MuonSegment &segment, const bool skipOutlier=true)
Expresses the segment position on the surface of the first measurement.
const Segment * detailedSegment(const xAOD::MuonSegment &seg)
Helper function to navigate from the xAOD::MuonSegment to the MuonR4::Segment.
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.
MuonSegment_v1 MuonSegment
Reference the current persistent version:
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