1 #ifndef PixelRecoRange_H
2 #define PixelRecoRange_H
21 std::pair<
T,
T> (other.
min(),other.
max()) { }
25 : std::pair<
T,
T> (aMin,aMax) { }
28 : std::pair<
T,
T> (aPair) { }
34 bool empty()
const {
return (this->second < this->
first); }
40 return !( (value < this->
first) | (this->
second < value) );
52 if( this->
empty())
return r;
53 else if( r.
empty())
return *
this;
67 return out <<
"("<<r.
min()<<
","<<r.
max()<<
")";
PixelRecoRange(const std::pair< T, T > &aPair)
PixelRecoRange< T > & sort()
PixelRecoRange< T > & swap()
PixelRecoRange< T > sum(const PixelRecoRange< T > &r) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
PixelRecoRange(PixelRecoRange< U > other)
U second(std::pair< T, U > const &p)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
bool rangesIntersect(const Range &a, const Range &b)
bool inside(const T &value) const
PixelRecoRange< T > intersection(const PixelRecoRange< T > &r) const
bool hasIntersection(const PixelRecoRange< T > &r) const
Range rangeIntersection(const Range &a, const Range &b)
PixelRecoRange(T aMin, T aMax)