ThePEG  1.8.0
BreitWignerMass.h
1 // -*- C++ -*-
2 //
3 // BreitWignerMass.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2011 Leif Lonnblad
5 //
6 // ThePEG is licenced under version 2 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 
80 
81 };
82 
83 
85 ThePEG_DECLARE_DYNAMIC_CLASS_TRAITS(BreitWignerMass,MassGenerator,"BreitWignerMass.so");
88 }
89 
90 #endif /* ThePEG_BreitWignerMass_H */