6 namespace MagBinFinders {
13 #ifndef GeneralBinFinderInR_H
14 #define GeneralBinFinderInR_H
99 #ifndef GeneralBinFinderInZ_H
100 #define GeneralBinFinderInZ_H
160 for (
int i=bin-1; ; --
i) {
161 if (
i <= 0)
return 0;
172 for (
int i=bin+1; ; ++
i) {
194 static double pi() {
return 3.141592653589793238;}
virtual int binIndex(T R) const
std::vector< T > theBorders
virtual int binIndex(T z) const
returns an index in the valid range for the bin closest to Z
virtual int binIndex(int i) const
Returns an index in the valid range.
GeneralBinFinderInR(std::vector< T > &borders)
std::vector< T > theBorders
virtual int binIndex(int i) const
returns an index in the valid range
GeneralBinFinderInZ(std::vector< T > &borders)
virtual T binPosition(int ind) const
The middle of the bin.
tuple size
Write out results.
virtual T binPosition(int ind) const
the middle of the bin.