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 ()
bool operator() (const ElementLink< Rec::TrackParticleContainer > &t1, const ElementLink< Rec::TrackParticleContainer > &t2) const
bool operator() (const Rec::TrackParticle *t1, const Rec::TrackParticle *t2) const
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 24 of file TrackSort.h.

Constructor & Destructor Documentation

◆ TrackSort()

TrackSort::TrackSort ( )
inline

Definition at line 27 of file TrackSort.h.

27{};

Member Function Documentation

◆ operator()() [1/3]

bool TrackSort::operator() ( const ElementLink< Rec::TrackParticleContainer > & t1,
const ElementLink< Rec::TrackParticleContainer > & t2 ) const
inline

Definition at line 30 of file TrackSort.h.

31 {
32 return std::abs( (*t1)->pt() ) > std::abs( (*t2)->pt() );
33 };

◆ operator()() [2/3]

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

Definition at line 35 of file TrackSort.h.

36 {
37 return std::abs( t1->pt() ) > std::abs( t2->pt() );
38 };
std::vector< ALFA_RawDataContainer_p1 > t2
std::vector< ALFA_RawDataCollection_p1 > t1

◆ operator()() [3/3]

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

Definition at line 41 of file TrackSort.h.

42 {
43 return std::abs( t1->pt() ) > std::abs( t2->pt() );
44 };

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