14 #ifndef GeneralBinFinderInR_H 15 #define GeneralBinFinderInR_H 87 #ifndef GeneralBinFinderInZ_H 88 #define GeneralBinFinderInZ_H 140 int bin =
binIndex(
int((z - theZOffset) / theZStep) + 1);
146 for (
int i = bin - 1;; --
i) {
160 for (
int i = bin + 1;; ++
i) {
180 static double pi() {
return 3.141592653589793238; }
int binIndex(int i) const override
returns an index in the valid range
std::vector< T > theBorders
int binIndex(T z) const override
returns an index in the valid range for the bin closest to Z
GeneralBinFinderInR(std::vector< T > &borders)
int binIndex(T R) const override
int binIndex(int i) const override
Returns an index in the valid range.
std::vector< T > theBorders
T binPosition(int ind) const override
the middle of the bin.
GeneralBinFinderInZ(std::vector< T > &borders)
T binPosition(int ind) const override
The middle of the bin.