ATLAS Offline Software
Public Member Functions | List of all members
Trk::MatchCompareByProbability< TruthCollection > Struct Template Reference

This functor, used with TruthInverters, selects rec->mc truth map matches with higher associated probabilities. More...

#include <MatchCompare.h>

Collaboration diagram for Trk::MatchCompareByProbability< TruthCollection >:

Public Member Functions

bool operator() (typename TruthCollection::const_iterator, typename TruthCollection::const_iterator) const
 

Detailed Description

template<class TruthCollection>
struct Trk::MatchCompareByProbability< TruthCollection >

This functor, used with TruthInverters, selects rec->mc truth map matches with higher associated probabilities.

Requires that the mapped_type of TruthCollection provides probability() and particleLink() calls.

Definition at line 32 of file MatchCompare.h.

Member Function Documentation

◆ operator()()

template<class TruthCollection >
bool Trk::MatchCompareByProbability< TruthCollection >::operator() ( typename TruthCollection::const_iterator  a,
typename TruthCollection::const_iterator  b 
) const

Definition at line 46 of file MatchCompare.h.

47  {
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  }

The documentation for this struct was generated from the following file:
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10