#include <MagBLayer.h>
Public Member Functions | |
virtual int | binIndex (T phi) const |
returns an index in the valid range for the bin that contains phi More... | |
virtual int | binIndex (int i) const |
returns an index in the valid range, modulo Nbins More... | |
virtual T | binPosition (int ind) const |
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 16 of file PeriodicBinFinderInPhi.h.
|
inline |
Definition at line 18 of file PeriodicBinFinderInPhi.h.
|
inlinevirtual |
returns an index in the valid range for the bin that contains phi
Implements BaseBinFinder< T >.
Definition at line 23 of file PeriodicBinFinderInPhi.h.
Referenced by MuDetRing::compatibleDets(), TECLayer::computeCrossings(), TIDRing::computeCrossings(), Phase2OTECRing::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(), Phase2OTECRing::searchNeighbors(), TBPLayer::searchNeighbors(), and TIBRing::searchNeighbors().
|
inlinevirtual |
returns an index in the valid range, modulo Nbins
Implements BaseBinFinder< T >.
Definition at line 30 of file PeriodicBinFinderInPhi.h.
|
inlinevirtual |
the middle of the bin in radians
Implements BaseBinFinder< T >.
Definition at line 36 of file PeriodicBinFinderInPhi.h.
|
inlinestatic |
Definition at line 40 of file PeriodicBinFinderInPhi.h.
|
inlinestatic |
Definition at line 41 of file PeriodicBinFinderInPhi.h.
|
staticprivate |
Definition at line 45 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::pi().
|
private |
Definition at line 52 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex().
|
private |
Definition at line 50 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex().
|
private |
Definition at line 53 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex(), and PeriodicBinFinderInPhi< float >::binPosition().
|
private |
Definition at line 51 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binPosition().
|
staticprivate |
Definition at line 46 of file PeriodicBinFinderInPhi.h.
Referenced by PeriodicBinFinderInPhi< float >::binIndex(), and PeriodicBinFinderInPhi< float >::twoPi().