29using std::setiosflags;
42 int prntlast,
int id){
46 _prntfirst[_npart]=prntfirst;
47 _prntlast[_npart]=prntlast;
48 _daugfirst[_npart]=-1;
57 for (i=prntfirst;i<=prntlast;i++){
59 if (_daugfirst[i]==-1) _daugfirst[i]=_npart;
60 if (_dauglast[i]<_npart) _dauglast[i]=_npart;
72 for(i=0;i<_npart;i++){
84 ios::fmtflags f=
s.flags();
88 s <<
" N Id Ist M1 M2 DF DL px py pz E t x y z"<<endl;
90 for(i=0;i<stdhep._npart;i++){
95 s<<stdhep._id[i]<<
" ";
97 s<<stdhep._istat[i]<<
" ";
99 s<<stdhep._prntfirst[i]<<
" ";
101 s<<stdhep._prntlast[i]<<
" ";
103 s<<stdhep._daugfirst[i]<<
" ";
105 s<<stdhep._dauglast[i]<<
" ";
108 s<<setiosflags( ios::right|ios::fixed );
109 s<<stdhep._p4[i].
get(1)<<
" ";
112 s<<setiosflags( ios::right|ios::fixed );
113 s<<stdhep._p4[i].
get(2)<<
" ";
116 s<<setiosflags( ios::right|ios::fixed );
117 s<<stdhep._p4[i].
get(3)<<
" ";
120 s<<setiosflags( ios::right|ios::fixed );
121 s<<stdhep._p4[i].
get(0)<<
" ";
124 s<<setiosflags( ios::right|ios::fixed );
125 s<<stdhep._x[i].
get(0)<<
" ";
128 s<<setiosflags( ios::right|ios::fixed );
129 s<<stdhep._x[i].
get(1)<<
" ";
132 s<<setiosflags( ios::right|ios::fixed );
133 s<<stdhep._x[i].
get(2)<<
" ";
136 s<<setiosflags( ios::right|ios::fixed );
137 s<<stdhep._x[i].
get(3)<<endl;
ostream & operator<<(ostream &s, const EvtStdHep &stdhep)
void translate(EvtVector4R d)
void createParticle(EvtVector4R p4, EvtVector4R x, int prntfirst, int prntlast, int id)