1 #ifndef TrackingTools_DetLayers_rangesIntersect_h 2 #define TrackingTools_DetLayers_rangesIntersect_h 16 #if defined(__clang__) && defined(__has_warning) 17 #if __has_warning("-Wbitwise-instead-of-logical") 18 #pragma clang diagnostic push 19 #pragma clang diagnostic ignored "-Wbitwise-instead-of-logical" 23 template <
typename Range>
25 return !((
a.first >
b.second) | (
b.first >
a.second));
28 template <
typename Range,
typename Less>
30 return !(less(
b.second,
a.first) | less(
a.second,
b.first));
32 template <
typename Range,
typename T>
34 return !(less(
b.second,
a.first) | less(
a.second,
b.first));
37 #if defined(__clang__) && defined(__has_warning) 38 #if __has_warning("-Wbitwise-instead-of-logical") 39 #pragma clang diagnostic pop PixelRecoRange< float > Range
bool rangesIntersect(const Range &a, const Range &b)