ThePEG::EventConfig Struct Reference

A helper class to facilitate persistent input and output. More...

#include <EventConfig.h>

List of all members.

Static Public Member Functions

static void putHandler (PersistentOStream &os, tcEventBasePtr h)
 Write a handler object to a persistent stream.
static void getHandler (PersistentIStream &is, tcEventBasePtr &h)
 Read a handler object from a persistent stream.
static void putParticleData (PersistentOStream &os, tcEventPDPtr pd)
 Write a ParticleData object to a persistent stream.
static void getParticleData (PersistentIStream &is, cEventPDPtr &pd)
 Read a ParticleData object from a persistent stream.
static string nameHandler (tcEventBasePtr h)
 Return the name of a handler object.

Static Public Attributes

static tcEventBasePtr currentGenerator
 Optional pointer to the current EventGenerator.


Detailed Description

A helper class to facilitate persistent input and output.

Definition at line 95 of file EventConfig.h.


Member Function Documentation

static void ThePEG::EventConfig::putHandler ( PersistentOStream os,
tcEventBasePtr  h 
) [static]

Write a handler object to a persistent stream.

static void ThePEG::EventConfig::getHandler ( PersistentIStream is,
tcEventBasePtr h 
) [static]

Read a handler object from a persistent stream.

static void ThePEG::EventConfig::putParticleData ( PersistentOStream os,
tcEventPDPtr  pd 
) [static]

Write a ParticleData object to a persistent stream.

static void ThePEG::EventConfig::getParticleData ( PersistentIStream is,
cEventPDPtr pd 
) [static]

Read a ParticleData object from a persistent stream.

static string ThePEG::EventConfig::nameHandler ( tcEventBasePtr  h  )  [static]

Return the name of a handler object.


Member Data Documentation

Optional pointer to the current EventGenerator.

If currentGenerator is set during persistent output, only the PDG number of a particle type is written rather than the full ParticleData object. Also only the name of handlers is written rather than the full objects. When this is read back in again, the currentGenerator must be set so that conversion from name/number back to objects can be done.

Definition at line 106 of file EventConfig.h.


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

Generated on Thu Apr 29 12:42:59 2010 for ThePEG by  doxygen 1.5.5