Main Page
Namespaces
Classes
Package Documentation
src
TrackingTools
DetLayers
src
DetLessZ.h
Go to the documentation of this file.
1
#ifndef DetLayers_DetLessZ_H
2
#define DetLayers_DetLessZ_H
3
7
#include "
TrackingTools/DetLayers/src/DetLessZ.h
"
8
#include "
TrackingTools/DetLayers/interface/GeometricSearchDet.h
"
9
10
inline
bool
isDetLessZ
(
const
GeometricSearchDet
*
a
,
const
GeometricSearchDet
*
b
) {
11
12
// multiply by 1+epsilon to make it numericaly stable
13
// the epsilon should depend on the scalar precision,
14
// this is just a quick fix!
15
if
(a->
position
().
z
() > 0) {
16
return
a->
position
().
z
()*1.000001 < b->
position
().
z
();
17
}
18
else
if
(b->
position
().
z
() < 0) {
19
return
a->
position
().
z
() < b->
position
().
z
()*1.000001;
20
}
21
else
return
true
;
22
}
23
24
25
#endif
GeometricSearchDet.h
isDetLessZ
bool isDetLessZ(const GeometricSearchDet *a, const GeometricSearchDet *b)
Definition:
DetLessZ.h:10
PV3DBase::z
T z() const
Definition:
PV3DBase.h:64
GeometricSearchDet::position
virtual const Surface::PositionType & position() const
Returns position of the surface.
Definition:
GeometricSearchDet.h:33
b
double b
Definition:
hdecay.h:120
a
double a
Definition:
hdecay.h:121
DetLessZ.h
GeometricSearchDet
Definition:
GeometricSearchDet.h:19
Generated for CMSSW Reference Manual by
1.8.11