thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
Handlers
GaussianPtGenerator.h
1
// -*- C++ -*-
2
//
3
// GaussianPtGenerator.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_GaussianPtGenerator_H
10
#define THEPEG_GaussianPtGenerator_H
11
// This is the declaration of the GaussianPtGenerator class.
12
13
#include "ThePEG/Handlers/PtGenerator.h"
14
15
namespace
ThePEG
{
16
25
class
GaussianPtGenerator
:
public
PtGenerator
{
26
27
public
:
28
34
GaussianPtGenerator
() :
theSigma
(1.0*GeV),
theUpperCut
(5.0*GeV) {}
35
39
virtual
~GaussianPtGenerator
();
41
42
public
:
43
53
virtual
TransverseMomentum
generate
()
const
;
55
56
public
:
57
64
void
persistentOutput
(
PersistentOStream
& os)
const
;
65
71
void
persistentInput
(
PersistentIStream
& is,
int
version);
73
77
static
void
Init
();
78
79
protected
:
80
87
virtual
IBPtr
clone
()
const
;
88
93
virtual
IBPtr
fullclone
()
const
;
95
96
private
:
97
102
Energy
theSigma
;
103
107
Energy
theUpperCut
;
108
109
private
:
110
114
static
ClassDescription<GaussianPtGenerator>
initGaussianPtGenerator
;
115
119
GaussianPtGenerator
&
operator=
(
const
GaussianPtGenerator
&) =
delete
;
120
121
};
122
123
}
124
125
126
#include "ThePEG/Utilities/ClassTraits.h"
127
128
namespace
ThePEG
{
129
136
template
<>
137
struct
BaseClassTrait<GaussianPtGenerator,1>:
public
ClassTraitsType {
139
typedef
PtGenerator
NthBase
;
140
};
141
147
template
<>
148
struct
ClassTraits<GaussianPtGenerator>
149
:
public
ClassTraitsBase<GaussianPtGenerator> {
151
static
string
className
() {
return
"ThePEG::GaussianPtGenerator"
; }
155
static
string
library
() {
return
"GaussianPtGenerator.so"
; }
156
157
};
158
161
}
162
163
#endif
/* THEPEG_GaussianPtGenerator_H */
ThePEG::ClassDescription
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data.
Definition:
ClassDescription.h:333
ThePEG::GaussianPtGenerator
GaussianPtGenerator inherits from the abstract PtGenerator class.
Definition:
GaussianPtGenerator.h:25
ThePEG::GaussianPtGenerator::GaussianPtGenerator
GaussianPtGenerator()
Default constructor.
Definition:
GaussianPtGenerator.h:34
ThePEG::GaussianPtGenerator::~GaussianPtGenerator
virtual ~GaussianPtGenerator()
Destructor.
ThePEG::GaussianPtGenerator::initGaussianPtGenerator
static ClassDescription< GaussianPtGenerator > initGaussianPtGenerator
Describe a concrete class with persistent data.
Definition:
GaussianPtGenerator.h:114
ThePEG::GaussianPtGenerator::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
ThePEG::GaussianPtGenerator::generate
virtual TransverseMomentum generate() const
Generate ( ) components of the transverse momentum.
ThePEG::GaussianPtGenerator::operator=
GaussianPtGenerator & operator=(const GaussianPtGenerator &)=delete
Private and non-existent assignment operator.
ThePEG::GaussianPtGenerator::theUpperCut
Energy theUpperCut
Upper cutoff for the transverse momentum distribution.
Definition:
GaussianPtGenerator.h:107
ThePEG::GaussianPtGenerator::theSigma
Energy theSigma
The width of the Gaussian distribution.
Definition:
GaussianPtGenerator.h:102
ThePEG::GaussianPtGenerator::Init
static void Init()
Standard Init function used to initialize the interfaces.
ThePEG::GaussianPtGenerator::clone
virtual IBPtr clone() const
Make a simple clone of this object.
ThePEG::GaussianPtGenerator::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
ThePEG::GaussianPtGenerator::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
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::RCPtr
RCPtr is a reference counted (smart) pointer.
Definition:
RCPtr.h:60
ThePEG::PtGenerator
PtGenerator is the base for all classes implementing alternative models for transverse momentum gener...
Definition:
PtGenerator.h:29
ThePEG::Qty< 0, 1, 0 >
ThePEG::Transverse< Energy >
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