#include <PeriodicBinFinderInZ.h>
Public Member Functions | |
virtual int | binIndex (T z) const |
returns an index in the valid range for the bin that contains Z | |
virtual int | binIndex (int i) const |
returns an index in the valid range | |
virtual T | binPosition (int ind) const |
the middle of the bin | |
PeriodicBinFinderInZ () | |
PeriodicBinFinderInZ (std::vector< const GeomDet * >::const_iterator first, std::vector< const GeomDet * >::const_iterator last) | |
Private Attributes | |
int | theNbins |
T | theZOffset |
T | theZStep |
Bin finder along the global Z for (almost) equidistant bins. The bins are computed from GeomDet positions.
Definition at line 13 of file PeriodicBinFinderInZ.h.
PeriodicBinFinderInZ< T >::PeriodicBinFinderInZ | ( | ) | [inline] |
Definition at line 16 of file PeriodicBinFinderInZ.h.
: theNbins(0), theZStep(0), theZOffset(0) {}
PeriodicBinFinderInZ< T >::PeriodicBinFinderInZ | ( | std::vector< const GeomDet * >::const_iterator | first, |
std::vector< const GeomDet * >::const_iterator | last | ||
) | [inline] |
Definition at line 18 of file PeriodicBinFinderInZ.h.
virtual int PeriodicBinFinderInZ< T >::binIndex | ( | T | z | ) | const [inline, virtual] |
returns an index in the valid range for the bin that contains Z
Implements BaseBinFinder< T >.
Definition at line 28 of file PeriodicBinFinderInZ.h.
Referenced by PeriodicBinFinderInZ< float >::binIndex(), PixelRod::compatibleDetsV(), and TOBRod::computeCrossings().
{ return binIndex( int((z-theZOffset)/theZStep)); }
virtual int PeriodicBinFinderInZ< T >::binIndex | ( | int | i | ) | const [inline, virtual] |
returns an index in the valid range
Implements BaseBinFinder< T >.
Definition at line 33 of file PeriodicBinFinderInZ.h.
virtual T PeriodicBinFinderInZ< T >::binPosition | ( | int | ind | ) | const [inline, virtual] |
the middle of the bin
Implements BaseBinFinder< T >.
Definition at line 38 of file PeriodicBinFinderInZ.h.
Referenced by TOBRod::computeCrossings().
{ return theZOffset + theZStep * ( ind + 0.5); }
int PeriodicBinFinderInZ< T >::theNbins [private] |
Definition at line 44 of file PeriodicBinFinderInZ.h.
Referenced by PeriodicBinFinderInZ< float >::binIndex(), and PeriodicBinFinderInZ< float >::PeriodicBinFinderInZ().
T PeriodicBinFinderInZ< T >::theZOffset [private] |
Definition at line 46 of file PeriodicBinFinderInZ.h.
Referenced by PeriodicBinFinderInZ< float >::binIndex(), PeriodicBinFinderInZ< float >::binPosition(), and PeriodicBinFinderInZ< float >::PeriodicBinFinderInZ().
T PeriodicBinFinderInZ< T >::theZStep [private] |
Definition at line 45 of file PeriodicBinFinderInZ.h.
Referenced by PeriodicBinFinderInZ< float >::binIndex(), PeriodicBinFinderInZ< float >::binPosition(), and PeriodicBinFinderInZ< float >::PeriodicBinFinderInZ().