herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
Statistics::Run Class Reference

A simulation run. More...

#include <Run.h>

Public Member Functions

 Run ()
 Default constructor.
 
 Run (const std::string &newName)
 Construct giving a name and seed.
 
virtual ~Run ()
 Destructor.
 
void initialize ()
 Initialize this run.
 
void reset ()
 Reset this run.
 
void finalize (size_t newAttemptedPoints)
 Finalize this run.
 
void count (double weight)
 Add a point to this run.
 
HistogramaddHistogram (const std::string &newName, const std::vector< double > &newBoundaries)
 Add a histogram.
 
HistogramaddHistogram (const std::string &newName, const std::vector< double > &newBoundaries, const std::pair< double, double > &newPeriodicity)
 Add a histogram.
 
Histogramhistogram (const std::string &histoName)
 Return a given histogram.
 
const Histogramhistogram (const std::string &histoName) const
 Return a given histogram.
 
const std::map< std::string, Histogram > & histograms () const
 Return the histograms.
 
const std::string & name () const
 Return the name of the run.
 
void name (const std::string &newName)
 Set the name of the run.
 
size_t attemptedPoints () const
 Return the total number of attempted points.
 
double sumOfWeights () const
 The sum of weights.
 
double sumOfSquaredWeights () const
 The sum of squared weights.
 
Runoperator+= (const Run &other)
 Add a run to this run.
 
void fromXML (const XML::Element &)
 Fill run data from an XML element.
 
XML::Element toXML () const
 Return an XML element for the data of this run.
 

Private Attributes

std::string theName
 The name of the run.
 
size_t theAttemptedPoints
 The total number of attempted points.
 
double theSumOfWeights
 The sum of weights.
 
double theSumOfSquaredWeights
 The sum of squared weights.
 
std::map< std::string, HistogramtheHistograms
 The histograms.
 

Detailed Description

A simulation run.

Author
Simon Platzer

Definition at line 19 of file Run.h.


The documentation for this class was generated from the following file: