ATLAS Offline Software
Loading...
Searching...
No Matches
Reconstruction
tauRecTools
tauRecTools
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
9
#include "
Particle/TrackParticle.h
"
10
#include "
Particle/TrackParticleContainer.h
"
11
#endif
12
#include "AthLinks/ElementLink.h"
13
#include "
xAODTracking/TrackParticle.h
"
14
23
24
class
TrackSort
{
25
26
public
:
27
TrackSort
(){};
28
29
#ifndef XAOD_ANALYSIS
30
bool
operator()
(
const
ElementLink<Rec::TrackParticleContainer>
& t1,
const
ElementLink<Rec::TrackParticleContainer>
&t2)
const
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
TrackParticle.h
TrackParticleContainer.h
TrackParticle.h
ElementLink
ElementLink implementation for ROOT usage.
Definition
AthLinks/ElementLink.h:123
Rec::TrackParticle
Definition
Reconstruction/Particle/Particle/TrackParticle.h:47
TrackSort::operator()
bool operator()(const ElementLink< Rec::TrackParticleContainer > &t1, const ElementLink< Rec::TrackParticleContainer > &t2) const
Definition
TrackSort.h:30
TrackSort::TrackSort
TrackSort()
Definition
TrackSort.h:27
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition
Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
Generated on
for ATLAS Offline Software by
1.14.0