#include <MagBLayer.h>
Public Member Functions | |
int | binIndex (T phi) const override |
returns an index in the valid range for the bin that contains phi More... | |
int | binIndex (int i) const override |
returns an index in the valid range, modulo Nbins 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 21 of file MagBLayer.h.
|
inline |
Definition at line 17 of file PeriodicBinFinderInPhi.h.
|
inline |
Definition at line 19 of file PeriodicBinFinderInPhi.h.
|
inlineoverridevirtual |
returns an index in the valid range for the bin that contains phi
Implements BaseBinFinder< T >.
Definition at line 24 of file PeriodicBinFinderInPhi.h.
Referenced by MuDetRing::compatibleDets(), TECLayer::computeCrossings(), TIDRing::computeCrossings(), Phase2EndcapRing::computeCrossings(), PixelForwardLayer::computeCrossings(), PixelForwardLayerPhase1::computeCrossings(), TIBRing::computeCrossings(), MagBLayer::findVolume(), MagGeometry::findVolume(), PixelForwardLayer::groupedCompatibleDetsV(), PixelForwardLayerPhase1::groupedCompatibleDetsV(), TIBRing::groupedCompatibleDetsV(), PixelForwardLayer::searchNeighbors(), TECLayer::searchNeighbors(), PixelForwardLayerPhase1::searchNeighbors(), TIDRing::searchNeighbors(), Phase2EndcapRing::searchNeighbors(), TBPLayer::searchNeighbors(), and TIBRing::searchNeighbors().
|
inlineoverridevirtual |
returns an index in the valid range, modulo Nbins
Implements BaseBinFinder< T >.
Definition at line 31 of file PeriodicBinFinderInPhi.h.
|
inlineoverridevirtual |
the middle of the bin in radians
Implements BaseBinFinder< T >.
Definition at line 37 of file PeriodicBinFinderInPhi.h.
|
inlinestatic |
Definition at line 41 of file PeriodicBinFinderInPhi.h.
|
inlinestatic |
Definition at line 42 of file PeriodicBinFinderInPhi.h.
|
staticprivate |
Definition at line 46 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::pi().
|
private |
Definition at line 53 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex().
|
private |
Definition at line 51 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex().
|
private |
Definition at line 54 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex(), and PeriodicBinFinderInPhi< float >::binPosition().
|
private |
Definition at line 52 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binPosition().
|
staticprivate |
Definition at line 47 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex(), and PeriodicBinFinderInPhi< float >::twoPi().