20 #include "marley/OutputFile.hh"
32 const std::string& mode,
bool force =
false);
37 return file_->GetBytesWritten();
48 virtual void open()
override;
50 void load_marley_headers();
57 void write_generator_state(
const marley::JSON& json_config,
65 virtual bool resume(std::unique_ptr<marley::Generator>& gen,
66 long& num_previous_events)
override;
68 virtual void write_event(
const marley::Event* event)
override;
71 std::unique_ptr<TFile> file_ =
nullptr;
75 TTree* tree_ =
nullptr;
Container for ingoing and outgoing momentum 4-vectors from a reaction.
Definition: Event.hh:66
The MARLEY Event generator.
Definition: Generator.hh:42
Abstract base class for objects that deliver output to a file opened by the marley command-line execu...
Definition: OutputFile.hh:29
Definition: RootOutputFile.hh:28
int_fast64_t bytes_written() override
The number of bytes that have been written during the current MARLEY session to this file.
Definition: RootOutputFile.hh:36
virtual void write_flux_avg_tot_xsec(double) override
If needed (for the HEPEVT and ASCII formats), write the flux-averaged total cross section to the file...
Definition: RootOutputFile.hh:43