1 #ifndef PixelRecoRange_H
2 #define PixelRecoRange_H
19 : std::pair<
T,
T> (aMin,aMax) { }
22 : std::pair<
T,
T> (aPair) { }
28 bool empty()
const {
return (this->second < this->
first); }
43 if( this->
empty())
return r;
44 else if( r.
empty())
return *
this;
57 return out <<
"("<<r.
min()<<
","<<r.
max()<<
")";
PixelRecoRange(const std::pair< T, T > &aPair)
PixelRecoRange< T > sum(const PixelRecoRange< T > &r) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
U second(std::pair< T, U > const &p)
const T & max(const T &a, const T &b)
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)