ATLAS Offline Software
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 
12 #ifndef MATCHCOMPARE_H
13 #define MATCHCOMPARE_H
14 
15 namespace Trk {
16 
31  template<class TruthCollection>
33  bool operator()(typename TruthCollection::const_iterator, typename TruthCollection::const_iterator) const;
34  };
35 
36 
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*/
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
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10