ATLAS Offline Software
Public Member Functions | List of all members
Muon::MuonTrackTruthTool::SortResultByMatchedHits Struct Reference

#include <MuonTrackTruthTool.h>

Collaboration diagram for Muon::MuonTrackTruthTool::SortResultByMatchedHits:

Public Member Functions

bool operator() (const MatchResult &r1, const MatchResult &r2) const
 
bool operator() (const SegmentMatchResult &r1, const SegmentMatchResult &r2) const
 
bool operator() (const MuonTrackTruth &r1, const MuonTrackTruth &r2) const
 

Detailed Description

Definition at line 49 of file MuonTrackTruthTool.h.

Member Function Documentation

◆ operator()() [1/3]

bool Muon::MuonTrackTruthTool::SortResultByMatchedHits::operator() ( const MatchResult r1,
const MatchResult r2 
) const

Definition at line 54 of file MuonTrackTruthTool.cxx.

55  {
56  return operator()(r1.second, r2.second);
57  }

◆ operator()() [2/3]

bool Muon::MuonTrackTruthTool::SortResultByMatchedHits::operator() ( const MuonTrackTruth r1,
const MuonTrackTruth r2 
) const

Definition at line 64 of file MuonTrackTruthTool.cxx.

64  {
65  // if not from same track sort by address (should be unique)
66  if (t1.truthTrack && !t2.truthTrack) return true;
67  if (!t1.truthTrack && t2.truthTrack) return false;
68  if (!t1.truthTrack && !t2.truthTrack) return false;
69  if (t1.truthTrack->barcode() == t2.truthTrack->barcode()) return t1.numberOfMatchedHits() > t2.numberOfMatchedHits(); // FIXME barcode-based
70  return t1.truthTrack->barcode() < t2.truthTrack->barcode(); // FIXME barcode-based
71  }

◆ operator()() [3/3]

bool Muon::MuonTrackTruthTool::SortResultByMatchedHits::operator() ( const SegmentMatchResult r1,
const SegmentMatchResult r2 
) const

Definition at line 59 of file MuonTrackTruthTool.cxx.

60  {
61  return operator()(r1.second, r2.second);
62  }

The documentation for this struct was generated from the following files:
Muon::MuonTrackTruthTool::SortResultByMatchedHits::operator()
bool operator()(const MatchResult &r1, const MatchResult &r2) const
Definition: MuonTrackTruthTool.cxx:54
ALFA_EventTPCnv_Dict::t1
std::vector< ALFA_RawDataCollection_p1 > t1
Definition: ALFA_EventTPCnvDict.h:43
MCP::ScaleSmearParam::r2
@ r2
ALFA_EventTPCnv_Dict::t2
std::vector< ALFA_RawDataContainer_p1 > t2
Definition: ALFA_EventTPCnvDict.h:44
MCP::ScaleSmearParam::r1
@ r1