GENFIT Rev: NoNumberAvailable
Loading...
Searching...
No Matches
KalmanFitStatus.cc
Go to the documentation of this file.
1/* Copyright 2013, Technische Universitaet Muenchen, Ludwig-Maximilians-Universität München
2 Authors: Johannes Rauch & Tobias Schlüter
3
4 This file is part of GENFIT.
5
6 GENFIT is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published
8 by the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 GENFIT is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20
21#include "KalmanFitStatus.h"
22
23#include "IO.h"
24
25namespace genfit {
26
27void KalmanFitStatus::Print(const Option_t*) const
28{
30 if (fittedWithDaf_) printOut << " track has been fitted with DAF,";
31 if (fittedWithReferenceTrack_) printOut << " track has been fitted with reference track,";
32 if (isFitted_) {
33 printOut << " numIterations = " << numIterations_ << ", ";
34 printOut << "track length = " << trackLen_ << ", ";
35 printOut << "fChi2 = " << fChi2_ << ", ";
36 printOut << "bChi2 = " << FitStatus::getChi2() << ", ";
37 printOut << "fNdf = " << fNdf_ << ", ";
38 printOut << "bNdf = " << FitStatus::getNdf() << ", ";
39 printOut << "fPVal = " << getForwardPVal() << ", ";
40 printOut << "bPVal = " << getBackwardPVal() << "\n";
41 }
42 printOut << "\n";
43}
44
45} /* End of namespace genfit */
double getNdf() const
Get the degrees of freedom of the fit.
Definition FitStatus.h:122
bool isFitted_
has the track been fitted?
Definition FitStatus.h:147
double getChi2() const
Get chi^2 of the fit.
Definition FitStatus.h:120
virtual void Print(const Option_t *="") const
Definition FitStatus.cc:88
double getForwardPVal() const
double getBackwardPVal() const
virtual void Print(const Option_t *="") const override
Defines for I/O streams used for error and debug printing.
std::ostream printOut