9 #ifndef ThePEG_SamplerBase_H 10 #define ThePEG_SamplerBase_H 13 #include "ThePEG/Interface/Interfaced.h" 14 #include "SamplerBase.fh" 15 #include "ThePEG/Handlers/StandardEventHandler.fh" 196 static string className() {
return "ThePEG::SamplerBase"; }
virtual void rejectLast()=0
Reject the last chosen phase space point.
PersistentIStream is used to read persistent objects from a stream where they were previously written...
vector< double > & lastPoint()
Return the last generated phase space point.
virtual ~SamplerBase()
Destructor.
virtual int lastBin() const
If the sampler is able to sample several different functions separately, this function should return ...
virtual CrossSection maxXSec() const =0
Return the overestimated integrated cross section.
ClassTraitsType is an empty, non-polymorphic, base class.
tStdEHPtr theEventHandler
The associated event handler.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
static void Init()
Standard Init function used to initialize the interfaces.
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
A concreate implementation of ClassDescriptionBase describing an abstract class with persistent data...
void setEventHandler(tStdEHPtr eh)
Set the event handler for which the function StandardEventHandler::dSigDR(const vector<double> &) fun...
virtual void initialize()=0
Initialize the the sampler, possibly doing presampling of the phase space.
This is the main namespace within which all identifiers in ThePEG are declared.
tStdEHPtr eventHandler() const
Return the associated event handler.
static AbstractClassDescription< SamplerBase > initSamplerBase
Describe an abstract base class with persistent data.
This is the base class for all phase space sampler classes to be used by the EventHandler class to sa...
SamplerBase & operator=(const SamplerBase &)
Private and non-existent assignment operator.
virtual CrossSection integratedXSec() const =0
Return the total integrated cross section determined from the Monte Carlo sampling so far...
virtual CrossSection integratedXSecErr() const =0
Return the error on the total integrated cross section determined from the Monte Carlo sampling so fa...
The Interfaced class is derived from the InterfacedBase class adding a couple of things particular to...
The default concrete implementation of ClassTraitsBase.
virtual double sumWeights() const =0
Return the sum of the weights returned by generate() so far (of the events that were not rejeted)...
This template class allows the compiler to check calculations with physical quantities for dimensiona...
const vector< double > & lastPoint() const
Return the last generated phase space point.
BaseClassTraits describes the base classes of the templated class.
virtual double generate()=0
Generarate a new phase space point and return a weight associated with it.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
The templated ClassTraitsBase class defines a set of default information about classes used by ThePEG...
vector< double > theLastPoint
The last generated phase space point.