Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
DataFormats
GeometrySurface
src
SimpleCylinderBounds.cc
Go to the documentation of this file.
1
#include "
DataFormats/GeometrySurface/interface/LocalError.h
"
2
#include "
DataFormats/GeometrySurface/interface/SimpleCylinderBounds.h
"
3
4
SimpleCylinderBounds::SimpleCylinderBounds
(
float
rmin,
float
rmax,
float
zmin,
float
zmax)
5
: theRmin(rmin), theRmax(rmax), theZmin(zmin), theZmax(zmax) {
6
if
(
theRmin
>
theRmax
)
7
std::swap
(
theRmin
,
theRmax
);
8
if
(
theZmin
>
theZmax
)
9
std::swap
(
theZmin
,
theZmax
);
10
}
11
12
bool
SimpleCylinderBounds::inside
(
const
Local3DPoint
&
p
)
const
{
13
return
p.
z
() >
theZmin
&& p.
z
() <
theZmax
&& p.
perp
() >
theRmin
&& p.
perp
() <
theRmax
;
14
}
15
16
bool
SimpleCylinderBounds::inside
(
const
Local3DPoint
&
p
,
const
LocalError
&
err
,
float
scale
)
const
{
17
SimpleCylinderBounds
tmp
(
theRmin
,
theRmax
,
theZmin
-
sqrt
(err.
yy
()) * scale,
theZmax
+
sqrt
(err.
yy
()) * scale);
18
19
return
tmp.
inside
(p);
20
}
21
22
bool
SimpleCylinderBounds::inside
(
const
Local2DPoint
&
p
,
const
LocalError
&
err
)
const
{
return
Bounds::inside
(p, err); }
23
24
Bounds
*
SimpleCylinderBounds::clone
()
const
{
return
new
SimpleCylinderBounds
(*
this
); }
LocalError.h
PV3DBase::perp
T perp() const
Definition:
PV3DBase.h:69
Bounds::inside
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
SimpleCylinderBounds::inside
bool inside(const Local3DPoint &p) const override
Determine if the point is inside the bounds.
Definition:
SimpleCylinderBounds.cc:12
Point2DBase< float, LocalTag >
SimpleCylinderBounds.h
submitPVValidationJobs.err
tuple err
Definition:
submitPVValidationJobs.py:121
SimpleCylinderBounds::theRmin
float theRmin
Definition:
SimpleCylinderBounds.h:40
LocalError::yy
float yy() const
Definition:
LocalError.h:24
SimpleCylinderBounds::SimpleCylinderBounds
SimpleCylinderBounds(float rmin, float rmax, float zmin, float zmax)
Definition:
SimpleCylinderBounds.cc:4
pileupReCalc_HLTpaths.scale
int scale
Definition:
pileupReCalc_HLTpaths.py:113
SimpleCylinderBounds::theZmin
float theZmin
Definition:
SimpleCylinderBounds.h:42
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition:
DataFrameContainer.h:209
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
PV3DBase::z
T z() const
Definition:
PV3DBase.h:61
SimpleCylinderBounds::theZmax
float theZmax
Definition:
SimpleCylinderBounds.h:43
SimpleCylinderBounds::theRmax
float theRmax
Definition:
SimpleCylinderBounds.h:41
LocalError
Definition:
LocalError.h:12
SimpleCylinderBounds::clone
Bounds * clone() const override
Definition:
SimpleCylinderBounds.cc:24
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
Point3DBase< float, LocalTag >
SimpleCylinderBounds
Definition:
SimpleCylinderBounds.h:19
Bounds
Definition:
Bounds.h:18
createJobs.tmp
tmp
align.sh
Definition:
createJobs.py:716
Generated for CMSSW Reference Manual by
1.8.5