ATLAS Offline Software
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonPrepRawData
MuonPrepRawData
SortMuonPrepData.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef SORTMUONPREPDATA_H
6
#define SORTMUONPREPDATA_H
7
8
#include "
MuonPrepRawData/MdtPrepData.h
"
9
10
namespace
Muon
{
11
12
class
SortMuonPrepData
{
13
public
:
14
15
bool
operator()
(
const
Trk::PrepRawData
* prd1,
const
Trk::PrepRawData
* prd2 )
const
{
16
17
if
( prd1->
identify
() == prd2->
identify
() ) {
18
if
(
const
MdtPrepData
* mdt1 =
dynamic_cast<
const
MdtPrepData
*
>
(prd1) ) {
19
const
MdtPrepData
* mdt2 =
static_cast<
const
MdtPrepData
*
>
(prd2);
20
return
mdt1->
tdc
() < mdt2->
tdc
();
21
}
22
return
prd1->
getHashAndIndex
().
hashAndIndex
() < prd2->
getHashAndIndex
().
hashAndIndex
();
23
}
24
25
return
prd1->
identify
() < prd2->
identify
();
26
27
}
28
};
29
30
}
31
32
#endif
MdtPrepData.h
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition:
TrackSystemController.h:45
Muon::SortMuonPrepData
Definition:
SortMuonPrepData.h:12
Trk::PrepRawData
Definition:
PrepRawData.h:62
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
IdentContIndex::hashAndIndex
unsigned int hashAndIndex() const
combined index
Definition:
IdentContIndex.h:99
Muon::MdtPrepData::tdc
int tdc() const
Returns the TDC (typically range is 0 to 2500).
Definition:
MdtPrepData.h:145
Muon::SortMuonPrepData::operator()
bool operator()(const Trk::PrepRawData *prd1, const Trk::PrepRawData *prd2) const
Definition:
SortMuonPrepData.h:15
Muon::MdtPrepData
Class to represent measurements from the Monitored Drift Tubes.
Definition:
MdtPrepData.h:33
Trk::PrepRawData::getHashAndIndex
const IdentContIndex & getHashAndIndex() const
Generated on Sun Dec 22 2024 21:18:24 for ATLAS Offline Software by
1.8.18