ATLAS Offline Software
Loading...
Searching...
No Matches
TrackSort Class Reference

Helper method to sort tracks. More...

#include <TrackSort.h>

Collaboration diagram for TrackSort:

Public Member Functions

 TrackSort ()=default
bool operator() (const xAOD::TrackParticle *t1, const xAOD::TrackParticle *t2) const

Detailed Description

Helper method to sort tracks.

Usage: sort(track_begin, track_end, tauTrackSort); We want pt0 > pt1 > ..., so the test on ptInvVert is < .

Definition at line 20 of file TrackSort.h.

Constructor & Destructor Documentation

◆ TrackSort()

TrackSort::TrackSort ( )
default

Member Function Documentation

◆ operator()()

bool TrackSort::operator() ( const xAOD::TrackParticle * t1,
const xAOD::TrackParticle * t2 ) const
inline

Definition at line 25 of file TrackSort.h.

26 {
27 return std::abs( t1->pt() ) > std::abs( t2->pt() );
28 };
std::vector< ALFA_RawDataContainer_p1 > t2
std::vector< ALFA_RawDataCollection_p1 > t1

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