thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
FixedCMSLuminosity.h
1 // -*- C++ -*-
2 //
3 // FixedCMSLuminosity.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2019 Leif Lonnblad
5 //
6 // ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
8 //
9 #ifndef ThePEG_FixedCMSLuminosity_H
10 #define ThePEG_FixedCMSLuminosity_H
11 // This is the declaration of the FixedCMSLuminosity class.
12 
13 #include "LuminosityFunction.h"
14 
15 namespace ThePEG {
16 
34 
35 public:
36 
42  virtual ~FixedCMSLuminosity();
44 
45 public:
46 
50  Energy energy() const { return maximumCMEnergy(); }
51 
52 public:
53 
57  static void Init();
58 
59 protected:
60 
67  virtual IBPtr clone() const;
68 
73  virtual IBPtr fullclone() const;
75 
76 private:
77 
81  void setEnergy(Energy);
82 
86  Energy getEnergy() const;
87 
88 private:
89 
94 
99 
100 };
101 
108 template <>
111  typedef LuminosityFunction NthBase;
112 };
113 
118 template <>
119 struct ClassTraits<FixedCMSLuminosity>:
120  public ClassTraitsBase<FixedCMSLuminosity> {
122  static string className() { return "ThePEG::FixedCMSLuminosity"; }
126  static string library() { return "FixedCMSLuminosity.so"; }
127 };
128 
131 }
132 
133 #endif /* ThePEG_FixedCMSLuminosity_H */
static void Init()
Standard Init function used to initialize the interface.
ClassTraitsType is an empty, non-polymorphic, base class.
Definition: ClassTraits.h:30
virtual ~FixedCMSLuminosity()
Destructor.
The LuminosityFunction describes the momentum distribution of the incoming beams in an experiment...
virtual IBPtr clone() const
Make a simple clone of this object.
static NoPIOClassDescription< FixedCMSLuminosity > initFixedCMSLuminosity
Describe a concrete class with persistent data.
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
virtual Energy maximumCMEnergy() const
Return the maximum possible center of mass energy for an event.
A concreate implementation of ClassDescriptionBase describing a concrete class without persistent dat...
Energy getEnergy() const
Utility function used by the interface.
FixedCMSLuminosity & operator=(const FixedCMSLuminosity &)=delete
Private and non-existent assignment operator.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
Energy energy() const
The total energy in the cms of the incoming particles.
The default concrete implementation of ClassTraitsBase.
Definition: ClassTraits.h:134
void setEnergy(Energy)
Utility function used by the interface.
BaseClassTraits describes the base classes of the templated class.
Definition: ClassTraits.h:156
The FixedCMSLuminosity class describes an experiment with incoming particles colliding with precicely...
The templated ClassTraitsBase class defines a set of default information about classes used by ThePEG...
Definition: ClassTraits.h:52