Fork me on GitHub

Ignore:
Timestamp:
Nov 2, 2011, 5:06:22 PM (13 years ago)
Author:
cp3-support
Message:

upgrade HepMC to version 2.06.05

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/HepMC/src/GenVertex.cc

    r349 r571  
    144144
    145145    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();
    146149        if ( barcode()!=0 ) {
    147150            if ( position() != FourVector(0,0,0,0) ) {
     
    159162                ostr << position().x() << ",";
    160163                ostr.width(9);
    161                 ostr.precision(2);
    162164                ostr << position().y() << ",";
    163165                ostr.width(9);
    164                 ostr.precision(2);
    165166                ostr << position().z() << ",";
    166167                ostr.width(9);
    167                 ostr.precision(2);
    168168                ostr << position().t();
    169169                ostr.setf(std::ios::fmtflags(0), std::ios::floatfield);
     
    198198                ostr << position().x();
    199199                ostr.width(9);
    200                 ostr.precision(2);
    201200                ostr << position().y();
    202201                ostr.width(9);
    203                 ostr.precision(2);
    204202                ostr << position().z();
    205203                ostr.width(9);
    206                 ostr.precision(2);
    207204                ostr << position().t();
    208205                ostr.setf(std::ios::fmtflags(0), std::ios::floatfield);
     
    249246            ostr << **part2 << std::endl;
    250247        }
     248        // restore the stream state
     249        ostr.flags(orig);
     250        ostr.precision(prec);
    251251    }
    252252
Note: See TracChangeset for help on using the changeset viewer.