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