StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
HepMC::IO_BaseClass Class Referenceabstract

all input/output classes inherit from IO_BaseClass More...

#include <IO_BaseClass.h>

Inheritance diagram for HepMC::IO_BaseClass:
HepMC::I_Pythia8 HepMC::IO_AsciiParticles HepMC::IO_GenEvent HepMC::IO_HEPEVT HepMC::IO_HERWIG HepMC::Pythia8ToHepMC HepMC::Pythia8ToHepMC HepMC::Pythia8ToHepMC

Public Member Functions

virtual void write_event (const GenEvent *)=0
 write this GenEvent
 
virtual bool fill_next_event (GenEvent *)=0
 fill this GenEvent
 
virtual void print (std::ostream &ostr=std::cout) const
 write output to ostr
 
GenEventread_next_event ()
 do not over-ride More...
 
virtual GenEvent *& operator>> (GenEvent *&)
 the same as read_next_event
 
virtual const GenEvent *& operator<< (const GenEvent *&)
 the same as write_event
 
virtual GenEvent *& operator<< (GenEvent *&)
 the same as write_event
 

Detailed Description

all input/output classes inherit from IO_BaseClass

If you want to write a new IO class, then inherit from this class and re-define read_event() and write_event()

Definition at line 34 of file IO_BaseClass.h.

Member Function Documentation

GenEvent * HepMC::IO_BaseClass::read_next_event ( )
inline

do not over-ride

creates a new event and fills it by calling the sister method read_next_event( GenEvent* )

Definition at line 74 of file IO_BaseClass.h.

References fill_next_event().

Referenced by operator>>().


The documentation for this class was generated from the following file: