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

A pointlike or boxlike eventContribution; serves to define the EventContribution concept. More...

#include <EventContribution.h>

Public Member Functions

 EventContribution (double newCentralValue, double newWeight, double newWidth=0.0)
 Construct an eventContribution with given width.
 
double centralValue () const
 Return the central value.
 
const std::pair< double, double > & support () const
 Return the support.
 
double overlap (const std::pair< double, double > &interval) const
 Return the normalized overlap with an interval.
 
double weight () const
 Return the eventContribution weight.
 
void periodic (const std::pair< double, double > &periodicity)
 Remap the central value and support given a periodicity interval; if the support exceeds the periodicity it is ajusted to the peridocity interval.
 
void noUnderflow (double lower)
 Adjust to lower boundary.
 
void noOverflow (double upper)
 Adjust to upper boundary.
 
double overlap (const std::pair< double, double > &interval, const std::pair< double, double > &periodicity) const
 Return the normalized overlap with an interval, assuming a periodic quantity.
 

Private Member Functions

double calculateOverlap (const std::pair< double, double > &interval, const std::pair< double, double > &newSupport, double norm) const
 Calculate the normalized overlap with an interval.
 

Private Attributes

double theCentralValue
 The central value.
 
std::pair< double, double > theSupport
 The support.
 
double theWeight
 The eventContribution weight.
 

Detailed Description

A pointlike or boxlike eventContribution; serves to define the EventContribution concept.

Author
Simon Platzer

Definition at line 19 of file EventContribution.h.


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