ThePEG  1.8.0
SimpleZGenerator.h
1 // -*- C++ -*-
2 //
3 // SimpleZGenerator.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_SimpleZGenerator_H
10 #define THEPEG_SimpleZGenerator_H
11 // This is the declaration of the SimpleZGenerator class.
12 
13 #include "ThePEG/Handlers/ZGenerator.h"
14 
15 namespace ThePEG {
16 
27 
28 public:
29 
35  virtual ~SimpleZGenerator();
37 
38 public:
39 
52  virtual double generate(cPDPtr q1, cPDPtr q2, Energy2 mT2 ) const;
54 
55 public:
56 
63  void persistentOutput(PersistentOStream & os) const;
64 
70  void persistentInput(PersistentIStream & is, int version);
72 
76  static void Init();
77 
78 protected:
79 
86  virtual IBPtr clone() const;
87 
92  virtual IBPtr fullclone() const;
94 
95 private:
96 
101 
106 
107 };
108 
109 }
110 
111 
112 #include "ThePEG/Utilities/ClassTraits.h"
113 
114 namespace ThePEG {
115 
122 template <>
123 struct BaseClassTrait<SimpleZGenerator,1>: public ClassTraitsType {
125  typedef ZGenerator NthBase;
126 };
127 
132 template <>
133 struct ClassTraits<SimpleZGenerator>
134  : public ClassTraitsBase<SimpleZGenerator> {
136  static string className() { return "ThePEG::SimpleZGenerator"; }
142  static string library() { return "SimpleZGenerator.so"; }
143 
144 };
145 
148 }
149 
150 #endif /* THEPEG_SimpleZGenerator_H */