SSO Logout

Subversion Repositories hepmc

Compare Revisions

Ignore whitespace Rev 516 → Rev 517

/branches/HEPMC_02_07_proposal/src/WeightContainer.cc
16,6 → 16,7
#include <stdexcept>
 
#include "HepMC/WeightContainer.h"
#include "HepMC/StreamHelpers.h"
 
namespace HepMC {
 
135,5 → 136,30
}
}
 
std::ostream& WeightContainer::write_io( std::ostream& ostr )
{
ostr << ' ' << (int)size() ;
for ( const_map_iterator w = map_begin();
w != map_end(); ++w ) {
detail::output( ostr, m_weights[w->second] );
}
detail::output( ostr,'\n');
// now add names for weights
// note that this prints a new line if and only if the weight container
// is not empty
if ( ! empty() ) {
ostr << "N " << (int)size() << " " ;
for ( const_map_iterator w = map_begin();
w != map_end(); ++w ) {
detail::output( ostr,'"');
ostr << w->first;
detail::output( ostr,'"');
detail::output( ostr,' ');
}
detail::output( ostr,'\n');
}
return ostr;
}
 
} // HepMC
 
/branches/HEPMC_02_07_proposal/ChangeLog
1,10 → 1,33
 
2012-01-23 Lynn Garren
 
* HepMC/WeightContainer.h: add write_io method for streaming output
 
2011-12-28 Lynn Garren
 
* Windows builds are no longer supported.
* removed all VCMakefile.in files
* still possible to build on Windows with cmake
 
-------------------------- HepMC-2.06.07 --------------------------
 
2012-01-09 Lynn Garren
 
* remove all VCMakefile.in files
* Use cmake to build for Windows
* cmake is now the preferred build method
 
2012-01-05 Lynn Garren
 
* src/GenEvent.cc: fix a typo in error report for GenEvent::use_length_unit
* examples/pythia8: add main31 and main32 from pythia8
 
2012-01-05 Lynn Garren
 
* GenParticle.h, GenVertex.h, PdfInfo.h, SimpleVector.h, SimpleVector.icc:
Rename local variables to avoid shadowing class variables.
This problem surfaces when compiling with -Wshadow.
 
 
-------------------------- HepMC-2.06.06 --------------------------
 
2011-11-09 Lynn Garren
/branches/HEPMC_02_07_proposal/HepMC/WeightContainer.h
56,6 → 56,8
void print( std::ostream& ostr = std::cout ) const;
/// write weights in a readable table
void write( std::ostream& ostr = std::cout ) const;
/// method for use by output stream
std::ostream& write_io( std::ostream& );
 
/// size of weight container
size_type size() const;