10#include <analysis/variables/KFitVariables.h>
13#include <analysis/VariableManager/Manager.h>
15#include <analysis/dataobjects/Particle.h>
17#include <framework/logging/Logger.h>
30 double FourCKFitChi2(
const Particle* part)
32 if (part->hasExtraInfo(
"FourCFitChi2"))
return part->getExtraInfo(
"FourCFitChi2");
34 B2WARNING(
"The ExtraInfo 'FourCFitChi2' could not be found!");
39 double FourCKFitProb(
const Particle* part)
41 if (part->hasExtraInfo(
"FourCFitProb"))
return part->getExtraInfo(
"FourCFitProb");
43 B2WARNING(
"The ExtraInfo 'FourCFitProb' could not be found!");
48 double Chi2TracksLBoost(
const Particle* part)
50 if (part->hasExtraInfo(
"chiSquared_trackL"))
return part->getExtraInfo(
"chiSquared_trackL");
52 B2WARNING(
"The ExtraInfo 'chiSquared_trackL' could not be found!");
57 double KFitnTracks(
const Particle* part)
59 if (part->hasExtraInfo(
"kFit_nTracks"))
return part->getExtraInfo(
"kFit_nTracks");
61 B2WARNING(
"The ExtraInfo 'kFit_nTracks' could not be found!");
66 VARIABLE_GROUP(
"KFit variables");
67 REGISTER_VARIABLE(
"FourCKFitChi2", FourCKFitChi2,
"Chi2 of four momentum-constraint kinematical fit in KFit");
68 REGISTER_VARIABLE(
"FourCKFitProb", FourCKFitProb,
"Prob of four momentum-constraint kinematical fit in KFit");
70 REGISTER_VARIABLE(
"TracksLBoostChi2", Chi2TracksLBoost,
71 "indicator of vertex KFit quality based on accumulated change of track positions");
72 REGISTER_VARIABLE(
"KFit_nTracks", KFitnTracks,
"number of tracks used in the vertex KFit");
static const double doubleNaN
quiet_NaN
Abstract base class for different kinds of events.