#include <MagBinFinders.h>
Public Member Functions | |
virtual int | binIndex (T R) const |
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... | |
GeneralBinFinderInR () | |
GeneralBinFinderInR (std::vector< T > &borders) | |
Public Member Functions inherited from BaseBinFinder< T > | |
BaseBinFinder () | |
virtual | ~BaseBinFinder () |
Private Attributes | |
std::vector< T > | theBins |
std::vector< T > | theBorders |
int | theNbins |
A R binfinder for a non-periodic group of detectors.
Definition at line 7 of file MagBinFinders.h.
|
inline |
Definition at line 30 of file MagBinFinders.h.
|
inline |
Definition at line 32 of file MagBinFinders.h.
|
inlinevirtual |
Returns an index in the valid range for the bin that contains AND is closest to R
Implements BaseBinFinder< T >.
Definition at line 66 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInR< double >::binIndex(), MagBinFinders::GeneralBinFinderInR< double >::binPosition(), and MagGeometry::findVolume().
|
inlinevirtual |
Returns an index in the valid range.
Implements BaseBinFinder< T >.
Definition at line 77 of file MagBinFinders.h.
|
inlinevirtual |
The middle of the bin.
Implements BaseBinFinder< T >.
Definition at line 82 of file MagBinFinders.h.
|
private |
Definition at line 90 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInR< double >::binPosition().
|
private |
Definition at line 89 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInR< double >::binIndex().
|
private |
Definition at line 88 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInR< double >::binIndex().