Changeset 571 in svn for trunk/Utilities/HepMC/src/GenVertex.cc
- Timestamp:
- Nov 2, 2011, 5:06:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/HepMC/src/GenVertex.cc
r349 r571 144 144 145 145 void GenVertex::print( std::ostream& ostr ) const { 146 // find the current stream state 147 std::ios_base::fmtflags orig = ostr.flags(); 148 std::streamsize prec = ostr.precision(); 146 149 if ( barcode()!=0 ) { 147 150 if ( position() != FourVector(0,0,0,0) ) { … … 159 162 ostr << position().x() << ","; 160 163 ostr.width(9); 161 ostr.precision(2);162 164 ostr << position().y() << ","; 163 165 ostr.width(9); 164 ostr.precision(2);165 166 ostr << position().z() << ","; 166 167 ostr.width(9); 167 ostr.precision(2);168 168 ostr << position().t(); 169 169 ostr.setf(std::ios::fmtflags(0), std::ios::floatfield); … … 198 198 ostr << position().x(); 199 199 ostr.width(9); 200 ostr.precision(2);201 200 ostr << position().y(); 202 201 ostr.width(9); 203 ostr.precision(2);204 202 ostr << position().z(); 205 203 ostr.width(9); 206 ostr.precision(2);207 204 ostr << position().t(); 208 205 ostr.setf(std::ios::fmtflags(0), std::ios::floatfield); … … 249 246 ostr << **part2 << std::endl; 250 247 } 248 // restore the stream state 249 ostr.flags(orig); 250 ostr.precision(prec); 251 251 } 252 252
Note:
See TracChangeset
for help on using the changeset viewer.