Herwig 7.3.0
|
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. | |
Histogram & | addHistogram (const std::string &newName, const std::vector< double > &newBoundaries) |
Add a histogram. | |
Histogram & | addHistogram (const std::string &newName, const std::vector< double > &newBoundaries, const std::pair< double, double > &newPeriodicity) |
Add a histogram. | |
Histogram & | histogram (const std::string &histoName) |
Return a given histogram. | |
const Histogram & | histogram (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. | |
Run & | operator+= (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, Histogram > | theHistograms |
The histograms. | |
|
inline |
Return the total number of attempted points.
Definition at line 106 of file Run.h.
References theAttemptedPoints.
|
inline |
Add a point to this run.
Definition at line 60 of file Run.h.
References theSumOfSquaredWeights, and theSumOfWeights.
|
inline |
|
inline |
|
inline |
|
inline |
The sum of squared weights.
Definition at line 116 of file Run.h.
References theSumOfSquaredWeights.
|
inline |
|
private |
The total number of attempted points.
Definition at line 147 of file Run.h.
Referenced by attemptedPoints().
|
private |
|
private |
|
private |
The sum of squared weights.
Definition at line 157 of file Run.h.
Referenced by count(), and sumOfSquaredWeights().
|
private |
The sum of weights.
Definition at line 152 of file Run.h.
Referenced by count(), and sumOfWeights().