Go to the documentation of this file. 1 #ifndef TrackingTools_DetLayers_GeneralBinFinderInPhi_H
2 #define TrackingTools_DetLayers_GeneralBinFinderInPhi_H
34 std::vector<const Det*> dets(
first,
last);
59 LogTrace(
metname) <<
"bin: " <<
i <<
" border min " << cur <<
" border max: " <<
next <<
" phi: " << phi_;
70 throw cms::Exception(
"UnexpectedState") <<
"GeneralBinFinderInPhi::binIndex( T phi) bin not found!";
76 return (ind < 0) ? ind +
theNbins : ind;
const std::vector< double > & phiBins() const
The centers of the Dets.
const std::vector< double > & phiBorders() const
T positiveRange(T phi) const
GeneralBinFinderInPhi(const PhiBorderFinder &bf)
Construct from an already initialized PhiBorderFinder.
std::vector< T > theBorders
~GeneralBinFinderInPhi() override
T binPosition(int ind) const override
the middle of the bin in radians
int binIndex(int i) const override
Returns an index in the valid range, modulo Nbins.
int binIndex(T phi) const override
GeneralBinFinderInPhi(std::vector< Det * >::const_iterator first, std::vector< Det * >::const_iterator last)
Construct from the list of Det*.
const std::string metname