#include <GeneralBinFinderInR.h>
Public Types | |
typedef RBorderFinder::Det | Det |
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 (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 19 of file GeneralBinFinderInR.h.
|
inline |
Definition at line 21 of file GeneralBinFinderInR.h.
|
inline |
Construct from an already initialized RBorderFinder.
Definition at line 24 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 31 of file GeneralBinFinderInR.h.
References RBorderFinder::RBins(), RBorderFinder::RBorders(), GeneralBinFinderInR< T >::theBins, GeneralBinFinderInR< T >::theBorders, and GeneralBinFinderInR< T >::theNbins.
|
inlineoverridevirtual |
Returns an index in the valid range for the bin that contains AND is closest to R
Implements BaseBinFinder< T >.
Definition at line 42 of file GeneralBinFinderInR.h.
References mps_fire::i, GeneralBinFinderInR< T >::theBorders, and GeneralBinFinderInR< T >::theNbins.
Referenced by GeneralBinFinderInR< T >::binPosition().
|
inlineoverridevirtual |
Returns an index in the valid range.
Implements BaseBinFinder< T >.
Definition at line 53 of file GeneralBinFinderInR.h.
References SiStripPI::max, min(), and GeneralBinFinderInR< T >::theNbins.
|
inlineoverridevirtual |
The middle of the bin.
Implements BaseBinFinder< T >.
Definition at line 56 of file GeneralBinFinderInR.h.
References GeneralBinFinderInR< T >::binIndex(), and GeneralBinFinderInR< T >::theBins.
|
private |
Definition at line 61 of file GeneralBinFinderInR.h.
Referenced by GeneralBinFinderInR< T >::binPosition(), and GeneralBinFinderInR< T >::GeneralBinFinderInR().
|
private |
Definition at line 60 of file GeneralBinFinderInR.h.
Referenced by GeneralBinFinderInR< T >::binIndex(), and GeneralBinFinderInR< T >::GeneralBinFinderInR().
|
private |
Definition at line 59 of file GeneralBinFinderInR.h.
Referenced by GeneralBinFinderInR< T >::binIndex(), and GeneralBinFinderInR< T >::GeneralBinFinderInR().