#include <MagBinFinders.h>
Public Member Functions | |
int | binIndex (T z) const override |
returns an index in the valid range for the bin closest to Z More... | |
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... | |
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.
|
inlineoverridevirtual |
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().
|
inlineoverridevirtual |
returns an index in the valid range
Implements BaseBinFinder< T >.
Definition at line 185 of file MagBinFinders.h.
|
inlineoverridevirtual |
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.