#include <MagBLayer.h>
Public Member Functions | |
int | binIndex (int i) const override |
returns an index in the valid range, modulo Nbins More... | |
int | binIndex (T phi) const override |
returns an index in the valid range for the bin that contains phi More... | |
T | binPosition (int ind) const override |
the middle of the bin in radians More... | |
PeriodicBinFinderInPhi () | |
PeriodicBinFinderInPhi (T firstPhi, int nbins) | |
Public Member Functions inherited from BaseBinFinder< T > | |
BaseBinFinder () | |
virtual | ~BaseBinFinder () |
Static Public Member Functions | |
static constexpr T | pi () |
static constexpr T | twoPi () |
Private Attributes | |
T | theInvPhiStep = 0 |
int | theNbins = 0 |
T | thePhiOffset = 0 |
T | thePhiStep = 0 |
Static Private Attributes | |
static constexpr T | piC = 3.141592653589793238 |
static constexpr T | twoPiC = 2 * piC |
Periodic Bin Finder around a circle for (almost) equidistant bins. Phi is the angle on the circle in radians.
Definition at line 22 of file MagBLayer.h.
|
inline |
Definition at line 16 of file PeriodicBinFinderInPhi.h.
|
inline |
Definition at line 18 of file PeriodicBinFinderInPhi.h.
|
inlineoverridevirtual |
returns an index in the valid range, modulo Nbins
Implements BaseBinFinder< T >.
Definition at line 33 of file PeriodicBinFinderInPhi.h.
|
inlineoverridevirtual |
returns an index in the valid range for the bin that contains phi
Implements BaseBinFinder< T >.
Definition at line 25 of file PeriodicBinFinderInPhi.h.
Referenced by MTDDetRing::compatibleDets(), MuDetRing::compatibleDets(), TECLayer::computeCrossings(), TIDRing::computeCrossings(), Phase2EndcapRing::computeCrossings(), PixelForwardLayer::computeCrossings(), PixelForwardLayerPhase1::computeCrossings(), TIBRing::computeCrossings(), MagBLayer::findVolume(), MagGeometry::findVolume(), PixelForwardLayer::groupedCompatibleDetsV(), PixelForwardLayerPhase1::groupedCompatibleDetsV(), TIBRing::groupedCompatibleDetsV(), TECLayer::searchNeighbors(), PixelForwardLayer::searchNeighbors(), PixelForwardLayerPhase1::searchNeighbors(), TIDRing::searchNeighbors(), Phase2EndcapRing::searchNeighbors(), TBPLayer::searchNeighbors(), and TIBRing::searchNeighbors().
|
inlineoverridevirtual |
the middle of the bin in radians
Implements BaseBinFinder< T >.
Definition at line 39 of file PeriodicBinFinderInPhi.h.
|
inlinestaticconstexpr |
Definition at line 41 of file PeriodicBinFinderInPhi.h.
|
inlinestaticconstexpr |
Definition at line 42 of file PeriodicBinFinderInPhi.h.
|
staticconstexprprivate |
Definition at line 45 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::pi().
|
private |
Definition at line 50 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex().
|
private |
Definition at line 48 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex().
|
private |
Definition at line 51 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex(), and PeriodicBinFinderInPhi< float >::binPosition().
|
private |
Definition at line 49 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binPosition().
|
staticconstexprprivate |
Definition at line 46 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex(), and PeriodicBinFinderInPhi< float >::twoPi().