ATLAS Offline Software
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
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
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
ElementLink< Rec::TrackParticleContainer >
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
Generated on Thu Nov 7 2024 21:29:11 for ATLAS Offline Software by
1.8.18