thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
PDT
MassGenerator.h
1
// -*- C++ -*-
2
//
3
// MassGenerator.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_MassGenerator_H
10
#define ThePEG_MassGenerator_H
11
// This is the declaration of the MassGenerator class.
12
13
#include "
ThePEG/Config/ThePEG.h
"
14
#include "ThePEG/Interface/Interfaced.h"
15
#include "MassGenerator.fh"
16
17
namespace
ThePEG
{
18
27
class
MassGenerator
:
public
Interfaced
{
28
29
public
:
30
37
virtual
bool
accept
(
const
ParticleData
&)
const
= 0;
38
42
virtual
Energy
mass
(
const
ParticleData
&)
const
= 0;
44
45
public
:
46
50
static
void
Init
();
51
52
private
:
53
58
static
AbstractNoPIOClassDescription<MassGenerator>
initMassGenerator
;
59
63
MassGenerator
&
operator=
(
const
MassGenerator
&) =
delete
;
64
65
};
66
71
template
<>
72
struct
BaseClassTrait
<
MassGenerator
,1>:
public
ClassTraitsType
{
74
typedef
Interfaced
NthBase
;
75
};
76
79
template
<>
80
struct
ClassTraits<MassGenerator>:
public
ClassTraitsBase<MassGenerator> {
82
static
string
className
() {
return
"ThePEG::MassGenerator"
; }
83
};
84
87
}
88
89
#endif
/* ThePEG_MassGenerator_H */
ThePEG.h
This is the main config header file for ThePEG.
ThePEG::AbstractNoPIOClassDescription
A concreate implementation of ClassDescriptionBase describing an abstract class without persistent da...
Definition:
ClassDescription.h:417
ThePEG::Interfaced
The Interfaced class is derived from the InterfacedBase class adding a couple of things particular to...
Definition:
Interfaced.h:38
ThePEG::MassGenerator
MassGenerator is an abstract base class used by the ParticleData class to generate a mass for a Parti...
Definition:
MassGenerator.h:27
ThePEG::MassGenerator::Init
static void Init()
Standard Init function used to initialize the interface.
ThePEG::MassGenerator::operator=
MassGenerator & operator=(const MassGenerator &)=delete
Private and non-existent assignment operator.
ThePEG::MassGenerator::accept
virtual bool accept(const ParticleData &) const =0
Return true if this mass generator can handle the given particle type.
ThePEG::MassGenerator::initMassGenerator
static AbstractNoPIOClassDescription< MassGenerator > initMassGenerator
The static object used to initialize the description of this class.
Definition:
MassGenerator.h:58
ThePEG::MassGenerator::mass
virtual Energy mass(const ParticleData &) const =0
Generate a mass for an instance of a given particle type.
ThePEG::ParticleData
ParticleData inherits from InterfacedBase and represents the properties of a particle type.
Definition:
ParticleData.h:36
ThePEG::Qty< 0, 1, 0 >
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
ThePEG::BaseClassTrait
BaseClassTraits describes the base classes of the templated class.
Definition:
ClassTraits.h:156
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::ClassTraitsType
ClassTraitsType is an empty, non-polymorphic, base class.
Definition:
ClassTraits.h:30
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6