#include "EvtPatches.hh"
#include "EvtStdHep.hh"
#include "EvtVector4R.hh"
#include <iomanip>
#include <iostream>
Go to the source code of this file.
◆ operator<<()
| ostream & operator<< |
( |
ostream & | s, |
|
|
const EvtStdHep & | stdhep ) |
Definition at line 71 of file EvtStdHep.cc.
71 {
72
74 int p =
s.precision();
75 ios::fmtflags
f =
s.flags();
76
78 s <<
" N Id Ist M1 M2 DF DL px py pz E t x "
79 " y z"
80 << endl;
81 int i;
82 for ( i = 0; i < stdhep._npart; i++ )
83 {
84
88 s << stdhep._id[i] <<
" ";
90 s << stdhep._istat[i] <<
" ";
92 s << stdhep._prntfirst[i] <<
" ";
94 s << stdhep._prntlast[i] <<
" ";
96 s << stdhep._daugfirst[i] <<
" ";
98 s << stdhep._dauglast[i] <<
" ";
101 s << setiosflags( ios::right | ios::fixed );
102 s << stdhep._p4[i].
get( 1 ) <<
" ";
105 s << setiosflags( ios::right | ios::fixed );
106 s << stdhep._p4[i].
get( 2 ) <<
" ";
109 s << setiosflags( ios::right | ios::fixed );
110 s << stdhep._p4[i].
get( 3 ) <<
" ";
113 s << setiosflags( ios::right | ios::fixed );
114 s << stdhep._p4[i].
get( 0 ) <<
" ";
117 s << setiosflags( ios::right | ios::fixed );
118 s << stdhep._x[i].
get( 0 ) <<
" ";
121 s << setiosflags( ios::right | ios::fixed );
122 s << stdhep._x[i].
get( 1 ) <<
" ";
125 s << setiosflags( ios::right | ios::fixed );
126 s << stdhep._x[i].
get( 2 ) <<
" ";
129 s << setiosflags( ios::right | ios::fixed );
130 s << stdhep._x[i].
get( 3 ) << endl;
132 }
133
135
139
141}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")