ATLAS Offline Software
Loading...
Searching...
No Matches
TrackSort.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TAURECTOOLS_TRACKSORT_H
6#define TAURECTOOLS_TRACKSORT_H
7
8#ifndef XAOD_ANALYSIS
11#endif
12#include "AthLinks/ElementLink.h"
14
23
24class TrackSort {
25
26public:
28
29#ifndef XAOD_ANALYSIS
31 {
32 return std::abs( (*t1)->pt() ) > std::abs( (*t2)->pt() );
33 };
34
35 bool operator() ( const Rec::TrackParticle *t1, const Rec::TrackParticle *t2 ) const
36 {
37 return std::abs( t1->pt() ) > std::abs( t2->pt() );
38 };
39#endif
40
41 bool operator() ( const xAOD::TrackParticle *t1, const xAOD::TrackParticle *t2 ) const
42 {
43 return std::abs( t1->pt() ) > std::abs( t2->pt() );
44 };
45
46};
47
48#endif // TAURECTOOLS_TRACKSORT_H
bool operator()(const ElementLink< Rec::TrackParticleContainer > &t1, const ElementLink< Rec::TrackParticleContainer > &t2) const
Definition TrackSort.h:30
TrackParticle_v1 TrackParticle
Reference the current persistent version: