#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 More... | |
virtual int | binIndex (int i) const |
returns an index in the valid range More... | |
virtual T | binPosition (int ind) const |
the middle of the bin More... | |
PeriodicBinFinderInZ () | |
PeriodicBinFinderInZ (std::vector< const GeomDet * >::const_iterator first, std::vector< const GeomDet * >::const_iterator last) | |
Public Member Functions inherited from BaseBinFinder< T > | |
BaseBinFinder () | |
virtual | ~BaseBinFinder () |
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.
|
inline |
Definition at line 16 of file PeriodicBinFinderInZ.h.
|
inline |
Definition at line 18 of file PeriodicBinFinderInZ.h.
References PeriodicBinFinderInZ< T >::theNbins, PeriodicBinFinderInZ< T >::theZOffset, and PeriodicBinFinderInZ< T >::theZStep.
|
inlinevirtual |
returns an index in the valid range for the bin that contains Z
Implements BaseBinFinder< T >.
Definition at line 28 of file PeriodicBinFinderInZ.h.
References PeriodicBinFinderInZ< T >::theZOffset, and PeriodicBinFinderInZ< T >::theZStep.
|
inlinevirtual |
returns an index in the valid range
Implements BaseBinFinder< T >.
Definition at line 33 of file PeriodicBinFinderInZ.h.
References max(), min, and PeriodicBinFinderInZ< T >::theNbins.
|
inlinevirtual |
the middle of the bin
Implements BaseBinFinder< T >.
Definition at line 38 of file PeriodicBinFinderInZ.h.
References PeriodicBinFinderInZ< T >::theZOffset, and PeriodicBinFinderInZ< T >::theZStep.
|
private |
Definition at line 44 of file PeriodicBinFinderInZ.h.
Referenced by PeriodicBinFinderInZ< T >::binIndex(), and PeriodicBinFinderInZ< T >::PeriodicBinFinderInZ().
|
private |
Definition at line 46 of file PeriodicBinFinderInZ.h.
Referenced by PeriodicBinFinderInZ< T >::binIndex(), PeriodicBinFinderInZ< T >::binPosition(), and PeriodicBinFinderInZ< T >::PeriodicBinFinderInZ().
|
private |
Definition at line 45 of file PeriodicBinFinderInZ.h.
Referenced by PeriodicBinFinderInZ< T >::binIndex(), PeriodicBinFinderInZ< T >::binPosition(), and PeriodicBinFinderInZ< T >::PeriodicBinFinderInZ().