1 #ifndef PeriodicBinFinderInPhi_H
2 #define PeriodicBinFinderInPhi_H
35 return ind < 0 ? ind +
theNbins : ind;
41 static constexpr
T pi() {
return piC; }
45 static constexpr
T piC = 3.141592653589793238;
int binIndex(T phi) const override
returns an index in the valid range for the bin that contains phi
PeriodicBinFinderInPhi(T firstPhi, int nbins)
int binIndex(int i) const override
returns an index in the valid range, modulo Nbins
static constexpr T twoPi()
static constexpr T twoPiC
T binPosition(int ind) const override
the middle of the bin in radians