#include <GeneralBinFinderInPhi.h>
Public Types | |
typedef PhiBorderFinder::Det | Det |
Public Member Functions | |
virtual int | binIndex (T phi) const |
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... | |
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... | |
virtual | ~GeneralBinFinderInPhi () |
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 21 of file GeneralBinFinderInPhi.h.
|
inline |
Definition at line 23 of file GeneralBinFinderInPhi.h.
|
inline |
Construct from an already initialized PhiBorderFinder.
Definition at line 26 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 33 of file GeneralBinFinderInPhi.h.
References PhiBorderFinder::phiBins(), PhiBorderFinder::phiBorders(), GeneralBinFinderInPhi< T >::theBins, GeneralBinFinderInPhi< T >::theBorders, and GeneralBinFinderInPhi< T >::theNbins.
|
inlinevirtual |
Definition at line 44 of file GeneralBinFinderInPhi.h.
|
inlinevirtual |
Returns an index in the valid range for the bin that contains AND is closest to phi
Implements BaseBinFinder< T >.
Definition at line 48 of file GeneralBinFinderInPhi.h.
References epsilon, edm::hlt::Exception, 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().
|
inlinevirtual |
Returns an index in the valid range, modulo Nbins.
Implements BaseBinFinder< T >.
Definition at line 79 of file GeneralBinFinderInPhi.h.
References GeneralBinFinderInPhi< T >::theNbins.
|
inlinevirtual |
the middle of the bin in radians
Implements BaseBinFinder< T >.
Definition at line 85 of file GeneralBinFinderInPhi.h.
References GeneralBinFinderInPhi< T >::binIndex(), and GeneralBinFinderInPhi< T >::theBins.
|
inlineprivate |
Definition at line 96 of file GeneralBinFinderInPhi.h.
References Geom::twoPi().
Referenced by GeneralBinFinderInPhi< T >::binIndex().
|
private |
Definition at line 93 of file GeneralBinFinderInPhi.h.
Referenced by GeneralBinFinderInPhi< T >::binPosition(), and GeneralBinFinderInPhi< T >::GeneralBinFinderInPhi().
|
private |
Definition at line 92 of file GeneralBinFinderInPhi.h.
Referenced by GeneralBinFinderInPhi< T >::binIndex(), and GeneralBinFinderInPhi< T >::GeneralBinFinderInPhi().
|
private |
Definition at line 91 of file GeneralBinFinderInPhi.h.
Referenced by GeneralBinFinderInPhi< T >::binIndex(), and GeneralBinFinderInPhi< T >::GeneralBinFinderInPhi().