ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
10namespace Muon {
11
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
unsigned int hashAndIndex() const
combined index
Class to represent measurements from the Monitored Drift Tubes.
Definition MdtPrepData.h:33
int tdc() const
Returns the TDC (typically range is 0 to 2500).
bool operator()(const Trk::PrepRawData *prd1, const Trk::PrepRawData *prd2) const
Identifier identify() const
return the identifier
const IdentContIndex & getHashAndIndex() const
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.