ThePEG  1.8.0
ThePEGStrategy.h
1 // -*- C++ -*-
2 //
3 // ThePEGStrategy.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_ThePEGStrategy_H
10 #define ThePEG_ThePEGStrategy_H
11 // This is the declaration of the ThePEGStrategy class.
12 
13 #include "ThePEG/Repository/Strategy.h"
14 
15 namespace ThePEG {
16 
25 class ThePEGStrategy: public Strategy {
26 
27 public:
28 
32  static void Init();
33 
34 protected:
35 
42  virtual IBPtr clone() const;
43 
48  virtual IBPtr fullclone() const;
50 
51 private:
52 
57 
62 
63 };
64 
65 
70 template <>
73  typedef Strategy NthBase;
74 };
75 
79 template <>
80 struct ClassTraits<ThePEGStrategy>: public ClassTraitsBase<ThePEGStrategy> {
82  static string className() { return "ThePEG::ThePEGStrategy"; }
86  static string library() { return "ThePEGStrategy.so"; }
87 };
88 
91 }
92 
93 #endif /* ThePEG_ThePEGStrategy_H */
ClassTraitsType is an empty, non-polymorphic, base class.
Definition: ClassTraits.h:30
ThePEGStrategy & operator=(const ThePEGStrategy &)
Private and non-existent assignment operator.
The Strategy class represents a general strategy to be assigned to an EventGenerator.
Definition: Strategy.h:41
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
A concreate implementation of ClassDescriptionBase describing a concrete class without persistent dat...
static void Init()
Standard Init function used to initialize the interface.
virtual IBPtr clone() const
Make a simple clone of this object.
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
The default concrete implementation of ClassTraitsBase.
Definition: ClassTraits.h:134
BaseClassTraits describes the base classes of the templated class.
Definition: ClassTraits.h:156
static NoPIOClassDescription< ThePEGStrategy > initThePEGStrategy
Describe concrete class without persistent data.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
The ThePEGStrategy class is a sub-class of the Strategy class, simply implementing the correct citati...
The templated ClassTraitsBase class defines a set of default information about classes used by ThePEG...
Definition: ClassTraits.h:52