1 #ifndef BinningTools_GenericBinFinderInZ_H 2 #define BinningTools_GenericBinFinderInZ_H 15 template <
class T,
class G>
18 typedef typename std::vector<const G*>::const_iterator
ConstItr;
26 for (ConstItr
i=first;
i<last-1;
i++) {
27 theBins.push_back((**i).position().z());
29 (**(
i+1)).position().z()) / 2.);
45 for (
int i=bin-1; ;
i--) {
57 for (
int i=bin+1; ;
i++) {
79 static double pi() {
return 3.141592653589793238;}
GenericBinFinderInZ(ConstItr first, ConstItr last)
T binPosition(int ind) const override
the middle of the bin.
int binIndex(T z) const override
returns an index in the valid range for the bin closest to Z
bin
set the eta bin as selection string.
std::vector< const G * >::const_iterator ConstItr
int binIndex(int i) const override
returns an index in the valid range
static int position[264][3]
std::vector< float > theBorders