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