#include <MagBinFinders.h>
Public Member Functions | |
int | binIndex (T R) const override |
int | binIndex (int i) const override |
Returns an index in the valid range. More... | |
T | binPosition (int ind) const override |
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 8 of file MagBinFinders.h.
|
inline |
Definition at line 30 of file MagBinFinders.h.
|
inline |
Definition at line 32 of file MagBinFinders.h.
|
inlineoverridevirtual |
Returns an index in the valid range for the bin that contains AND is closest to R
Implements BaseBinFinder< T >.
Definition at line 62 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInR< double >::binIndex(), MagBinFinders::GeneralBinFinderInR< double >::binPosition(), and MagGeometry::findVolume().
|
inlineoverridevirtual |
Returns an index in the valid range.
Implements BaseBinFinder< T >.
Definition at line 73 of file MagBinFinders.h.
|
inlineoverridevirtual |
The middle of the bin.
Implements BaseBinFinder< T >.
Definition at line 76 of file MagBinFinders.h.
|
private |
Definition at line 81 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInR< double >::binPosition().
|
private |
Definition at line 80 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInR< double >::binIndex().
|
private |
Definition at line 79 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInR< double >::binIndex().