SND@LHC Software
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 <iostream>
24
25namespace genfit {
26
27void KalmanFitStatus::Print(const Option_t*) const
28{
30 if (fittedWithDaf_) std::cout << " track has been fitted with DAF,";
31 if (fittedWithReferenceTrack_) std::cout << " track has been fitted with reference track,";
32 if (isFitted_) {
33 std::cout << " numIterations = " << numIterations_ << ", ";
34 std::cout << "track length = " << trackLen_ << ", ";
35 std::cout << "fChi2 = " << fChi2_ << ", ";
36 std::cout << "bChi2 = " << FitStatus::getChi2() << ", ";
37 std::cout << "fNdf = " << fNdf_ << ", ";
38 std::cout << "bNdf = " << FitStatus::getNdf() << ", ";
39 std::cout << "fPVal = " << getForwardPVal() << ", ";
40 std::cout << "bPVal = " << getBackwardPVal() << "\n";
41 }
42 std::cout << "\n";
43}
44
45} /* End of namespace genfit */
double getNdf() const
Get the degrees of freedom of the fit.
Definition FitStatus.h:76
bool isFitted_
has the track been fitted?
Definition FitStatus.h:100
double getChi2() const
Get chi^2 of the fit.
Definition FitStatus.h:74
virtual void Print(const Option_t *="") const
Definition FitStatus.cc:27
double getForwardPVal() const
virtual void Print(const Option_t *="") const
double getBackwardPVal() const
Matrix inversion tools.
Definition AbsBField.h:29