ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::SortClustersById Struct Reference

Function object to sort MuonClusterOnTrack pointers by Identier. More...

#include <DCMathSegmentMaker.h>

Collaboration diagram for Muon::SortClustersById:

Public Member Functions

bool operator() (const MuonClusterOnTrack *cl1, const MuonClusterOnTrack *cl2)

Detailed Description

Function object to sort MuonClusterOnTrack pointers by Identier.

Usage:

std::vector<const MuonClusterOnTrack*> myClusters;

...

std::sort( myClusters.begin(), myClusters.end(), SortClustersById() );

Definition at line 67 of file DCMathSegmentMaker.h.

Member Function Documentation

◆ operator()()

bool Muon::SortClustersById::operator() ( const MuonClusterOnTrack * cl1,
const MuonClusterOnTrack * cl2 )
inline

Definition at line 68 of file DCMathSegmentMaker.h.

68{ return cl1->identify() < cl2->identify(); }

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