HepMC event record
|
GenEvent I/O serialization for HEPEVT files.
Definition at line 23 of file build/outputs/include/HepMC/WriterHEPEVT.h.
#include <WriterHEPEVT.h>
Public Member Functions | |
WriterHEPEVT (const std::string &filename) | |
Default constructor. More... | |
virtual void | write_hepevt_particle (int index, bool iflong=true) |
Write particle to file. More... | |
virtual void | write_hepevt_event_header () |
Write event header to file. More... | |
void | write_event (const GenEvent &evt) |
Write event to file. More... | |
void | close () |
Close file stream. More... | |
bool | failed () |
Get stream error state flag. More... | |
WriterHEPEVT (const std::string &filename) | |
Default constructor. More... | |
virtual void | write_hepevt_particle (int index, bool iflong=true) |
Write particle to file. More... | |
virtual void | write_hepevt_event_header () |
Write event header to file. More... | |
void | write_event (const GenEvent &evt) |
Write event to file. More... | |
void | close () |
Close file stream. More... | |
bool | failed () |
Get stream error state flag. More... | |
void | set_run_info (shared_ptr< GenRunInfo > run) |
Set the global GenRunInfo object. More... | |
void | set_run_info (shared_ptr< GenRunInfo > run) |
Set the global GenRunInfo object. More... | |
shared_ptr< GenRunInfo > | run_info () const |
Get the global GenRunInfo object. More... | |
shared_ptr< GenRunInfo > | run_info () const |
Get the global GenRunInfo object. More... | |
Data Fields | |
FILE * | m_file |
File to write. Need to be public to be accessible by children. More... | |
Private Attributes | |
char * | hepevtbuffer |
Pointer to HEPEVT Fortran common block/C struct. More... | |
int | m_events_count |
Events count. Needed to generate unique object name. More... | |
WriterHEPEVT | ( | const std::string & | filename | ) |
Default constructor.
Definition at line 16 of file WriterHEPEVT.cc.
References WriterHEPEVT::hepevtbuffer, WriterHEPEVT::m_file, and HEPEVT_Wrapper::set_hepevt_address().
WriterHEPEVT | ( | const std::string & | filename | ) |
Default constructor.
|
virtual |
Close file stream.
Implements Writer.
Definition at line 54 of file WriterHEPEVT.cc.
References WriterHEPEVT::m_file.
|
virtual |
Close file stream.
Implements Writer.
|
virtual |
|
virtual |
Get stream error state flag.
Implements Writer.
|
inlineinherited |
Get the global GenRunInfo object.
Definition at line 42 of file build/outputs/include/HepMC/Writer.h.
References Writer::m_run_info.
|
inlineinherited |
Get the global GenRunInfo object.
Definition at line 42 of file include/HepMC/Writer.h.
References Writer::m_run_info.
|
inlineinherited |
Set the global GenRunInfo object.
Definition at line 37 of file build/outputs/include/HepMC/Writer.h.
References Writer::m_run_info.
|
inlineinherited |
Set the global GenRunInfo object.
Definition at line 37 of file include/HepMC/Writer.h.
References Writer::m_run_info.
|
virtual |
|
virtual |
Write event to file.
[in] | evt | Event to be serialized |
Implements Writer.
Definition at line 45 of file WriterHEPEVT.cc.
References HEPEVT_Wrapper::fix_daughters(), HEPEVT_Wrapper::GenEvent_to_HEPEVT(), WriterHEPEVT::m_events_count, HEPEVT_Wrapper::number_entries(), WriterHEPEVT::write_hepevt_event_header(), and WriterHEPEVT::write_hepevt_particle().
|
virtual |
Write event header to file.
Reimplemented in WriterHEPEVTZEUS.
|
virtual |
Write event header to file.
Reimplemented in WriterHEPEVTZEUS.
Definition at line 40 of file WriterHEPEVT.cc.
References HEPEVT_Wrapper::event_number(), WriterHEPEVT::m_file, and HEPEVT_Wrapper::number_entries().
|
virtual |
Write particle to file.
[in] | index | Particle to be serialized |
[in] | iflong | Format of record |
Reimplemented in WriterHEPEVTZEUS.
|
virtual |
Write particle to file.
[in] | index | Particle to be serialized |
[in] | iflong | Format of record |
Reimplemented in WriterHEPEVTZEUS.
Definition at line 23 of file WriterHEPEVT.cc.
References HEPEVT_Wrapper::e(), HEPEVT_Wrapper::first_child(), HEPEVT_Wrapper::first_parent(), HEPEVT_Wrapper::id(), HEPEVT_Wrapper::last_child(), HEPEVT_Wrapper::last_parent(), HEPEVT_Wrapper::m(), WriterHEPEVT::m_file, HEPEVT_Wrapper::px(), HEPEVT_Wrapper::py(), HEPEVT_Wrapper::pz(), HEPEVT_Wrapper::status(), HEPEVT_Wrapper::t(), HEPEVT_Wrapper::x(), HEPEVT_Wrapper::y(), and HEPEVT_Wrapper::z().
|
private |
Pointer to HEPEVT Fortran common block/C struct.
Definition at line 66 of file build/outputs/include/HepMC/WriterHEPEVT.h.
|
private |
Events count. Needed to generate unique object name.
Definition at line 67 of file build/outputs/include/HepMC/WriterHEPEVT.h.
FILE * m_file |
File to write. Need to be public to be accessible by children.
Definition at line 63 of file build/outputs/include/HepMC/WriterHEPEVT.h.