Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
5
SimpleCylinderBounds::SimpleCylinderBounds(
float
rmin,
float
rmax,
float
zmin
,
float
zmax
) :
6
theRmin(rmin), theRmax(rmax), theZmin(zmin), theZmax(zmax) {
7
if
( theRmin > theRmax)
std::swap
( theRmin, theRmax);
8
if
( theZmin > theZmax)
std::swap
( theZmin, theZmax);
9
}
10
11
bool
SimpleCylinderBounds::inside(
const
Local3DPoint
&
p
)
const
{
12
return
p.
z
() > theZmin && p.
z
() < theZmax &&
13
p.
perp
() > theRmin && p.
perp
() < theRmax;
14
}
15
16
bool
SimpleCylinderBounds::inside(
const
Local3DPoint
& p,
const
LocalError
& err,
float
scale
)
const
{
17
18
SimpleCylinderBounds
tmp
( theRmin, theRmax,
19
theZmin -
sqrt
(err.
yy
())*scale,
20
theZmax +
sqrt
(err.
yy
())*scale);
21
22
return
tmp
.inside(p);
23
}
24
25
bool
SimpleCylinderBounds::inside(
const
Local2DPoint
& p,
const
LocalError
& err)
const
{
26
return
Bounds::inside
(p,err);
27
}
28
29
Bounds
*
SimpleCylinderBounds::clone
()
const
{
30
return
new
SimpleCylinderBounds
(*
this
);
31
}
LocalError.h
PV3DBase::perp
T perp() const
Definition:
PV3DBase.h:72
Bounds::inside
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
Point2DBase< float, LocalTag >
SimpleCylinderBounds.h
LocalError::yy
float yy() const
Definition:
LocalError.h:26
pileupReCalc_HLTpaths.scale
int scale
Definition:
pileupReCalc_HLTpaths.py:111
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition:
DataFrameContainer.h:223
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:48
PV3DBase::z
T z() const
Definition:
PV3DBase.h:64
LocalError
Definition:
LocalError.h:12
SiStripMonitorClusterAlca_cfi.zmin
tuple zmin
Definition:
SiStripMonitorClusterAlca_cfi.py:180
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
tmp
std::vector< std::vector< double > > tmp
Definition:
MVATrainer.cc:100
Point3DBase< float, LocalTag >
SimpleCylinderBounds
statics.clone
tuple clone
Definition:
statics.py:58
Bounds
Definition:
Bounds.h:22
SiStripMonitorClusterAlca_cfi.zmax
tuple zmax
Definition:
SiStripMonitorClusterAlca_cfi.py:181
Generated for CMSSW Reference Manual by
1.8.5