thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
BreitWignerMass.h
1// -*- C++ -*-
2//
3// BreitWignerMass.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_BreitWignerMass_H
10#define ThePEG_BreitWignerMass_H
11// This is the declaration of the BreitWignerMass class.
12
13#include "ThePEG/PDT/MassGenerator.h"
14
15namespace ThePEG {
16
28
29public:
30
37 virtual bool accept(const ParticleData &) const { return true; }
38
42 virtual Energy mass(const ParticleData &) const;
44
45public:
46
50 static void Init();
51
52protected:
53
60 virtual IBPtr clone() const;
61
66 virtual IBPtr fullclone() const;
68
69private:
70
75
80
81};
82
83
85ThePEG_DECLARE_DYNAMIC_CLASS_TRAITS(BreitWignerMass,MassGenerator,"BreitWignerMass.so");
88}
89
90#endif /* ThePEG_BreitWignerMass_H */
BreitWignerMass is derived from MassGenerator and is able to generate the mass for a particle given i...
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual IBPtr clone() const
Make a simple clone of this object.
virtual bool accept(const ParticleData &) const
Return true if this mass generator can handle the given particle type.
static NoPIOClassDescription< BreitWignerMass > initBreitWignerMass
Describe concrete class without persistent data.
static void Init()
Standard Init function used to initialize the interface.
virtual Energy mass(const ParticleData &) const
Generate a mass for an instance of a given particle type.
BreitWignerMass & operator=(const BreitWignerMass &)=delete
Private and non-existent assignment operator.
MassGenerator is an abstract base class used by the ParticleData class to generate a mass for a Parti...
Definition: MassGenerator.h:27
A concreate implementation of ClassDescriptionBase describing a concrete class without persistent dat...
ParticleData inherits from InterfacedBase and represents the properties of a particle type.
Definition: ParticleData.h:36
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28