#include <MagBinFinders.h>
Public Member Functions | |
virtual int | binIndex (T z) const |
returns an index in the valid range for the bin closest to 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... | |
GeneralBinFinderInZ () | |
GeneralBinFinderInZ (std::vector< T > &borders) | |
Public Member Functions inherited from BaseBinFinder< T > | |
BaseBinFinder () | |
virtual | ~BaseBinFinder () |
Static Public Member Functions | |
static double | pi () |
static double | twoPi () |
Private Attributes | |
std::vector< T > | theBins |
std::vector< T > | theBorders |
int | theNbins |
T | theZOffset |
T | theZStep |
A Z bin finder for a non-periodic group of detectors. Search is done starting from an initial equal-size-bin guess. Therefore it becomes less efficient for binnings with very different bin size. It is not particularily suited for very few bins...
Definition at line 8 of file MagBinFinders.h.
|
inline |
Definition at line 116 of file MagBinFinders.h.
|
inline |
Definition at line 118 of file MagBinFinders.h.
|
inlinevirtual |
returns an index in the valid range for the bin closest to Z
Implements BaseBinFinder< T >.
Definition at line 153 of file MagBinFinders.h.
Referenced by MagBRod::findVolume().
|
inlinevirtual |
returns an index in the valid range
Implements BaseBinFinder< T >.
Definition at line 185 of file MagBinFinders.h.
|
inlinevirtual |
the middle of the bin.
Implements BaseBinFinder< T >.
Definition at line 190 of file MagBinFinders.h.
|
inlinestatic |
Definition at line 194 of file MagBinFinders.h.
|
inlinestatic |
Definition at line 195 of file MagBinFinders.h.
|
private |
Definition at line 203 of file MagBinFinders.h.
|
private |
Definition at line 202 of file MagBinFinders.h.
|
private |
Definition at line 199 of file MagBinFinders.h.
|
private |
Definition at line 201 of file MagBinFinders.h.
|
private |
Definition at line 200 of file MagBinFinders.h.