21 #include "marley/Event.hh"
22 #include "marley/Error.hh"
23 #include "marley/EventFileReader.hh"
42 virtual operator bool()
const override;
53 std::unique_ptr<marley::Event>
event_;
Object that parses MARLEY output files written in any of the available formats, except for ROOT forma...
Definition: EventFileReader.hh:34
Container for ingoing and outgoing momentum 4-vectors from a reaction.
Definition: Event.hh:66
Object that parses MARLEY output files written in any of the available formats, including ROOT format...
Definition: RootEventFileReader.hh:32
marley::Event * event_ptr_
Bare pointer used to interface the event_ data member with a branch of ttree_ without requiring a man...
Definition: RootEventFileReader.hh:58
std::unique_ptr< TFile > tfile_
TFile used to read ROOT format output files.
Definition: RootEventFileReader.hh:47
std::unique_ptr< marley::Event > event_
Temporary storage for reading events in from a TFile.
Definition: RootEventFileReader.hh:53
virtual bool deduce_file_format() override
Helper function that auto-detects which of the available output formats is appropriate for the reques...
Definition: RootEventFileReader.cc:31
long event_num_
The index of the last TTree entry that was read.
Definition: RootEventFileReader.hh:63
virtual void initialize() override
Prepares the file for reading the events.
Definition: RootEventFileReader.cc:57
virtual bool next_event(marley::Event &ev) override
Read the next MARLEY event record from the file.
Definition: RootEventFileReader.cc:81