Belle II Software light-2406-ragdoll
ParticleWeightingBinLimits Class Reference

Just pair of numbers - min and max values of bin border. More...

#include <ParticleWeightingBinLimits.h>

Public Member Functions

 ParticleWeightingBinLimits ()
 Constructor.
 
 ParticleWeightingBinLimits (double ul, double ll)
 Constructor.
 
double first () const
 Lowest bin border.
 
double second () const
 Highest bin border.
 

Private Attributes

double m_lowerLimit
 lower limit
 
double m_upperLimit
 upper limit
 

Detailed Description

Just pair of numbers - min and max values of bin border.

Definition at line 21 of file ParticleWeightingBinLimits.h.

Constructor & Destructor Documentation

◆ ParticleWeightingBinLimits() [1/2]

Constructor.

Definition at line 29 of file ParticleWeightingBinLimits.h.

29{};

◆ ParticleWeightingBinLimits() [2/2]

ParticleWeightingBinLimits ( double  ul,
double  ll 
)
inline

Constructor.

Parameters
ulsome bin border
llanother bin border

Definition at line 36 of file ParticleWeightingBinLimits.h.

37 {
38 if (ul > ll) {
39 m_upperLimit = ul;
40 m_lowerLimit = ll;
41 } else if (ul < ll) {
42 m_upperLimit = ll;
43 m_lowerLimit = ul;
44
45 } else {
46 B2FATAL("Trying to create bin with equal limits");
47 }
48 }

Member Function Documentation

◆ first()

double first ( ) const
inline

Lowest bin border.

Returns
Lowest bin border

Definition at line 54 of file ParticleWeightingBinLimits.h.

55 {
56 return m_lowerLimit;
57 }

◆ second()

double second ( ) const
inline

Highest bin border.

Returns
Highest bin border

Definition at line 63 of file ParticleWeightingBinLimits.h.

64 {
65 return m_upperLimit;
66 }

Member Data Documentation

◆ m_lowerLimit

double m_lowerLimit
private

lower limit

Definition at line 22 of file ParticleWeightingBinLimits.h.

◆ m_upperLimit

double m_upperLimit
private

upper limit

Definition at line 23 of file ParticleWeightingBinLimits.h.


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