ATLAS Offline Software
Loading...
Searching...
No Matches
IdentifierSorter.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
5
6#include "Acts/Utilities/Helpers.hpp"
7
8namespace MuonR4{
9
11 if (a->type() != b->type()) {
12 return Acts::toUnderlying(a->type()) < Acts::toUnderlying(b->type());
13 }
14 if (a->identifierHash() != b->identifierHash()) {
15 return a->identifierHash() < b->identifierHash();
16 }
17 if (a->layerHash() < b->layerHash()) {
18 return a->layerHash() < b->layerHash();
19 }
20 if (a->measuresPhi() < b->measuresPhi()) {
21 return b->measuresPhi();
22 }
23 return a->measurementHash() < b->measurementHash();
24}
25
26}
static Double_t a
bool operator()(const xAOD::MuonMeasurement *a, const xAOD::MuonMeasurement *b) const
Sorting operator.
This header ties the generic definitions in this package.
MuonMeasurement_v1 MuonMeasurement