9 char* cursor = &(buf[0]);
11 unsigned long length = cursor - &(buf[0]);
16 if (!iflong) printf(
"INFO: the parameter is ignored as HEPEVTZEUS always uses long format\n");
18 char* cursor = &(buf[0]);
24 std::ptrdiff_t length = cursor - &(buf[0]);
Definition of class HEPEVT_Wrapper.
Definition of class WriterHEPEVTZEUS.
int first_child(const int index) const
Get index of 1st daughter.
int last_parent(const int index) const
Get index of last mother.
int event_number() const
Get event number.
int last_child(const int index) const
Get index of last daughter.
int first_parent(const int index) const
Get index of 1st mother.
double pz(const int index) const
Get Z momentum.
double py(const int index) const
Get Y momentum.
int id(const int index) const
Get PDG particle id.
double t(const int index) const
Get production time.
double y(const int index) const
Get Y Production vertex.
int number_entries() const
Get number of entries.
double m(const int index) const
Get generated mass.
int status(const int index) const
Get status code.
double px(const int index) const
Get X momentum.
double z(const int index) const
Get Z Production vertex.
double x(const int index) const
Get X Production vertex.
double e(const int index) const
Get Energy.
void write_hepevt_particle(int index, bool iflong=true) override
Write particles.
void write_hepevt_event_header() override
Write the header.
WriterHEPEVTZEUS(const std::string &filename)
Constructor.
GenEvent I/O serialization for HEPEVT files.
HEPEVT_Wrapper_Template< 100000 > m_hepevt_interface
Templated HEPEVT interface.
std::ostream * m_stream
Output stream.