ThePEG  1.8.0
NoRemnants.h
1 // -*- C++ -*-
2 //
3 // NoRemnants.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_NoRemnants_H
10 #define ThePEG_NoRemnants_H
11 // This is the declaration of the NoRemnants class.
12 
13 #include "ThePEG/PDF/RemnantHandler.h"
14 // #include "NoRemnants.fh"
15 // #include "NoRemnants.xh"
16 
17 namespace ThePEG {
18 
29 class NoRemnants: public RemnantHandler {
30 
31 public:
32 
40  virtual bool canHandle(tcPDPtr, const cPDVector & partons) const {
41  return partons.empty();
42  }
43 
49  virtual Lorentz5Momentum generate(PartonBinInstance & pb, const double * r,
50  Energy2 scale,
51  const LorentzMomentum & p,
52  bool fixedPartonMomentum = false) const;
53 
68  virtual Lorentz5Momentum generate(PartonBinInstance & pb, const double * r,
69  Energy2 scale, Energy2 shat,
70  const LorentzMomentum & parent,
71  bool fixedPartonMomentum = false) const;
73 
74 public:
75 
79  static void Init();
80 
81 protected:
82 
89  virtual IBPtr clone() const;
90 
95  virtual IBPtr fullclone() const;
97 
98 private:
99 
104 
108  NoRemnants & operator=(const NoRemnants &);
109 
110 };
111 
116 template <>
117 struct BaseClassTrait<NoRemnants,1>: public ClassTraitsType {
119  typedef RemnantHandler NthBase;
120 };
121 
124 template <>
125 struct ClassTraits<NoRemnants>: public ClassTraitsBase<NoRemnants> {
127  static string className() { return "ThePEG::NoRemnants"; }
128 };
129 
132 }
133 
134 #endif /* ThePEG_NoRemnants_H */