Herwig 7.3.0
|
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. | |
A pointlike or boxlike eventContribution; serves to define the EventContribution concept.
Definition at line 19 of file EventContribution.h.
|
inline |
Construct an eventContribution with given width.
Definition at line 26 of file EventContribution.h.
|
inlineprivate |
Calculate the normalized overlap with an interval.
Definition at line 136 of file EventContribution.h.
Referenced by overlap().
|
inline |
Return the central value.
Definition at line 39 of file EventContribution.h.
References theCentralValue.
Referenced by periodic().
|
inline |
Adjust to upper boundary.
Definition at line 106 of file EventContribution.h.
References support(), theCentralValue, and theSupport.
|
inline |
Adjust to lower boundary.
Definition at line 94 of file EventContribution.h.
References support(), theCentralValue, and theSupport.
|
inline |
Return the normalized overlap with an interval.
Definition at line 49 of file EventContribution.h.
References calculateOverlap(), and support().
|
inline |
Return the normalized overlap with an interval, assuming a periodic quantity.
Definition at line 119 of file EventContribution.h.
References calculateOverlap(), and support().
|
inline |
Remap the central value and support given a periodicity interval; if the support exceeds the periodicity it is ajusted to the peridocity interval.
Definition at line 65 of file EventContribution.h.
References centralValue(), support(), theCentralValue, and theSupport.
|
inline |
Return the support.
Definition at line 44 of file EventContribution.h.
References theSupport.
Referenced by noOverflow(), noUnderflow(), overlap(), and periodic().
|
inline |
Return the eventContribution weight.
Definition at line 56 of file EventContribution.h.
References theWeight.
|
private |
The central value.
Definition at line 159 of file EventContribution.h.
Referenced by centralValue(), noOverflow(), noUnderflow(), and periodic().
|
private |
The support.
Definition at line 164 of file EventContribution.h.
Referenced by noOverflow(), noUnderflow(), periodic(), and support().
|
private |
The eventContribution weight.
Definition at line 169 of file EventContribution.h.
Referenced by weight().