#include <GeneralBinFinderInPhi.h>
Public Types | |
typedef PhiBorderFinder::Det | Det |
Public Member Functions | |
int | binIndex (T phi) const override |
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... | |
GeneralBinFinderInPhi () | |
GeneralBinFinderInPhi (const PhiBorderFinder &bf) | |
Construct from an already initialized PhiBorderFinder. More... | |
GeneralBinFinderInPhi (std::vector< Det * >::const_iterator first, std::vector< Det * >::const_iterator last) | |
Construct from the list of Det*. More... | |
~GeneralBinFinderInPhi () override | |
Public Member Functions inherited from BaseBinFinder< T > | |
BaseBinFinder () | |
virtual | ~BaseBinFinder () |
Private Member Functions | |
T | positiveRange (T phi) const |
Private Attributes | |
std::vector< T > | theBins |
std::vector< T > | theBorders |
int | theNbins |
A phi bin finder for a non-periodic group of detectors.
Definition at line 18 of file GeneralBinFinderInPhi.h.
typedef PhiBorderFinder::Det GeneralBinFinderInPhi< T >::Det |
Definition at line 20 of file GeneralBinFinderInPhi.h.
|
inline |
Definition at line 22 of file GeneralBinFinderInPhi.h.
|
inline |
Construct from an already initialized PhiBorderFinder.
Definition at line 25 of file GeneralBinFinderInPhi.h.
References PhiBorderFinder::phiBins(), PhiBorderFinder::phiBorders(), GeneralBinFinderInPhi< T >::theBins, GeneralBinFinderInPhi< T >::theBorders, and GeneralBinFinderInPhi< T >::theNbins.
|
inline |
Construct from the list of Det*.
Definition at line 32 of file GeneralBinFinderInPhi.h.
References PhiBorderFinder::phiBins(), PhiBorderFinder::phiBorders(), GeneralBinFinderInPhi< T >::theBins, GeneralBinFinderInPhi< T >::theBorders, and GeneralBinFinderInPhi< T >::theNbins.
|
inlineoverride |
Definition at line 41 of file GeneralBinFinderInPhi.h.
|
inlineoverridevirtual |
Returns an index in the valid range for the bin that contains AND is closest to phi
Implements BaseBinFinder< T >.
Definition at line 45 of file GeneralBinFinderInPhi.h.
References geometryDiff::epsilon, Exception, mps_fire::i, LogTrace, metname, GetRecoTauVFromDQM_MC_cff::next, phi, GeneralBinFinderInPhi< T >::positiveRange(), AlCaHLTBitMon_QueryRunRegistry::string, GeneralBinFinderInPhi< T >::theBorders, and GeneralBinFinderInPhi< T >::theNbins.
Referenced by GeneralBinFinderInPhi< T >::binPosition().
|
inlineoverridevirtual |
Returns an index in the valid range, modulo Nbins.
Implements BaseBinFinder< T >.
Definition at line 74 of file GeneralBinFinderInPhi.h.
References GeneralBinFinderInPhi< T >::theNbins.
|
inlineoverridevirtual |
the middle of the bin in radians
Implements BaseBinFinder< T >.
Definition at line 80 of file GeneralBinFinderInPhi.h.
References GeneralBinFinderInPhi< T >::binIndex(), and GeneralBinFinderInPhi< T >::theBins.
|
inlineprivate |
Definition at line 88 of file GeneralBinFinderInPhi.h.
References Geom::twoPi().
Referenced by GeneralBinFinderInPhi< T >::binIndex().
|
private |
Definition at line 85 of file GeneralBinFinderInPhi.h.
Referenced by GeneralBinFinderInPhi< T >::binPosition(), and GeneralBinFinderInPhi< T >::GeneralBinFinderInPhi().
|
private |
Definition at line 84 of file GeneralBinFinderInPhi.h.
Referenced by GeneralBinFinderInPhi< T >::binIndex(), and GeneralBinFinderInPhi< T >::GeneralBinFinderInPhi().
|
private |
Definition at line 83 of file GeneralBinFinderInPhi.h.
Referenced by GeneralBinFinderInPhi< T >::binIndex(), and GeneralBinFinderInPhi< T >::GeneralBinFinderInPhi().