8 #include "HepMC/WriterHEPEVT.h" 9 #include "HepMC/HEPEVT_Wrapper.h" 11 #include "HepMC/Print.h" 18 m_file=fopen(filename.c_str(),
"w");
static double py(int index)
Get Y momentum.
bool failed()
Get stream error state flag.
static int status(int index)
Get status code.
static bool GenEvent_to_HEPEVT(const GenEvent *evt)
Convert GenEvent to HEPEVT.
virtual void write_hepevt_particle(int index, bool iflong=true)
Write particle to file.
virtual void write_hepevt_event_header()
Write event header to file.
static double y(int index)
Get Y Production vertex.
static double e(int index)
Get Energy.
static double px(int index)
Get X momentum.
static double pz(int index)
Get Z momentum.
static void set_hepevt_address(char *c)
Set Fortran block address.
static int first_child(int index)
Get index of 1st daughter.
static double z(int index)
Get Z Production vertex.
static double t(int index)
Get production time.
Stores event-related information.
void write_event(const GenEvent &evt)
Write event to file.
static int last_child(int index)
Get index of last daughter.
Fortran common block HEPEVT.
static int event_number()
Get event number.
static double x(int index)
Get X Production vertex.
static int first_parent(int index)
Get index of 1st mother.
static int id(int index)
Get PDG particle id.
static double m(int index)
Get generated mass.
void close()
Close file stream.
int m_events_count
Events count. Needed to generate unique object name.
static int number_entries()
Get number of entries.
static int last_parent(int index)
Get index of last mother.
static bool fix_daughters()
Tries to fix list of daughters.
char * hepevtbuffer
Pointer to HEPEVT Fortran common block/C struct.
Definition of template class SmartPointer.
WriterHEPEVT(const std::string &filename)
Default constructor.
FILE * m_file
File to write. Need to be public to be accessible by children.