ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
Event
xAOD
xAODMuonViews
src
IdentifierSorter.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
xAODMuonViews/IdentifierSorter.h
"
5
6
#include "Acts/Utilities/Helpers.hpp"
7
8
namespace
MuonR4
{
9
10
bool
IdentifierSorter::operator()
(
const
xAOD::MuonMeasurement
*
a
,
const
xAOD::MuonMeasurement
* b)
const
{
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
}
IdentifierSorter.h
a
static Double_t a
Definition
LArPhysWaveHECTool.cxx:38
MuonR4::IdentifierSorter::operator()
bool operator()(const xAOD::MuonMeasurement *a, const xAOD::MuonMeasurement *b) const
Sorting operator.
Definition
IdentifierSorter.cxx:10
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
xAOD::MuonMeasurement
MuonMeasurement_v1 MuonMeasurement
Definition
MuonMeasurementFwd.h:11
Generated on
for ATLAS Offline Software by
1.17.0