ATLAS Offline Software
Loading...
Searching...
No Matches
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
15namespace Trk {
16
24
31 template<class TruthCollection>
33 bool operator()(typename TruthCollection::const_iterator, typename TruthCollection::const_iterator) const;
34 };
35
36
41
42
43 //================================================================
44 // Implementation
45 template<class 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*/
static Double_t a
Ensure that the ATLAS eigen extensions are properly loaded.
This functor, used with TruthInverters, selects rec->mc truth map matches with higher associated prob...
bool operator()(typename TruthCollection::const_iterator, typename TruthCollection::const_iterator) const