MINT2
Public Member Functions | List of all members
moreByMass 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 26 of file DecayTreeComparisons.h.

Member Function Documentation

◆ operator()()

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

Definition at line 58 of file DecayTreeComparisons.cpp.

58  {
59  // first handle bad pointers
60  if(0 == a && 0==b) return false;
61  if(0 == a && 0!=b) return true;
62  if(0 !=a && 0==b) return false;
63 
64  return a->getVal().mass() > b->getVal().mass();
65 }
const ValueType & getVal() const
Definition: DDTree.h:102
double mass() const

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