CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::tau::RecoTauLexicographicalRanking< RankingList, Type > Class Template Reference

#include <RecoTauCleaningTools.h>

Public Member Functions

bool operator() (const Type &a, const Type &b) const
 
 RecoTauLexicographicalRanking (const RankingList &rankers)
 

Private Attributes

const RankingList & rankers_
 

Detailed Description

template<typename RankingList, typename Type>
class reco::tau::RecoTauLexicographicalRanking< RankingList, Type >

Definition at line 9 of file RecoTauCleaningTools.h.

Constructor & Destructor Documentation

◆ RecoTauLexicographicalRanking()

template<typename RankingList , typename Type >
reco::tau::RecoTauLexicographicalRanking< RankingList, Type >::RecoTauLexicographicalRanking ( const RankingList &  rankers)
inlineexplicit

Definition at line 13 of file RecoTauCleaningTools.h.

13 : rankers_(rankers) {}

Member Function Documentation

◆ operator()()

template<typename RankingList , typename Type >
bool reco::tau::RecoTauLexicographicalRanking< RankingList, Type >::operator() ( const Type &  a,
const Type &  b 
) const
inline

Definition at line 15 of file RecoTauCleaningTools.h.

15  {
16  typename RankingList::const_iterator ranker = rankers_.begin();
17  while (ranker != rankers_.end()) {
18  double aResult = (*ranker)(a);
19  double bResult = (*ranker)(b);
20  if (aResult != bResult)
21  return (aResult < bResult);
22  ++ranker;
23  }
24  // If all aare equal return false
25  return false;
26  }

References a, b, and reco::tau::RecoTauLexicographicalRanking< RankingList, Type >::rankers_.

Member Data Documentation

◆ rankers_

template<typename RankingList , typename Type >
const RankingList& reco::tau::RecoTauLexicographicalRanking< RankingList, Type >::rankers_
private
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119
reco::tau::RecoTauLexicographicalRanking::rankers_
const RankingList & rankers_
Definition: RecoTauCleaningTools.h:29