thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
EventConfig.h
Go to the documentation of this file.
1// -*- C++ -*-
2//
3// EventConfig.h is a part of ThePEG - Toolkit for HEP Event Generation
4// Copyright (C) 1999-2019 Leif Lonnblad
5//
6// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8//
9#ifndef ThePEG_EventConfig_H
10#define ThePEG_EventConfig_H
11
22#ifndef ThePEG_NOT_ThePEG
23
25#include "ThePEG/Utilities/Rebinder.fh"
26#include "ThePEG/Persistency/PersistentOStream.fh"
27#include "ThePEG/Persistency/PersistentIStream.fh"
28
29#ifndef ThePEG_ALTERNATIVE_EVENT_RECORD
30
31#include "ThePEG/Vectors/Lorentz5Vector.h"
32#include "ThePEG/Vectors/LorentzRotation.h"
33
34namespace ThePEG {
35
50
54
55
61
70
72typedef vector<tPPtr> tParticleVector;
74typedef vector<PPtr> ParticleVector;
76typedef set<PPtr, less<PPtr> > ParticleSet;
78typedef set<tPPtr, less<tPPtr> > tParticleSet;
80typedef set<tcPPtr, less<tcPPtr> > tcParticleSet;
82typedef vector<StepPtr> StepVector;
84typedef vector<SubProPtr> SubProcessVector;
86typedef vector<tSubProPtr> tSubProcessVector;
88typedef vector<CollPtr> CollisionVector;
90typedef set<StepPtr, less<StepPtr> > StepSet;
92typedef set<SubProPtr, less<SubProPtr> > SubProcessSet;
93
96
107
117 static string nameHandler(tcEventBasePtr h);
118
119};
120
121}
122
123#else
124
125#include ThePEG_ALTERNATIVE_EVENT_RECORD
126
127#endif
128
129#endif /* ThePEG_NOT_ThePEG */
130
131
132#endif /* ThePEG_EventConfig_H */
133
This is the main config header file for ThePEG.
ParticleData inherits from InterfacedBase and represents the properties of a particle type.
Definition: ParticleData.h:36
The Particle class is used to describe an instance of a particle.
Definition: Particle.h:83
PersistentIStream is used to read persistent objects from a stream where they were previously written...
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
ConstRCPtr is a reference counted (smart) const pointer.
Definition: RCPtr.h:320
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
Definition: RCPtr.h:696
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
Definition: RCPtr.h:519
Rebinder is a class associating pairs of pointers to objects.
Definition: Rebinder.h:27
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
Ptr< EventRecordBase >::transient_pointer tEventBasePtr
Alias for a transient pointer to EventRecordBase.
Definition: EventConfig.h:47
set< tcPPtr, less< tcPPtr > > tcParticleSet
A set of transient pointers to const Particle.
Definition: EventConfig.h:80
set< tPPtr, less< tPPtr > > tParticleSet
A set of transient pointers to Particle.
Definition: EventConfig.h:78
Ptr< EventRecordBase >::transient_const_pointer tcEventBasePtr
Alias for a transient pointer to const EventRecordBase.
Definition: EventConfig.h:49
vector< tSubProPtr > tSubProcessVector
A vector of transient pointers to SubProcess.
Definition: EventConfig.h:86
Ptr< EventRecordBase >::const_pointer cEventBasePtr
Alias for a reference counted pointer to const EventRecordBase.
Definition: EventConfig.h:45
set< PPtr, less< PPtr > > ParticleSet
A set of pointers to Particle.
Definition: EventConfig.h:76
ParticleData ParticleDataClass
ParticleDataClass is the name used for ParticleData in the event record classes.
Definition: EventConfig.h:60
Rebinder< EventRecordBase > EventTranslationMap
Alias for a rebinder object able to relate pointers to original objects to pointers to their clones.
Definition: EventConfig.h:53
set< StepPtr, less< StepPtr > > StepSet
A set of pointers to Step.
Definition: EventConfig.h:90
vector< StepPtr > StepVector
A vector of pointers to Step.
Definition: EventConfig.h:82
Ptr< EventRecordBase >::pointer EventBasePtr
Alias for a reference counted pointer to EventRecordBase.
Definition: EventConfig.h:43
vector< SubProPtr > SubProcessVector
A vector of pointers to SubProcess.
Definition: EventConfig.h:84
vector< CollPtr > CollisionVector
A vector of pointers to Collision.
Definition: EventConfig.h:88
Ptr< ParticleDataClass >::transient_pointer tEventPDPtr
Alias for a transient pointer to ParticleDataClass.
Definition: EventConfig.h:67
vector< tPPtr > tParticleVector
A vector of transient pointers to Particle.
Definition: EventConfig.h:72
Ptr< ParticleDataClass >::pointer EventPDPtr
Alias for a reference counted pointer to ParticleDataClass.
Definition: EventConfig.h:63
Base EventRecordBase
EventRecordBase is the base class of all event record classes.
Definition: EventConfig.h:41
vector< PPtr > ParticleVector
A vector of pointers to Particle objects.
Definition: Containers.h:73
set< SubProPtr, less< SubProPtr > > SubProcessSet
A set of pointers to SubProcess.
Definition: EventConfig.h:92
Ptr< ParticleDataClass >::transient_const_pointer tcEventPDPtr
Alias for a transient pointer to const ParticleDataClass.
Definition: EventConfig.h:69
Particle ParticleClass
ParticleClass is the name used for Particle in the event record classes.
Definition: EventConfig.h:57
Ptr< ParticleDataClass >::const_pointer cEventPDPtr
Alias for a reference counted pointer to const ParticleDataClass.
Definition: EventConfig.h:65
Define the base class from which all (polymorphic) classes in ThePEG are derived.
Definition: ThePEG.h:54
A helper class to facilitate persistent input and output.
Definition: EventConfig.h:95
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 void getHandler(PersistentIStream &is, tcEventBasePtr &h)
Read a handler object from a persistent stream.
static void putHandler(PersistentOStream &os, tcEventBasePtr h)
Write a handler object to a persistent stream.
static string nameHandler(tcEventBasePtr h)
Return the name of a handler object.
static tcEventBasePtr currentGenerator
Optional pointer to the current EventGenerator.
Definition: EventConfig.h:106