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

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

#include <ImpactRep.h>

Public Member Functions

 ImpactBinsSpec (double lowerBound, double upperBound, long nBins, int nOverlap, int nWidth)
 Constructs a specification for equally spaced discrete impactature values with discrete overlap specification. More...
 
DiscreteImpact::Array constructArray () const
 Constuct the array of discrete impact positions.
 
long getNPositions () const
 Getter for the number of bounds.
 
double getBinWidth () const
 Getter for the bin width in real impact to investigate the value that results from the discrete overlap specification.
 
double getOverlap () const
 Getter for the overlap in real impact to investigate the value that results from the discrete overlap specification.
 
long 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 impact counted in number of discrete values.
 
int m_nWidth = 3
 Width of the leaves at the maximal level in impact counted in number of discrete values.
 

Detailed Description

Strategy to construct discrete impact points from discrete overlap specifications.

Definition at line 19 of file ImpactRep.h.

Constructor & Destructor Documentation

◆ ImpactBinsSpec()

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

Constructs a specification for equally spaced discrete impactature 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 ImpactRep.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 impactature bound must be higher than the lower bound.", m_upperBound > m_lowerBound);
24 }
int m_nOverlap
Overlap of the leaves in impact counted in number of discrete values.
Definition: ImpactRep.h:70
double m_lowerBound
Lower bound of the binning range.
Definition: ImpactRep.h:61
int m_nWidth
Width of the leaves at the maximal level in impact counted in number of discrete values.
Definition: ImpactRep.h:73
double m_upperBound
Upper bound of the binning range.
Definition: ImpactRep.h:64
long m_nBins
Number of accessable bins.
Definition: ImpactRep.h:67

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