Belle II Software  release-08-01-10
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. More...
 
double first () const
 Lowest bin border. More...
 
double second () const
 Highest bin border. More...
 

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()

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.

◆ second()

double second ( ) const
inline

Highest bin border.

Returns
Highest bin border

Definition at line 63 of file ParticleWeightingBinLimits.h.


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