FairRoot/PandaRoot
ErrCode.cxx
Go to the documentation of this file.
1 // ******************************************************
2 // DecayTreeFitter Package
3 // We thank the original author Wouter Hulsbergen
4 // (BaBar, LHCb) for providing the sources.
5 // http://arxiv.org/abs/physics/0503191v1 (2005)
6 // Adaptation & Development for PANDA: Ralf Kliemt (2015)
7 // ******************************************************
8 #include "ErrCode.h"
9 
10 
11 using namespace DecayTreeFitter;
13 
14 // std::ostream& operator<<(std::ostream& os, ErrCode& ec)
15 // {
16 // unsigned int flag = ec.flag() ;
17 // os << "flag=" << flag << " " ;
18 // if(flag) {
19 // if(flag&ErrCode::pocafailure) os << "pocafailure " ;
20 // if(flag&ErrCode::baddistance) os << "baddistance " ;
21 // if(flag&ErrCode::inversionerror) os << "inversionerror " ;
22 // if(flag&ErrCode::badsetup) os << "badsetup " ;
23 // if(flag&ErrCode::divergingconstraint) os << "divergingconstraint " ;
24 // if(flag&ErrCode::slowdivergingfit) os << "slowdivergingfit " ;
25 // if(flag&ErrCode::fastdivergingfit) os << "fastdivergingfit " ;
26 // } else {
27 // os << "success " ;
28 // }
29 // return os ;
30 // }
31 
32 
33 
35 {
36  os << "flag=" << _flag << " " ;
37  if(_flag) {
38  if(_flag&ErrCode::pocafailure) os << "pocafailure " ;
39  if(_flag&ErrCode::baddistance) os << "baddistance " ;
40  if(_flag&ErrCode::inversionerror) os << "inversionerror " ;
41  if(_flag&ErrCode::badsetup) os << "badsetup " ;
42  if(_flag&ErrCode::divergingconstraint) os << "divergingconstraint " ;
43  if(_flag&ErrCode::slowdivergingfit) os << "slowdivergingfit " ;
44  if(_flag&ErrCode::fastdivergingfit) os << "fastdivergingfit " ;
45  } else {
46  os << "success " ;
47  }
48  return;
49 }
void Print(std::ostream &os)
Definition: ErrCode.cxx:34
unsigned int _flag
Definition: ErrCode.h:50
ClassImp(PndAnaContFact)