 |
Version: SMASH-2.0.2
|
|
Go to the documentation of this file.
12 #include "HepMC3/Print.h"
71 const bool full_event,
const int total_N,
74 filename_(path / (name +
".asciiv3")) {
87 const int32_t event_number,
90 logg[
LOutput].debug() <<
"Writing event " << event_number <<
" with "
91 <<
event_.particles().size() <<
" particles and "
92 <<
event_.vertices().size() <<
" vertices to output "
static constexpr int LOutput
HepMC3::GenEvent event_
The event.
bf::path filename_unfinished_
Filename of output as long as simulation is still running.
Structure to contain custom data for output.
std::array< einhard::Logger<>, std::tuple_size< LogArea::AreaTuple >::value > logg
An array that stores all pre-configured Logger objects.
std::unique_ptr< HepMC3::WriterAscii > output_file_
Pointer to Ascii HepMC3 output file.
~HepMcOutput()
Destructor renames file.
HepMcOutput(const bf::path &path, std::string name, const bool full_event, const int total_N, const int proj_N)
Create HepMC particle output.
void at_eventend(const Particles &particles, const int32_t event_number, const EventInfo &event) override
Add the final particles information of an event to the central vertex.
Base class for output handlers that need the HepMC3 structure.
void at_eventend(const Particles &particles, const int32_t event_number, const EventInfo &event) override
Add the final particles information of an event to the central vertex.
const bf::path filename_
Filename of output.