thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
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.
 
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 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: