21 #include "FitStatus.h"
28 PruneFlags::PruneFlags() {
33 void PruneFlags::reset() {
34 memset(
this, 0,
sizeof *
this);
42 value |= opt.Contains(
"C") ? C : 0;
43 value |= opt.Contains(
"F") ? F : 0;
44 value |= opt.Contains(
"L") ? L : 0;
45 value |= opt.Contains(
"W") ? W : 0;
46 value |= opt.Contains(
"R") ?
R : 0;
47 value |= opt.Contains(
"M") ? M : 0;
48 value |= opt.Contains(
"I") ? I : 0;
49 value |= opt.Contains(
"U") ? U : 0;
57 return !((!(value & C) && opt.Contains(
"C"))
58 || (!(value & F) && opt.Contains(
"F"))
59 || (!(value & L) && opt.Contains(
"L"))
60 || (!(value & W) && opt.Contains(
"W"))
61 || (!(value &
R) && opt.Contains(
"R"))
62 || (!(value & M) && opt.Contains(
"M"))
63 || (!(value & I) && opt.Contains(
"I"))
64 || (!(value & U) && opt.Contains(
"U")));
73 void PruneFlags::Print(
const Option_t*)
const {
88 void FitStatus::Print(
const Option_t*)
const
92 printOut <<
" track has been fitted,";
94 printOut <<
" fit has converged fully,";
96 printOut <<
" fit has converged partially,";
98 printOut <<
" fit has NOT converged,";
102 printOut <<
" track has changed since the fit,";
108 printOut <<
" track has NOT been fitted,";
PruneFlags pruneFlags_
Prune flags.
bool trackHasChanged_
has anything in the Track been changed since the fit? -> fit isn't valid anymore
bool isFitConvergedPartially_
did the fit converge with a subset of all TrackPoints?
bool isFitted_
has the track been fitted?
double charge_
fitted charge
bool isFitConvergedFully_
did the fit converge with all TrackPoints?
int nFailedPoints_
Number of failed TrackPoints.
Defines for I/O streams used for error and debug printing.
std::ostream printOut
Default stream for output of Print calls.
bool isPruned() const
check if any of the flags is set
void setFlags(Option_t *option="")
does not reset! If a flag is already true and is not in opt, it will stay true.
bool hasFlags(Option_t *option="CFLWRMIU") const
check if all the given flags are set