ATLAS Offline Software
SortMuonPrepData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SORTMUONPREPDATA_H
6 #define SORTMUONPREPDATA_H
7 
9 
10 namespace 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  const MdtPrepData* mdt1 = dynamic_cast<const MdtPrepData*>(prd1);
19  if( mdt1 ) {
20  const MdtPrepData* mdt2 = static_cast<const MdtPrepData*>(prd2);
21  return mdt1->tdc() < mdt2->tdc();
22  }
23  }
24 
25  return prd1->identify() < prd2->identify();
26 
27  }
28  };
29 
30 }
31 
32 #endif
MdtPrepData.h
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon::SortMuonPrepData
Definition: SortMuonPrepData.h:12
Trk::PrepRawData
Definition: PrepRawData.h:62
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
Muon::MdtPrepData::tdc
int tdc() const
Returns the TDC (typically range is 0 to 2500).
Definition: MdtPrepData.h:161
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:37