ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::SortMuonPrepData Class Reference

#include <SortMuonPrepData.h>

Collaboration diagram for Muon::SortMuonPrepData:

Public Member Functions

bool operator() (const Trk::PrepRawData *prd1, const Trk::PrepRawData *prd2) const

Detailed Description

Definition at line 12 of file SortMuonPrepData.h.

Member Function Documentation

◆ operator()()

bool Muon::SortMuonPrepData::operator() ( const Trk::PrepRawData * prd1,
const Trk::PrepRawData * prd2 ) const
inline

Definition at line 15 of file SortMuonPrepData.h.

15 {
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 }
unsigned int hashAndIndex() const
combined index
Identifier identify() const
return the identifier
const IdentContIndex & getHashAndIndex() const

The documentation for this class was generated from the following file: