#include <istream>
#include <ostream>
#include <iomanip>
#include <limits>
#include <vector>
#include <algorithm>
#include <TROOT.h>
#include <TObject.h>
#include "JLang/JType.hh"
#include "JROOT/JRoot.hh"
#include "JROOT/JTreeParameters.hh"
#include "JReconstruction/JHistory.hh"
Go to the source code of this file.
Write fit results to output.
- Parameters
-
out | output stream |
fit | fit results |
- Returns
- output stream
Definition at line 12 of file JEvt.cc.
21 for (JHistory::const_reverse_iterator i = history.rbegin(); i != history.rend(); ++i) {
22 out <<
' ' << i->type;
27 out <<
"x " <<
FIXED(7,2) << fit.
getX() << endl;
28 out <<
"y " <<
FIXED(7,2) << fit.
getY() << endl;
29 out <<
"z " <<
FIXED(7,2) << fit.
getZ() << endl;
30 out <<
"dx " <<
FIXED(7,3) << fit.
getDX() << endl;
31 out <<
"dy " <<
FIXED(7,3) << fit.
getDY() << endl;
32 out <<
"dz " <<
FIXED(7,3) << fit.
getDZ() << endl;
34 out <<
"Q " <<
FIXED(12,5) << fit.
getQ() << endl;
35 out <<
"NDF " << setw(5) << fit.
getNDF() << endl;
37 out <<
"status " << fit.
getStatus() << endl;
39 for (
int i = 0; i != fit.
getN(); ++i) {
40 out <<
"W[" << i <<
"] = " <<
FIXED(10,5) << fit.
getW(i) << endl;
int getNDF() const
Get number of degrees of freedom.
int getN() const
Get number of values.
Auxiliary data structure for floating point format specification.
double getX() const
Get X-position.
double getY() const
Get Y-position.
int getStatus() const
Get status of the fit; negative values should refer to a bad fit.
double getDZ() const
Get Z-slope.
double getQ() const
Get quality.
double getZ() const
Get Z-position.
double getDY() const
Get Y-slope.
const std::vector< double > & getW() const
Get values.
const JHistory & getHistory() const
Get history.
double getDX() const
Get X-slope.
Get TTree parameters for given data type.
- Returns
- TTree parameters
Definition at line 406 of file JReconstruction/JEvt.hh.
Data structure for TTree parameters.