FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
analysis
rho
DecayTreeFitter
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;
12
ClassImp
(
ErrCode
);
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
34
void
ErrCode::Print
(
std::ostream
& os)
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
}
DecayTreeFitter::ErrCode::pocafailure
Definition:
ErrCode.h:21
DecayTreeFitter::ErrCode::inversionerror
Definition:
ErrCode.h:23
DecayTreeFitter::ErrCode::fastdivergingfit
Definition:
ErrCode.h:27
DecayTreeFitter::ErrCode
Definition:
ErrCode.h:17
DecayTreeFitter::ErrCode::baddistance
Definition:
ErrCode.h:22
std::basic_ostream
Definition:
PndFTSCATrackParamVector.h:1258
DecayTreeFitter::ErrCode::Print
void Print(std::ostream &os)
Definition:
ErrCode.cxx:34
ErrCode.h
DecayTreeFitter::ErrCode::divergingconstraint
Definition:
ErrCode.h:25
DecayTreeFitter::ErrCode::_flag
unsigned int _flag
Definition:
ErrCode.h:50
DecayTreeFitter::ErrCode::badsetup
Definition:
ErrCode.h:24
DecayTreeFitter::ErrCode::slowdivergingfit
Definition:
ErrCode.h:26
ClassImp
ClassImp(PndAnaContFact)
Generated on Wed Apr 3 2019 10:02:46 for FairRoot/PandaRoot by
1.8.5