Jpp
18.2.0
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JReconstruction
JReconstruction/JEvt.cc
Go to the documentation of this file.
1
#include "
JReconstruction/JEvt.hh
"
2
#include "
Jeep/JPrint.hh
"
3
4
5
/**
6
* Write fit results to output.
7
*
8
* \param out output stream
9
* \param fit fit results
10
* \return output stream
11
*/
12
std::ostream&
operator<<
(std::ostream& out,
const
JRECONSTRUCTION::JFit
& fit)
13
{
14
using namespace
std;
15
using namespace
JPP;
16
17
const
JHistory
& history = fit.
getHistory
();
18
19
out <<
"history:"
;
20
21
for
(JHistory::const_reverse_iterator
i
= history.rbegin();
i
!= history.rend(); ++
i
) {
22
out <<
' '
<<
i
->type;
23
}
24
25
out << endl;
26
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;
33
34
out <<
"Q "
<<
FIXED
(12,5) << fit.
getQ
() << endl;
35
out <<
"NDF "
<< setw(5) << fit.
getNDF
() << endl;
36
37
out <<
"status "
<< fit.
getStatus
() << endl;
38
39
for
(
int
i
= 0;
i
!= fit.
getN
(); ++
i
) {
40
out <<
"W["
<<
i
<<
"] = "
<<
FIXED
(10,5) << fit.
getW
(
i
) << endl;
41
}
42
43
return
out;
44
}
JFIT::JFit::getNDF
int getNDF() const
Get number of degrees of freedom.
Definition:
JReconstruction/JEvt.hh:158
JFIT::JFit::getN
int getN() const
Get number of associated values.
Definition:
JReconstruction/JEvt.hh:292
FIXED
Auxiliary data structure for floating point format specification.
Definition:
JManip.hh:446
JFIT::JFit
Data structure for track fit results with history and optional associated values. ...
Definition:
JReconstruction/JEvt.hh:35
i
then rm i
Definition:
JEvtReweightMupageParameterScan.sh:309
JEvt.hh
JPrint.hh
I/O formatting auxiliaries.
JFIT::JFit::getX
double getX() const
Get X-position.
Definition:
JReconstruction/JEvt.hh:150
JFIT::JFit::getY
double getY() const
Get Y-position.
Definition:
JReconstruction/JEvt.hh:151
JFIT::JFit::getStatus
int getStatus() const
Get status of the fit; negative values should refer to a bad fit.
Definition:
JReconstruction/JEvt.hh:160
JFIT::JFit::getDZ
double getDZ() const
Get Z-slope.
Definition:
JReconstruction/JEvt.hh:155
JFIT::JFit::getQ
double getQ() const
Get quality.
Definition:
JReconstruction/JEvt.hh:157
JRECONSTRUCTION::JHistory
JFIT::JHistory JHistory
Definition:
JHistory.hh:354
JFIT::JFit::getZ
double getZ() const
Get Z-position.
Definition:
JReconstruction/JEvt.hh:152
operator<<
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
Definition:
clb_common_header.hh:72
JFIT::JFit::getDY
double getDY() const
Get Y-slope.
Definition:
JReconstruction/JEvt.hh:154
JFIT::JFit::getW
const std::vector< double > & getW() const
Get associated values.
Definition:
JReconstruction/JEvt.hh:270
JFIT::JHistory::getHistory
const JHistory & getHistory() const
Get history.
Definition:
JHistory.hh:229
JFIT::JFit::getDX
double getDX() const
Get X-slope.
Definition:
JReconstruction/JEvt.hh:153
Generated by
1.8.5