#include "EvtGenBase/EvtPatches.hh"
#include <iostream>
#include <iomanip>
#include "EvtGenBase/EvtVector4R.hh"
#include "EvtGenBase/EvtStdHep.hh"
Go to the source code of this file.
Functions | |
ostream & | operator<< (ostream &s, const EvtStdHep &stdhep) |
Definition at line 80 of file EvtStdHep.cc.
References EvtStdHep::_daugfirst, EvtStdHep::_dauglast, EvtStdHep::_id, EvtStdHep::_istat, EvtStdHep::_npart, EvtStdHep::_p4, EvtStdHep::_prntfirst, EvtStdHep::_prntlast, EvtStdHep::_x, EvtVector4R::get(), genRecEmupikp::i, and w.
00080 { 00081 00082 int w=s.width(); 00083 int p=s.precision(); 00084 ios::fmtflags f=s.flags(); 00085 00086 00087 s <<endl; 00088 s << " N Id Ist M1 M2 DF DL px py pz E t x y z"<<endl; 00089 int i; 00090 for(i=0;i<stdhep._npart;i++){ 00091 00092 s.width(3); 00093 s<<i<<" "; 00094 s.width(7); 00095 s<<stdhep._id[i]<<" "; 00096 s.width(3); 00097 s<<stdhep._istat[i]<<" "; 00098 s.width(4); 00099 s<<stdhep._prntfirst[i]<<" "; 00100 s.width(4); 00101 s<<stdhep._prntlast[i]<<" "; 00102 s.width(4); 00103 s<<stdhep._daugfirst[i]<<" "; 00104 s.width(4); 00105 s<<stdhep._dauglast[i]<<" "; 00106 s.width(7); 00107 s.precision(4); 00108 s<<setiosflags( ios::right|ios::fixed ); 00109 s<<stdhep._p4[i].get(1)<<" "; 00110 s.width(7); 00111 s.precision(4); 00112 s<<setiosflags( ios::right|ios::fixed ); 00113 s<<stdhep._p4[i].get(2)<<" "; 00114 s.width(7); 00115 s.precision(4); 00116 s<<setiosflags( ios::right|ios::fixed ); 00117 s<<stdhep._p4[i].get(3)<<" "; 00118 s.width(7); 00119 s.precision(4); 00120 s<<setiosflags( ios::right|ios::fixed ); 00121 s<<stdhep._p4[i].get(0)<<" "; 00122 s.width(7); 00123 s.precision(4); 00124 s<<setiosflags( ios::right|ios::fixed ); 00125 s<<stdhep._x[i].get(0)<<" "; 00126 s.width(7); 00127 s.precision(4); 00128 s<<setiosflags( ios::right|ios::fixed ); 00129 s<<stdhep._x[i].get(1)<<" "; 00130 s.width(7); 00131 s.precision(4); 00132 s<<setiosflags( ios::right|ios::fixed ); 00133 s<<stdhep._x[i].get(2)<<" "; 00134 s.width(7); 00135 s.precision(4); 00136 s<<setiosflags( ios::right|ios::fixed ); 00137 s<<stdhep._x[i].get(3)<<endl; 00138 s.width(0); 00139 } 00140 00141 s<<endl; 00142 00143 s.width(w); 00144 s.precision(p); 00145 s.flags(f); 00146 00147 return s; 00148 00149 }