Belle II Software
release-05-01-25
KFitVariables.cc
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2018 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Yu Hu *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
// Own include
12
#include <analysis/variables/KFitVariables.h>
13
14
#include <analysis/VariableManager/Manager.h>
15
#include <analysis/dataobjects/Particle.h>
16
17
#include <framework/logging/Logger.h>
18
19
using namespace
std;
20
21
namespace
Belle2
{
26
namespace
Variable {
27
28
// Chi2 and Prob -------------------------------------------
29
30
double
FourCKFitChi2(
const
Particle* part)
31
{
32
if
(part->hasExtraInfo(
"FourCFitChi2"
))
return
part->getExtraInfo(
"FourCFitChi2"
);
33
else
{
34
B2WARNING(
"The ExtraInfo 'FourCFitChi2' not found!"
);
35
return
std::numeric_limits<float>::quiet_NaN();
36
}
37
}
38
39
double
FourCKFitProb(
const
Particle* part)
40
{
41
if
(part->hasExtraInfo(
"FourCFitProb"
))
return
part->getExtraInfo(
"FourCFitProb"
);
42
else
{
43
B2WARNING(
"The ExtraInfo 'FourCFitProb' not found!"
);
44
return
std::numeric_limits<float>::quiet_NaN();
45
}
46
}
47
48
49
VARIABLE_GROUP(
"FourCKFit"
);
50
REGISTER_VARIABLE(
"FourCKFitChi2"
, FourCKFitChi2,
"Chi2 of four momentum-constraint kinematical fit in KFit"
);
51
REGISTER_VARIABLE(
"FourCKFitProb"
, FourCKFitProb,
"Prob of four momentum-constraint kinematical fit in KFit"
);
52
53
54
}
56
}
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
analysis
variables
src
KFitVariables.cc
Generated on Fri Nov 5 2021 03:46:32 for Belle II Software by
1.8.17