9 #ifndef THEPEG_HepMCFile_H
10 #define THEPEG_HepMCFile_H
16 #include "ThePEG/Handlers/AnalysisHandler.h"
17 #include "ThePEG/Repository/CurrentGenerator.h"
18 #include "ThePEG/Repository/EventGenerator.h"
19 #include "HepMC/IO_BaseClass.h"
184 #include "ThePEG/Utilities/ClassTraits.h"
193 struct BaseClassTrait<HepMCFile,1> {
195 typedef AnalysisHandler
NthBase;
201 struct ClassTraits<HepMCFile>
202 :
public ClassTraitsBase<HepMCFile> {
204 static string className() {
return "ThePEG::HepMCFile"; }
208 static string library() {
return "HepMCAnalysis.so"; }
PersistentIStream is used to read persistent objects from a stream where they were previously written...
int _unitchoice
Selector for the choice of units.
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data...
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
HepMCFile()
The default constructor.
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
This is the main namespace within which all identifiers in ThePEG are declared.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
The AnalysisHandler is the base class of all analysis objects which may be handled by the FullEventGe...
HepMCFile & operator=(const HepMCFile &)
The assignment operator is private and must never be called.
virtual void dofinish()
Finalize this object.
virtual IBPtr clone() const
Make a simple clone of this object.
HepMC::IO_BaseClass * _hepmcio
The HepMC I/O handler.
static string library()
The name of a file containing the dynamic library where the class T is implemented.
ofstream _hepmcdump
The HepMC dump file.
unsigned int _geneventPrecision
Choice of output precision in GenEvent format.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
static void Init()
The standard Init function used to initialize the interfaces.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
int _format
The HepMC format.
static ClassDescription< HepMCFile > initHepMCFile
The static object used to initialize the description of this class.
RCPtr is a reference counted (smart) pointer.
The HepMCFile class outputs ThePEG events in HepMC format.
InitState state() const
Return the state of initialization of this object.
virtual void doinitrun()
Initialize this object.
static string className()
Return the name of class T.
int NthBase
The type of the BaseN'th base class (int means there are no further base classes).
long _eventNumber
Last event that should be written out as HepMC format.
string _filename
The HepMC filename.