1 #ifndef TrackingTools_DetLayers_rangesIntersect_h 2 #define TrackingTools_DetLayers_rangesIntersect_h 13 template <
typename Range>
15 return !((
a.first >
b.second) | (
b.first >
a.second));
18 template <
typename Range,
typename Less>
20 return !(less(
b.second,
a.first) | less(
a.second,
b.first));
22 template <
typename Range,
typename T>
24 return !(less(
b.second,
a.first) | less(
a.second,
b.first));
PixelRecoRange< float > Range
bool rangesIntersect(const Range &a, const Range &b)