SND@LHC Software
Loading...
Searching...
No Matches
FitStatus.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 "FitStatus.h"
22
23#include <iostream>
24
25namespace genfit {
26
27void FitStatus::Print(const Option_t*) const
28{
29 std::cout << "fitStatus \n";
30 if (isFitted_) {
31 std::cout << " track has been fitted,";
33 std::cout << " fit has converged fully,";
35 std::cout << " fit has converged partially,";
36 else
37 std::cout << " fit has NOT converged,";
38 std::cout << " " << nFailedPoints_ << " TrackPoints could not be processed,";
39 if (trackHasChanged_) std::cout << " track has changed since the fit,";
40 if (trackIsPruned_) std::cout << " track is pruned,";
41 std::cout << " fitted charge = " << charge_ << " \n";
42 }
43 else
44 std::cout << " track has NOT been fitted,";
45}
46
47} /* End of namespace genfit */
int nFailedPoints_
Number of failed TrackPoints.
Definition FitStatus.h:106
bool trackIsPruned_
Information has been stripped off, no refitting possible!
Definition FitStatus.h:110
bool isFitConvergedPartially_
did the fit converge with a subset of all TrackPoints?
Definition FitStatus.h:104
double charge_
fitted charge
Definition FitStatus.h:112
bool trackHasChanged_
has anything in the Track been changed since the fit? -> fit isn't valid anymore
Definition FitStatus.h:108
bool isFitted_
has the track been fitted?
Definition FitStatus.h:100
bool isFitConvergedFully_
did the fit converge with all TrackPoints?
Definition FitStatus.h:102
virtual void Print(const Option_t *="") const
Definition FitStatus.cc:27
Matrix inversion tools.
Definition AbsBField.h:29