13 #ifndef GeneralBinFinderInR_H 14 #define GeneralBinFinderInR_H 99 #ifndef GeneralBinFinderInZ_H 100 #define GeneralBinFinderInZ_H 154 int bin =
binIndex(
int((z-theZOffset)/theZStep)+1);
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;}
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
bin
set the eta bin as selection string.
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.