herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::Stat Struct Reference

Documentation for the statistics struct. More...

#include <stat.h>

Public Member Functions

 Stat ()
 Standard constructor.
 
 Stat (long att, long acc, double w, CrossSection x, double sumw)
 Constructor with arguments.
 
CrossSection xSec () const
 Calculation of the cross section.
 
const Statoperator+= (const Stat &s)
 Overloaded += operator.
 

Public Attributes

long attempted
 Store the number of attempts.
 
long accepted
 Store the number of accepted ones.
 
double sumw
 Sum of weights.
 
CrossSection maxXSec
 Maximal cross section.
 
double totsum
 Maximal weights.
 

Detailed Description

Documentation for the statistics struct.

Copied from ThePEG::StandardEventHandler.

Definition at line 18 of file stat.h.

Constructor & Destructor Documentation

◆ Stat() [1/2]

Herwig::Stat::Stat ( )
inline

Standard constructor.

Definition at line 21 of file stat.h.

◆ Stat() [2/2]

Herwig::Stat::Stat ( long  att,
long  acc,
double  w,
CrossSection  x,
double  sumw 
)
inline

Constructor with arguments.

Definition at line 25 of file stat.h.

Member Function Documentation

◆ operator+=()

const Stat & Herwig::Stat::operator+= ( const Stat s)
inline

Overloaded += operator.

Definition at line 48 of file stat.h.

References accepted, attempted, maxXSec, sumw, and totsum.

◆ xSec()

CrossSection Herwig::Stat::xSec ( ) const
inline

Calculation of the cross section.

Definition at line 32 of file stat.h.

References maxXSec, sumw, and totsum.

Member Data Documentation

◆ accepted

long Herwig::Stat::accepted

Store the number of accepted ones.

Definition at line 39 of file stat.h.

Referenced by operator+=().

◆ attempted

long Herwig::Stat::attempted

Store the number of attempts.

Definition at line 37 of file stat.h.

Referenced by operator+=().

◆ maxXSec

CrossSection Herwig::Stat::maxXSec

Maximal cross section.

Definition at line 43 of file stat.h.

Referenced by operator+=(), and xSec().

◆ sumw

double Herwig::Stat::sumw

Sum of weights.

Definition at line 41 of file stat.h.

Referenced by operator+=(), and xSec().

◆ totsum

double Herwig::Stat::totsum

Maximal weights.

Definition at line 45 of file stat.h.

Referenced by operator+=(), and xSec().


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