1 #ifndef GeneralBinFinderInZ_H 2 #define GeneralBinFinderInZ_H 20 std::vector<const GeometricSearchDet*>::const_iterator
last)
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--) {
T binPosition(int ind) const override
the middle of the bin.
GeneralBinFinderInZforGeometricSearchDet(std::vector< const GeometricSearchDet *>::const_iterator first, std::vector< const GeometricSearchDet *>::const_iterator last)
std::vector< float > theBorders
int binIndex(int i) const override
returns an index in the valid range
GeneralBinFinderInZforGeometricSearchDet()
int binIndex(T z) const override
returns an index in the valid range for the bin closest to Z