MINT2
Public Member Functions | List of all members
lessBySVPAT_L Class Reference

#include <DecayTreeComparisons.h>

Public Member Functions

bool operator() (MINT::const_counted_ptr< DecayTree > a, MINT::const_counted_ptr< DecayTree > b) const
 

Detailed Description

Definition at line 14 of file DecayTreeComparisons.h.

Member Function Documentation

◆ operator()()

bool lessBySVPAT_L::operator() ( MINT::const_counted_ptr< DecayTree a,
MINT::const_counted_ptr< DecayTree b 
) const

Definition at line 18 of file DecayTreeComparisons.cpp.

18  {
19  // first handle bad pointers
20  if(0 == a && 0==b) return false;
21  if(0 == a && 0!=b) return true;
22  if(0 !=a && 0==b) return false;
23 
24  if(a->getVal().SVPAT() == b->getVal().SVPAT()){
25  return a->getVal().L() < b->getVal().L();
26  }else{
27  return a->getVal().SVPAT() < b->getVal().SVPAT();
28  }
29 }
std::string SVPAT() const
const ValueType & getVal() const
Definition: DDTree.h:102
int L() const
Definition: DecayTreeItem.h:59

The documentation for this class was generated from the following files: