Main Page
Namespaces
Classes
Package Documentation
RecoTracker
TkMSParametrization
interface
rangesIntersect.h
Go to the documentation of this file.
1
#ifndef rangesIntersect_H
2
#define rangesIntersect_H
3
13
template
<
class
Range>
14
inline
bool
rangesIntersect
(
const
Range
&
a
,
const
Range
&
b
) {
15
if
( a.first > b.second || b.first > a.second)
return
false
;
16
else
return
true
;
17
}
18
19
template
<
class
Range,
class
Less>
20
inline
bool
rangesIntersect
(
const
Range
&
a
,
const
Range
&
b
,
21
const
Less& less) {
22
if
( less(b.second,a.first) || less(a.second,b.first))
return
false
;
23
else
return
true
;
24
}
25
#endif
Range
PixelRecoRange< float > Range
Definition:
PixelTripletHLTGenerator.cc:32
rangesIntersect
bool rangesIntersect(const Range &a, const Range &b)
Definition:
rangesIntersect.h:14
b
double b
Definition:
hdecay.h:120
a
double a
Definition:
hdecay.h:121
Generated for CMSSW Reference Manual by
1.8.11