thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
DipoleFormFactor.h
1// -*- C++ -*-
2#ifndef ThePEG_DipoleFormFactor_H
3#define ThePEG_DipoleFormFactor_H
4//
5// This is the declaration of the DipoleFormFactor class.
6//
7
8#include "NucleonFormFactor.h"
9#include "ThePEG/Utilities/Maths.h"
10
11namespace ThePEG {
12
20
21public:
22
26 DipoleFormFactor() : q02_(0.71*GeV2)
27 {}
28
34 return Math::powi((1 + q2/q02_),-2);
35 }
36
37public:
38
46
52 void persistentInput(PersistentIStream & is, int version);
54
61 static void Init();
62
63protected:
64
71 virtual IBPtr clone() const;
72
77 virtual IBPtr fullclone() const;
79
80private:
81
87
88private:
89
94
95};
96
97}
98
99#endif /* ThePEG_DipoleFormFactor_H */
Here is the documentation of the DipoleFormFactor class.
static void Init()
The standard Init function used to initialize the interfaces.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
Energy2 q02_
Fitted scale for the dipole form factor.
DipoleFormFactor & operator=(const DipoleFormFactor &)=delete
The assignment operator is private and must never be called.
DipoleFormFactor()
The default constructor.
virtual IBPtr clone() const
Make a simple clone of this object.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
Complex formFactor(tcPDPtr, Energy2 q2) const
Return the form factor.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
The documentation of the NucleonFormFactor class provides a base class for the implementation of nucl...
PersistentIStream is used to read persistent objects from a stream where they were previously written...
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
Definition: RCPtr.h:696
double powi(double x, int p)
Return x rased to the integer power p, using recursion.
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
std::complex< double > Complex
ThePEG code should use Complex for all complex scalars.
Definition: Complex.h:23