PandaRoot
DecayTreeFitter::ErrCode Class Reference

#include <ErrCode.h>

Public Types

enum  Status {
  success = 0, pocafailure = 1, baddistance = 2, inversionerror = 4,
  badsetup = 8, divergingconstraint = 16, slowdivergingfit = 32, fastdivergingfit = 64
}
 

Public Member Functions

 ErrCode ()
 
 ErrCode (Status aflag)
 
virtual ~ErrCode ()
 
const ErrCodeoperator|= (const ErrCode &rhs)
 
bool operator== (const ErrCode &rhs) const
 
bool operator== (const ErrCode::Status &rhs) const
 
void reset ()
 
bool failure () const
 
unsigned int flag () const
 
void Print (std::ostream &os)
 

Detailed Description

Definition at line 16 of file ErrCode.h.

Member Enumeration Documentation

◆ Status

Constructor & Destructor Documentation

◆ ErrCode() [1/2]

DecayTreeFitter::ErrCode::ErrCode ( )
inline

Definition at line 20 of file ErrCode.h.

Referenced by operator==().

◆ ErrCode() [2/2]

DecayTreeFitter::ErrCode::ErrCode ( Status  aflag)
inline

Definition at line 22 of file ErrCode.h.

22 : _flag(aflag) {}

◆ ~ErrCode()

virtual DecayTreeFitter::ErrCode::~ErrCode ( )
inlinevirtual

Definition at line 24 of file ErrCode.h.

24 {};

Member Function Documentation

◆ failure()

bool DecayTreeFitter::ErrCode::failure ( ) const
inline

Definition at line 37 of file ErrCode.h.

References success.

37 { return _flag != success; }

◆ flag()

unsigned int DecayTreeFitter::ErrCode::flag ( ) const
inline

Definition at line 38 of file ErrCode.h.

References Print().

38 { return _flag; }

◆ operator==() [1/2]

bool DecayTreeFitter::ErrCode::operator== ( const ErrCode rhs) const
inline

Definition at line 32 of file ErrCode.h.

32 { return _flag == rhs._flag; }

◆ operator==() [2/2]

bool DecayTreeFitter::ErrCode::operator== ( const ErrCode::Status rhs) const
inline

Definition at line 34 of file ErrCode.h.

References ErrCode().

34 { return *this == ErrCode(rhs); }

◆ operator|=()

const ErrCode& DecayTreeFitter::ErrCode::operator|= ( const ErrCode rhs)
inline

Definition at line 26 of file ErrCode.h.

27  {
28  _flag |= rhs._flag;
29  return *this;
30  }

◆ Print()

void DecayTreeFitter::ErrCode::Print ( std::ostream &  os)

Referenced by flag().

◆ reset()

void DecayTreeFitter::ErrCode::reset ( )
inline

Definition at line 36 of file ErrCode.h.

References success.


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