thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
Handlers
SimpleZGenerator.h
1
// -*- C++ -*-
2
//
3
// SimpleZGenerator.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_SimpleZGenerator_H
10
#define THEPEG_SimpleZGenerator_H
11
// This is the declaration of the SimpleZGenerator class.
12
13
#include "ThePEG/Handlers/ZGenerator.h"
14
15
namespace
ThePEG
{
16
26
class
SimpleZGenerator
:
public
ZGenerator
{
27
28
public
:
29
35
virtual
~SimpleZGenerator
();
37
38
public
:
39
52
virtual
double
generate
(
cPDPtr
q1,
cPDPtr
q2,
Energy2
mT2 )
const
;
54
55
public
:
56
63
void
persistentOutput
(
PersistentOStream
& os)
const
;
64
70
void
persistentInput
(
PersistentIStream
& is,
int
version);
72
76
static
void
Init
();
77
78
protected
:
79
86
virtual
IBPtr
clone
()
const
;
87
92
virtual
IBPtr
fullclone
()
const
;
94
95
private
:
96
100
static
ClassDescription<SimpleZGenerator>
initSimpleZGenerator
;
101
105
SimpleZGenerator
&
operator=
(
const
SimpleZGenerator
&) =
delete
;
106
107
};
108
109
}
110
111
112
#include "ThePEG/Utilities/ClassTraits.h"
113
114
namespace
ThePEG
{
115
122
template
<>
123
struct
BaseClassTrait<SimpleZGenerator,1>:
public
ClassTraitsType {
125
typedef
ZGenerator
NthBase
;
126
};
127
132
template
<>
133
struct
ClassTraits<SimpleZGenerator>
134
:
public
ClassTraitsBase<SimpleZGenerator> {
136
static
string
className
() {
return
"ThePEG::SimpleZGenerator"
; }
142
static
string
library
() {
return
"SimpleZGenerator.so"
; }
143
144
};
145
148
}
149
150
#endif
/* THEPEG_SimpleZGenerator_H */
ThePEG::ClassDescription
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data.
Definition:
ClassDescription.h:333
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::Qty< 0, 2, 0 >
ThePEG::SimpleZGenerator
SimpleZGenerator is a very simple concrete subclass of ZGenerator.
Definition:
SimpleZGenerator.h:26
ThePEG::SimpleZGenerator::initSimpleZGenerator
static ClassDescription< SimpleZGenerator > initSimpleZGenerator
Describe a concrete class with persistent data.
Definition:
SimpleZGenerator.h:100
ThePEG::SimpleZGenerator::Init
static void Init()
Standard Init function used to initialize the interfaces.
ThePEG::SimpleZGenerator::clone
virtual IBPtr clone() const
Make a simple clone of this object.
ThePEG::SimpleZGenerator::operator=
SimpleZGenerator & operator=(const SimpleZGenerator &)=delete
Private and non-existent assignment operator.
ThePEG::SimpleZGenerator::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
ThePEG::SimpleZGenerator::generate
virtual double generate(cPDPtr q1, cPDPtr q2, Energy2 mT2) const
Return the momentum fraction.
ThePEG::SimpleZGenerator::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
ThePEG::SimpleZGenerator::~SimpleZGenerator
virtual ~SimpleZGenerator()
Destructor.
ThePEG::SimpleZGenerator::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
ThePEG::ZGenerator
ZGenerator is the base class for all classes implementing models to generate the momentum fraction,...
Definition:
ZGenerator.h:32
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
ThePEG::BaseClassTrait::NthBase
int NthBase
The type of the BaseN'th base class (int means there are no further base classes).
Definition:
ClassTraits.h:161
ThePEG::ClassTraitsBase::className
static string className()
Return the name of class T.
Definition:
ClassTraits.h:66
ThePEG::ClassTraitsBase::library
static string library()
The name of a file containing the dynamic library where the class T is implemented.
Definition:
ClassTraits.h:85
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6