ATLAS Offline Software
Loading...
Searching...
No Matches
TrackSort.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TAURECTOOLS_TRACKSORT_H
6#define TAURECTOOLS_TRACKSORT_H
7
8#include "AthLinks/ElementLink.h"
10
19
20class TrackSort {
21
22public:
23 TrackSort() = default;
24
25 bool operator() ( const xAOD::TrackParticle *t1, const xAOD::TrackParticle *t2 ) const
26 {
27 return std::abs( t1->pt() ) > std::abs( t2->pt() );
28 };
29
30};
31
32#endif // TAURECTOOLS_TRACKSORT_H
TrackSort()=default
bool operator()(const xAOD::TrackParticle *t1, const xAOD::TrackParticle *t2) const
Definition TrackSort.h:25
TrackParticle_v1 TrackParticle
Reference the current persistent version: