#include <GeneralBinFinderInR.h>
Public Types | |
typedef RBorderFinder::Det | Det |
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 (const RBorderFinder &bf) | |
Construct from an already initialized RBorderFinder. More... | |
GeneralBinFinderInR (std::vector< Det * >::const_iterator first, std::vector< Det * >::const_iterator last) | |
Construct from the list of Det*. More... | |
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 17 of file GeneralBinFinderInR.h.
typedef RBorderFinder::Det GeneralBinFinderInR< T >::Det |
Definition at line 20 of file GeneralBinFinderInR.h.
|
inline |
Definition at line 22 of file GeneralBinFinderInR.h.
|
inline |
Construct from an already initialized RBorderFinder.
Definition at line 25 of file GeneralBinFinderInR.h.
References RBorderFinder::RBins(), RBorderFinder::RBorders(), GeneralBinFinderInR< T >::theBins, GeneralBinFinderInR< T >::theBorders, and GeneralBinFinderInR< T >::theNbins.
|
inline |
Construct from the list of Det*.
Definition at line 32 of file GeneralBinFinderInR.h.
References RBorderFinder::RBins(), RBorderFinder::RBorders(), GeneralBinFinderInR< T >::theBins, GeneralBinFinderInR< T >::theBorders, and GeneralBinFinderInR< T >::theNbins.
|
inlinevirtual |
Returns an index in the valid range for the bin that contains AND is closest to R
Implements BaseBinFinder< T >.
Definition at line 46 of file GeneralBinFinderInR.h.
References i, GeneralBinFinderInR< T >::theBorders, and GeneralBinFinderInR< T >::theNbins.
Referenced by GeneralBinFinderInR< T >::binPosition().
|
inlinevirtual |
Returns an index in the valid range.
Implements BaseBinFinder< T >.
Definition at line 57 of file GeneralBinFinderInR.h.
References bookConverter::max, min(), and GeneralBinFinderInR< T >::theNbins.
|
inlinevirtual |
The middle of the bin.
Implements BaseBinFinder< T >.
Definition at line 62 of file GeneralBinFinderInR.h.
References GeneralBinFinderInR< T >::binIndex(), and GeneralBinFinderInR< T >::theBins.
|
private |
Definition at line 70 of file GeneralBinFinderInR.h.
Referenced by GeneralBinFinderInR< T >::binPosition(), and GeneralBinFinderInR< T >::GeneralBinFinderInR().
|
private |
Definition at line 69 of file GeneralBinFinderInR.h.
Referenced by GeneralBinFinderInR< T >::binIndex(), and GeneralBinFinderInR< T >::GeneralBinFinderInR().
|
private |
Definition at line 68 of file GeneralBinFinderInR.h.
Referenced by GeneralBinFinderInR< T >::binIndex(), and GeneralBinFinderInR< T >::GeneralBinFinderInR().