ThePEG  1.8.0
Onium3GDecayer.h
1 // -*- C++ -*-
2 //
3 // Onium3GDecayer.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_Onium3GDecayer_H
10 #define THEPEG_Onium3GDecayer_H
11 // This is the declaration of the Onium3GDecayer class.
12 
13 #include "ThePEG/PDT/FlatDecayer.h"
14 
15 namespace ThePEG {
16 
30 class Onium3GDecayer: public FlatDecayer {
31 
32 public:
33 
39  Onium3GDecayer() : doShower(true), theMinGGMass(2.0*GeV) {}
40 
44  virtual ~Onium3GDecayer();
46 
47 public:
48 
58  virtual bool accept(const DecayMode & dm) const;
59 
66  virtual ParticleVector decay(const DecayMode & dm, const Particle & p) const;
67 
79  virtual double reweight(const DecayMode & dm, const Particle & parent,
80  const ParticleVector & children) const;
82 
86  bool shower() const { return doShower; }
87 
92  Energy minGGMass() const { return theMinGGMass; }
93 
94 public:
95 
96 
103  void persistentOutput(PersistentOStream & os) const;
104 
110  void persistentInput(PersistentIStream & is, int version);
112 
116  static void Init();
117 
118 protected:
119 
126  virtual IBPtr clone() const;
127 
132  virtual IBPtr fullclone() const;
134 
135 private:
136 
140  bool doShower;
141 
147 
148 private:
149 
154 
159 
160 };
161 
162 }
163 
164 
165 namespace ThePEG {
166 
171 template <>
172 struct BaseClassTrait<Onium3GDecayer,1>: public ClassTraitsType {
174  typedef FlatDecayer NthBase;
175 };
176 
180 template <>
181 struct ClassTraits<Onium3GDecayer>
182  : public ClassTraitsBase<Onium3GDecayer> {
184  static string className() { return "ThePEG::Onium3GDecayer"; }
188  static string library() { return "Onium3GDecayer.so"; }
189 };
190 
193 }
194 
195 #endif /* THEPEG_Onium3GDecayer_H */