Belle II Software  release-08-01-10
CurvBinsSpec Class Reference

Strategy to construct discrete curv points from discrete overlap specifications. More...

#include <CurvRep.h>

Public Member Functions

 CurvBinsSpec (double lowerBound, double upperBound, long nBins, int nOverlap, int nWidth)
 Constructs a specification for equally spaced discrete curvature values with discrete overlap specification. More...
 
DiscreteCurv::Array constructArray () const
 Constuct the array of discrete curv positions.
 
DiscreteCurv::Array constructInvLinearArray () const
 Constuct the array of discrete curv positions such that the inverse curvatures are distributed equally.
 
DiscreteCurv::Array constructLinearArray () const
 Constuct the array of discrete curv positions such that the curvatures are distributed equally.
 
DiscreteCurvWithArcLength2DCache::Array constructCacheArray () const
 Constuct the array of discrete curv positions including cache for the two dimensional arc length.
 
long getNPositions () const
 Getter for the number of bounds.
 
double getBinWidth () const
 Getter for the bin width in real curv to investigate the value that results from the discrete overlap specification.
 
double getOverlap () const
 Getter for the overlap in real curv to investigate the value that results from the discrete overlap specification.
 
int getNOverlap () const
 Getter for the overlap in discrete number of positions.
 

Private Attributes

double m_lowerBound
 Lower bound of the binning range.
 
double m_upperBound
 Upper bound of the binning range.
 
long m_nBins
 Number of accessable bins.
 
int m_nOverlap = 1
 Overlap of the leaves in curv counted in number of discrete values.
 
int m_nWidth = 3
 Width of the leaves at the maximal level in curv counted in number of discrete values.
 

Detailed Description

Strategy to construct discrete curv points from discrete overlap specifications.

Definition at line 23 of file CurvRep.h.

Constructor & Destructor Documentation

◆ CurvBinsSpec()

CurvBinsSpec ( double  lowerBound,
double  upperBound,
long  nBins,
int  nOverlap,
int  nWidth 
)

Constructs a specification for equally spaced discrete curvature values with discrete overlap specification.

Parameters
lowerBoundLower bound of the value range
upperBoundUpper bound of the value range
nBinsTotal number of final bins to be constructed
nWidthNumber of discrete values in each bin (counted semi open [start, stop)).
nOverlapNumber of discrete values that overlapping bins have in common (counted semi open [start, stop)).

Definition at line 15 of file CurvRep.cc.

16  : m_lowerBound(lowerBound)
17  , m_upperBound(upperBound)
18  , m_nBins(nBins)
19  , m_nOverlap(nOverlap)
20  , m_nWidth(nWidth)
21 {
22  B2ASSERT("Overlap must be smaller than the width.", m_nWidth > m_nOverlap);
23  B2ASSERT("Upper curvature bound must be higher than the lower bound.", m_upperBound > m_lowerBound);
24 }
int m_nOverlap
Overlap of the leaves in curv counted in number of discrete values.
Definition: CurvRep.h:84
double m_lowerBound
Lower bound of the binning range.
Definition: CurvRep.h:75
int m_nWidth
Width of the leaves at the maximal level in curv counted in number of discrete values.
Definition: CurvRep.h:87
double m_upperBound
Upper bound of the binning range.
Definition: CurvRep.h:78
long m_nBins
Number of accessable bins.
Definition: CurvRep.h:81

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