hepmc - Diff between revs 390 and 421
Subversion Repositories:
| Rev 390 | Rev 421 | |||
|---|---|---|---|---|
| Line 286... | Line 286... | |||
| 286 | << " SignalProcessGenVertex Barcode: " | 286 | << " SignalProcessGenVertex Barcode: " | |
| 287 | << ( signal_process_vertex() ? signal_process_vertex()->barcode() | 287 | << ( signal_process_vertex() ? signal_process_vertex()->barcode() | |
| 288 | : 0 ) | 288 | : 0 ) | |
| 289 | << "\n"; | 289 | << "\n"; | |
| 290 | write_units( ostr ); | 290 | write_units( ostr ); | |
| - | 291 | write_cross_section(ostr); | ||
| 291 | ostr << " Entries this event: " << vertices_size() << " vertices, " | 292 | ostr << " Entries this event: " << vertices_size() << " vertices, " | |
| 292 | << particles_size() << " particles.\n"; | 293 | << particles_size() << " particles.\n"; | |
| 293 | if( m_beam_particle_1 && m_beam_particle_2 ) { | 294 | if( m_beam_particle_1 && m_beam_particle_2 ) { | |
| 294 | ostr << " Beam Particle barcodes: " << beam_particles().first->barcode() << " " | 295 | ostr << " Beam Particle barcodes: " << beam_particles().first->barcode() << " " | |
| 295 | << beam_particles().second->barcode() << " \n"; | 296 | << beam_particles().second->barcode() << " \n"; | |
| Line 599... | Line 600... | |||
| 599 | 600 | |||
| 600 | void GenEvent::write_units( std::ostream & os ) const { | 601 | void GenEvent::write_units( std::ostream & os ) const { | |
| 601 | os << " Momenutm units:" << std::setw(8) << name(momentum_unit()); | 602 | os << " Momenutm units:" << std::setw(8) << name(momentum_unit()); | |
| 602 | os << " Position units:" << std::setw(8) << name(length_unit()); | 603 | os << " Position units:" << std::setw(8) << name(length_unit()); | |
| 603 | os << std::endl; | 604 | os << std::endl; | |
| - | 605 | } | ||
| - | 606 | |||
| - | 607 | void GenEvent::write_cross_section( std::ostream& os ) const | ||
| - | 608 | { | ||
| - | 609 | // write the GenCrossSection information if the cross section was set | ||
| - | 610 | if( !cross_section() ) return; | ||
| - | 611 | if( cross_section()->is_set() ) { | ||
| - | 612 | os << " Cross Section: " << cross_section()->cross_section() ; | ||
| - | 613 | os << " +/- " << cross_section()->cross_section_error() ; | ||
| - | 614 | os << std::endl; | ||
| - | 615 | } | ||
| 604 | } | 616 | } | |
| 605 | 617 | |||
| 606 | bool GenEvent::use_momentum_unit( Units::MomentumUnit newunit ) { | 618 | bool GenEvent::use_momentum_unit( Units::MomentumUnit newunit ) { | |
| 607 | // currently not exception-safe. | 619 | // currently not exception-safe. | |
| 608 | // Easy to fix, though, if needed. | 620 | // Easy to fix, though, if needed. | |
