ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkEventUtils
TrkEventUtils
MatchCompare.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
10
11
12
#ifndef MATCHCOMPARE_H
13
#define MATCHCOMPARE_H
14
15
namespace
Trk
{
16
24
31
template
<
class
TruthCollection>
32
struct
MatchCompareByProbability
{
33
bool
operator()
(
typename
TruthCollection::const_iterator,
typename
TruthCollection::const_iterator)
const
;
34
};
35
36
41
42
43
//================================================================
44
// Implementation
45
template
<
class
TruthCollection>
46
bool
MatchCompareByProbability<TruthCollection>::
47
operator()
(
typename
TruthCollection::const_iterator
a
,
typename
TruthCollection::const_iterator b)
const
{
48
return
49
(
a
->second.probability() < b->second.probability() ) ||
50
((
a
->second.probability() == b->second.probability() )
51
/* prefer smaller (extended) barcodes --- bias to pick primary events & tracks */
52
&& (b->second.particleLink() <
a
->second.particleLink() ));
53
}
54
55
}
56
57
#endif
/*MATCHCOMPARE_H*/
a
static Double_t a
Definition
LArPhysWaveHECTool.cxx:38
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::MatchCompareByProbability
This functor, used with TruthInverters, selects rec->mc truth map matches with higher associated prob...
Definition
MatchCompare.h:32
Trk::MatchCompareByProbability::operator()
bool operator()(typename TruthCollection::const_iterator, typename TruthCollection::const_iterator) const
Definition
MatchCompare.h:47
Generated on
for ATLAS Offline Software by
1.17.0