ATLAS Offline Software
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 
24 class TrackSort {
25 
26 public:
27  TrackSort(){};
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 
42  {
43  return std::abs( t1->pt() ) > std::abs( t2->pt() );
44  };
45 
46 };
47 
48 #endif // TAURECTOOLS_TRACKSORT_H
TrackParticle.h
TrackSort::TrackSort
TrackSort()
Definition: TrackSort.h:27
ALFA_EventTPCnv_Dict::t1
std::vector< ALFA_RawDataCollection_p1 > t1
Definition: ALFA_EventTPCnvDict.h:43
TrackSort
Helper method to sort tracks.
Definition: TrackSort.h:24
TrackSort::operator()
bool operator()(const ElementLink< Rec::TrackParticleContainer > &t1, const ElementLink< Rec::TrackParticleContainer > &t2) const
Definition: TrackSort.h:30
Rec::TrackParticle
Definition: Reconstruction/Particle/Particle/TrackParticle.h:47
TrackParticle.h
ALFA_EventTPCnv_Dict::t2
std::vector< ALFA_RawDataContainer_p1 > t2
Definition: ALFA_EventTPCnvDict.h:44
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
TrackParticleContainer.h