herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Statistics::CrossSections Class Reference

A simulation run. More...

#include <CrossSections.h>

Public Member Functions

 CrossSections ()
 Default constructor.
 
 CrossSections (const std::string &newName)
 Construct giving a name and seed.
 
virtual ~CrossSections ()
 Destructor.
 
DistributionaddDistribution (const Distribution &)
 Add a distribution.
 
Distributiondistribution (const std::string &histoName)
 Return a given distribution.
 
const Distributiondistribution (const std::string &histoName) const
 Return a given distribution.
 
const std::map< std::string, Distribution > & distributions () const
 Return the distributions.
 
const std::string & name () const
 Return the name of the run.
 
void name (const std::string &newName)
 Set the name of the run.
 
double integral () const
 The integral.
 
double varianceOfIntegral () const
 The variance of the integral.
 
CrossSectionsoperator+= (const CrossSections &other)
 Add.
 
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.
 
double theIntegral
 The integral.
 
double theVarianceOfIntegral
 The variance of the integral.
 
std::map< std::string, DistributiontheDistributions
 The distributions.
 

Detailed Description

A simulation run.

Author
Simon Platzer

Definition at line 19 of file CrossSections.h.

Member Function Documentation

◆ distributions()

const std::map< std::string, Distribution > & Statistics::CrossSections::distributions ( ) const
inline

Return the distributions.

Definition at line 58 of file CrossSections.h.

References theDistributions.

◆ integral()

double Statistics::CrossSections::integral ( ) const
inline

The integral.

Definition at line 73 of file CrossSections.h.

References theIntegral.

◆ name() [1/2]

const std::string & Statistics::CrossSections::name ( ) const
inline

Return the name of the run.

Definition at line 63 of file CrossSections.h.

References theName.

◆ name() [2/2]

void Statistics::CrossSections::name ( const std::string &  newName)
inline

Set the name of the run.

Definition at line 68 of file CrossSections.h.

References theName.

◆ varianceOfIntegral()

double Statistics::CrossSections::varianceOfIntegral ( ) const
inline

The variance of the integral.

Definition at line 78 of file CrossSections.h.

References theVarianceOfIntegral.

Member Data Documentation

◆ theDistributions

std::map<std::string,Distribution> Statistics::CrossSections::theDistributions
private

The distributions.

Definition at line 119 of file CrossSections.h.

Referenced by distributions().

◆ theIntegral

double Statistics::CrossSections::theIntegral
private

The integral.

Definition at line 109 of file CrossSections.h.

Referenced by integral().

◆ theName

std::string Statistics::CrossSections::theName
private

The name of the run.

Definition at line 104 of file CrossSections.h.

Referenced by name().

◆ theVarianceOfIntegral

double Statistics::CrossSections::theVarianceOfIntegral
private

The variance of the integral.

Definition at line 114 of file CrossSections.h.

Referenced by varianceOfIntegral().


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