BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtStdHep.cc File Reference
#include "EvtPatches.hh"
#include "EvtStdHep.hh"
#include "EvtVector4R.hh"
#include <iomanip>
#include <iostream>

Go to the source code of this file.

Functions

ostream & operator<< (ostream &s, const EvtStdHep &stdhep)

Function Documentation

◆ operator<<()

ostream & operator<< ( ostream & s,
const EvtStdHep & stdhep )

Definition at line 71 of file EvtStdHep.cc.

71 {
72
73 int w = s.width();
74 int p = s.precision();
75 ios::fmtflags f = s.flags();
76
77 s << endl;
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
85 s.width( 3 );
86 s << i << " ";
87 s.width( 7 );
88 s << stdhep._id[i] << " ";
89 s.width( 3 );
90 s << stdhep._istat[i] << " ";
91 s.width( 4 );
92 s << stdhep._prntfirst[i] << " ";
93 s.width( 4 );
94 s << stdhep._prntlast[i] << " ";
95 s.width( 4 );
96 s << stdhep._daugfirst[i] << " ";
97 s.width( 4 );
98 s << stdhep._dauglast[i] << " ";
99 s.width( 7 );
100 s.precision( 4 );
101 s << setiosflags( ios::right | ios::fixed );
102 s << stdhep._p4[i].get( 1 ) << " ";
103 s.width( 7 );
104 s.precision( 4 );
105 s << setiosflags( ios::right | ios::fixed );
106 s << stdhep._p4[i].get( 2 ) << " ";
107 s.width( 7 );
108 s.precision( 4 );
109 s << setiosflags( ios::right | ios::fixed );
110 s << stdhep._p4[i].get( 3 ) << " ";
111 s.width( 7 );
112 s.precision( 4 );
113 s << setiosflags( ios::right | ios::fixed );
114 s << stdhep._p4[i].get( 0 ) << " ";
115 s.width( 7 );
116 s.precision( 4 );
117 s << setiosflags( ios::right | ios::fixed );
118 s << stdhep._x[i].get( 0 ) << " ";
119 s.width( 7 );
120 s.precision( 4 );
121 s << setiosflags( ios::right | ios::fixed );
122 s << stdhep._x[i].get( 1 ) << " ";
123 s.width( 7 );
124 s.precision( 4 );
125 s << setiosflags( ios::right | ios::fixed );
126 s << stdhep._x[i].get( 2 ) << " ";
127 s.width( 7 );
128 s.precision( 4 );
129 s << setiosflags( ios::right | ios::fixed );
130 s << stdhep._x[i].get( 3 ) << endl;
131 s.width( 0 );
132 }
133
134 s << endl;
135
136 s.width( w );
137 s.precision( p );
138 s.flags( f );
139
140 return s;
141}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
double w
XmlRpcServer s
double get(int i) const