ATLAS Offline Software
Public Member Functions | List of all members
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  }

The documentation for this class was generated from the following file:
Trk::PrepRawDataType::MdtPrepData
@ MdtPrepData
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
IdentContIndex::hashAndIndex
unsigned int hashAndIndex() const
combined index
Definition: IdentContIndex.h:99
Trk::PrepRawData::getHashAndIndex
const IdentContIndex & getHashAndIndex() const