Belle II Software development
ImpactRep.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <tracking/trackFindingCDC/hough/axes/StandardAxes.h>
11
12namespace Belle2 {
17 namespace TrackFindingCDC {
20 public:
33 ImpactBinsSpec(double lowerBound, double upperBound, long nBins, int nOverlap, int nWidth);
34
37
39 long getNPositions() const;
40
45 double getBinWidth() const;
46
51 double getOverlap() const;
52
54 long getNOverlap() const
55 {
56 return m_nOverlap;
57 }
58
59 private:
62
65
67 long m_nBins;
68
70 int m_nOverlap = 1;
71
73 int m_nWidth = 3;
74 };
75 }
77}
std::vector< T > Array
The type of the array which contains the underlying values.
Definition: DiscreteValue.h:55
Strategy to construct discrete impact points from discrete overlap specifications.
Definition: ImpactRep.h:19
long getNPositions() const
Getter for the number of bounds.
Definition: ImpactRep.cc:32
long getNOverlap() const
Getter for the overlap in discrete number of positions.
Definition: ImpactRep.h:54
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
DiscreteImpact::Array constructArray() const
Construct the array of discrete impact positions.
Definition: ImpactRep.cc:26
double getBinWidth() const
Getter for the bin width in real impact to investigate the value that results from the discrete overl...
Definition: ImpactRep.cc:38
double m_upperBound
Upper bound of the binning range.
Definition: ImpactRep.h:64
long m_nBins
Number of accessible bins.
Definition: ImpactRep.h:67
double getOverlap() const
Getter for the overlap in real impact to investigate the value that results from the discrete overlap...
Definition: ImpactRep.cc:45
Abstract base class for different kinds of events.