#include <MagBinFinders.h>
Public Member Functions | |
int | binIndex (int i) const override |
returns an index in the valid range More... | |
int | binIndex (T z) const override |
returns an index in the valid range for the bin closest to Z 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 10 of file MagBinFinders.h.
|
inline |
Definition at line 103 of file MagBinFinders.h.
|
inline |
Definition at line 105 of file MagBinFinders.h.
|
inlineoverridevirtual |
returns an index in the valid range
Implements BaseBinFinder< T >.
Definition at line 175 of file MagBinFinders.h.
|
inlineoverridevirtual |
returns an index in the valid range for the bin closest to Z
Implements BaseBinFinder< T >.
Definition at line 139 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInZ< double >::binIndex(), MagBinFinders::GeneralBinFinderInZ< double >::binPosition(), and MagBRod::findVolume().
|
inlineoverridevirtual |
the middle of the bin.
Implements BaseBinFinder< T >.
Definition at line 178 of file MagBinFinders.h.
|
inlinestatic |
Definition at line 180 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInZ< double >::twoPi().
|
inlinestatic |
Definition at line 181 of file MagBinFinders.h.
|
private |
Definition at line 188 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInZ< double >::binPosition().
|
private |
Definition at line 187 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInZ< double >::binIndex(), and MagBinFinders::GeneralBinFinderInZ< double >::GeneralBinFinderInZ().
|
private |
Definition at line 184 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInZ< double >::binIndex(), and MagBinFinders::GeneralBinFinderInZ< double >::GeneralBinFinderInZ().
|
private |
Definition at line 186 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInZ< double >::binIndex(), and MagBinFinders::GeneralBinFinderInZ< double >::GeneralBinFinderInZ().
|
private |
Definition at line 185 of file MagBinFinders.h.
Referenced by MagBinFinders::GeneralBinFinderInZ< double >::binIndex(), and MagBinFinders::GeneralBinFinderInZ< double >::GeneralBinFinderInZ().