1 #ifndef GeneralBinFinderInZ_H 2 #define GeneralBinFinderInZ_H 20 std::vector<const GeometricSearchDet*>::const_iterator
last)
25 for (
auto i = first;
i < last - 1;
i++) {
26 theBins.push_back((**i).position().z());
27 theBorders.push_back(((**i).position().z() + (**(
i + 1)).position().z()) / 2.);
47 for (
auto i = bin - 1;
i > 0;
i--) {
std::vector< float > theBorders
int binIndex(T z) const override
returns an index in the valid range for the bin closest to Z
GeneralBinFinderInZforGeometricSearchDet(std::vector< const GeometricSearchDet * >::const_iterator first, std::vector< const GeometricSearchDet * >::const_iterator last)
T binPosition(int ind) const override
the middle of the bin.
GeneralBinFinderInZforGeometricSearchDet()
int binIndex(int i) const override
returns an index in the valid range