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

Member Function Documentation

◆ operator()()

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

Definition at line 84 of file DecayTreeComparisons.cpp.

84  {
85  // first handle bad pointers
86  if(0 == a && 0==b) return false;
87  if(0 == a && 0!=b) return true;
88  if(0 !=a && 0==b) return false;
89 
90  return a->getVal().pdg() > b->getVal().pdg();
91 }
const ValueType & getVal() const
Definition: DDTree.h:102
int pdg() const

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