thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
EventRecord
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
24
#include "
ThePEG/Config/ThePEG.h
"
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
34
namespace
ThePEG
{
35
41
typedef
Base
EventRecordBase
;
43
typedef
Ptr<EventRecordBase>::pointer
EventBasePtr
;
45
typedef
Ptr<EventRecordBase>::const_pointer
cEventBasePtr
;
47
typedef
Ptr<EventRecordBase>::transient_pointer
tEventBasePtr
;
49
typedef
Ptr<EventRecordBase>::transient_const_pointer
tcEventBasePtr
;
50
53
typedef
Rebinder<EventRecordBase>
EventTranslationMap
;
54
55
57
typedef
Particle
ParticleClass
;
60
typedef
ParticleData
ParticleDataClass
;
61
63
typedef
Ptr<ParticleDataClass>::pointer
EventPDPtr
;
65
typedef
Ptr<ParticleDataClass>::const_pointer
cEventPDPtr
;
67
typedef
Ptr<ParticleDataClass>::transient_pointer
tEventPDPtr
;
69
typedef
Ptr<ParticleDataClass>::transient_const_pointer
tcEventPDPtr
;
70
72
typedef
vector<tPPtr>
tParticleVector
;
74
typedef
vector<PPtr>
ParticleVector
;
76
typedef
set<PPtr, less<PPtr> >
ParticleSet
;
78
typedef
set<tPPtr, less<tPPtr> >
tParticleSet
;
80
typedef
set<tcPPtr, less<tcPPtr> >
tcParticleSet
;
82
typedef
vector<StepPtr>
StepVector
;
84
typedef
vector<SubProPtr>
SubProcessVector
;
86
typedef
vector<tSubProPtr>
tSubProcessVector
;
88
typedef
vector<CollPtr>
CollisionVector
;
90
typedef
set<StepPtr, less<StepPtr> >
StepSet
;
92
typedef
set<SubProPtr, less<SubProPtr> >
SubProcessSet
;
93
95
struct
EventConfig
{
96
106
static
tcEventBasePtr
currentGenerator
;
107
109
static
void
putHandler
(
PersistentOStream
& os,
tcEventBasePtr
h);
111
static
void
getHandler
(
PersistentIStream
& is,
tcEventBasePtr
& h);
113
static
void
putParticleData
(
PersistentOStream
& os,
tcEventPDPtr
pd);
115
static
void
getParticleData
(
PersistentIStream
& is,
cEventPDPtr
& pd);
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
ThePEG.h
This is the main config header file for ThePEG.
ThePEG::ParticleData
ParticleData inherits from InterfacedBase and represents the properties of a particle type.
Definition:
ParticleData.h:36
ThePEG::Particle
The Particle class is used to describe an instance of a particle.
Definition:
Particle.h:83
ThePEG::PersistentIStream
PersistentIStream is used to read persistent objects from a stream where they were previously written...
Definition:
PersistentIStream.h:48
ThePEG::PersistentOStream
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
Definition:
PersistentOStream.h:51
ThePEG::Pointer::ConstRCPtr
ConstRCPtr is a reference counted (smart) const pointer.
Definition:
RCPtr.h:320
ThePEG::Pointer::RCPtr
RCPtr is a reference counted (smart) pointer.
Definition:
RCPtr.h:60
ThePEG::Pointer::TransientConstRCPtr
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
Definition:
RCPtr.h:696
ThePEG::Pointer::TransientRCPtr
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
Definition:
RCPtr.h:519
ThePEG::Rebinder
Rebinder is a class associating pairs of pointers to objects.
Definition:
Rebinder.h:27
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
ThePEG::tEventBasePtr
Ptr< EventRecordBase >::transient_pointer tEventBasePtr
Alias for a transient pointer to EventRecordBase.
Definition:
EventConfig.h:47
ThePEG::tcParticleSet
set< tcPPtr, less< tcPPtr > > tcParticleSet
A set of transient pointers to const Particle.
Definition:
EventConfig.h:80
ThePEG::tParticleSet
set< tPPtr, less< tPPtr > > tParticleSet
A set of transient pointers to Particle.
Definition:
EventConfig.h:78
ThePEG::tcEventBasePtr
Ptr< EventRecordBase >::transient_const_pointer tcEventBasePtr
Alias for a transient pointer to const EventRecordBase.
Definition:
EventConfig.h:49
ThePEG::tSubProcessVector
vector< tSubProPtr > tSubProcessVector
A vector of transient pointers to SubProcess.
Definition:
EventConfig.h:86
ThePEG::cEventBasePtr
Ptr< EventRecordBase >::const_pointer cEventBasePtr
Alias for a reference counted pointer to const EventRecordBase.
Definition:
EventConfig.h:45
ThePEG::ParticleSet
set< PPtr, less< PPtr > > ParticleSet
A set of pointers to Particle.
Definition:
EventConfig.h:76
ThePEG::ParticleDataClass
ParticleData ParticleDataClass
ParticleDataClass is the name used for ParticleData in the event record classes.
Definition:
EventConfig.h:60
ThePEG::EventTranslationMap
Rebinder< EventRecordBase > EventTranslationMap
Alias for a rebinder object able to relate pointers to original objects to pointers to their clones.
Definition:
EventConfig.h:53
ThePEG::StepSet
set< StepPtr, less< StepPtr > > StepSet
A set of pointers to Step.
Definition:
EventConfig.h:90
ThePEG::StepVector
vector< StepPtr > StepVector
A vector of pointers to Step.
Definition:
EventConfig.h:82
ThePEG::EventBasePtr
Ptr< EventRecordBase >::pointer EventBasePtr
Alias for a reference counted pointer to EventRecordBase.
Definition:
EventConfig.h:43
ThePEG::SubProcessVector
vector< SubProPtr > SubProcessVector
A vector of pointers to SubProcess.
Definition:
EventConfig.h:84
ThePEG::CollisionVector
vector< CollPtr > CollisionVector
A vector of pointers to Collision.
Definition:
EventConfig.h:88
ThePEG::tEventPDPtr
Ptr< ParticleDataClass >::transient_pointer tEventPDPtr
Alias for a transient pointer to ParticleDataClass.
Definition:
EventConfig.h:67
ThePEG::tParticleVector
vector< tPPtr > tParticleVector
A vector of transient pointers to Particle.
Definition:
EventConfig.h:72
ThePEG::EventPDPtr
Ptr< ParticleDataClass >::pointer EventPDPtr
Alias for a reference counted pointer to ParticleDataClass.
Definition:
EventConfig.h:63
ThePEG::EventRecordBase
Base EventRecordBase
EventRecordBase is the base class of all event record classes.
Definition:
EventConfig.h:41
ThePEG::ParticleVector
vector< PPtr > ParticleVector
A vector of pointers to Particle objects.
Definition:
Containers.h:73
ThePEG::SubProcessSet
set< SubProPtr, less< SubProPtr > > SubProcessSet
A set of pointers to SubProcess.
Definition:
EventConfig.h:92
ThePEG::tcEventPDPtr
Ptr< ParticleDataClass >::transient_const_pointer tcEventPDPtr
Alias for a transient pointer to const ParticleDataClass.
Definition:
EventConfig.h:69
ThePEG::ParticleClass
Particle ParticleClass
ParticleClass is the name used for Particle in the event record classes.
Definition:
EventConfig.h:57
ThePEG::cEventPDPtr
Ptr< ParticleDataClass >::const_pointer cEventPDPtr
Alias for a reference counted pointer to const ParticleDataClass.
Definition:
EventConfig.h:65
ThePEG::Base
Define the base class from which all (polymorphic) classes in ThePEG are derived.
Definition:
ThePEG.h:54
ThePEG::EventConfig
A helper class to facilitate persistent input and output.
Definition:
EventConfig.h:95
ThePEG::EventConfig::putParticleData
static void putParticleData(PersistentOStream &os, tcEventPDPtr pd)
Write a ParticleData object to a persistent stream.
ThePEG::EventConfig::getParticleData
static void getParticleData(PersistentIStream &is, cEventPDPtr &pd)
Read a ParticleData object from a persistent stream.
ThePEG::EventConfig::getHandler
static void getHandler(PersistentIStream &is, tcEventBasePtr &h)
Read a handler object from a persistent stream.
ThePEG::EventConfig::putHandler
static void putHandler(PersistentOStream &os, tcEventBasePtr h)
Write a handler object to a persistent stream.
ThePEG::EventConfig::nameHandler
static string nameHandler(tcEventBasePtr h)
Return the name of a handler object.
ThePEG::EventConfig::currentGenerator
static tcEventBasePtr currentGenerator
Optional pointer to the current EventGenerator.
Definition:
EventConfig.h:106
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6