ThePEG is hosted by Hepforge, IPPP Durham
ThePEG  2.1.4
ThePEG::EventConfig Struct Reference

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

#include <EventConfig.h>

Static Public Member Functions

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

Static Public Attributes

static tcEventBasePtr currentGenerator
 Optional pointer to the current EventGenerator. More...
 

Detailed Description

A helper class to facilitate persistent input and output.

Definition at line 95 of file EventConfig.h.

Member Function Documentation

◆ getHandler()

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

Read a handler object from a persistent stream.

◆ getParticleData()

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

Read a ParticleData object from a persistent stream.

◆ nameHandler()

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

Return the name of a handler object.

◆ putHandler()

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

Write a handler object to a persistent stream.

◆ putParticleData()

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

Write a ParticleData object to a persistent stream.

Member Data Documentation

◆ currentGenerator

tcEventBasePtr ThePEG::EventConfig::currentGenerator
static

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: