6 namespace MagBinFinders {
13 #ifndef GeneralBinFinderInR_H
14 #define GeneralBinFinderInR_H
101 #ifndef GeneralBinFinderInZ_H
102 #define GeneralBinFinderInZ_H
162 for (
int i=bin-1; ; --
i) {
163 if (
i <= 0)
return 0;
174 for (
int i=bin+1; ; ++
i) {
196 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)
const T & max(const T &a, const T &b)
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.