DataFormats
GeometryVector
interface
EtaInterval.h
Go to the documentation of this file.
1
#ifndef GeometryVector_EtaInterval_H
2
#define GeometryVector_EtaInterval_H
3
#include "
DataFormats/GeometryVector/interface/Basic3DVector.h
"
4
5
class
EtaInterval
{
6
public
:
7
EtaInterval
(
float
eta1
,
float
eta2
) :
z1
(::sinhf(
eta1
)),
z2
(::sinhf(
eta2
)) {}
8
9
template
<
typename
T>
10
bool
inside
(
Basic3DVector<T>
const
&
v
)
const
{
11
auto
z
=
v
.z();
12
auto
r
=
v
.perp();
13
return
(
z
>
z1
*
r
) & (
z
<
z2
*
r
);
14
}
15
16
private
:
17
float
z1
,
z2
;
18
};
19
20
#endif
Basic3DVector.h
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
EtaInterval::z1
float z1
Definition:
EtaInterval.h:17
EtaInterval::inside
bool inside(Basic3DVector< T > const &v) const
Definition:
EtaInterval.h:10
HLT_FULL_cff.eta2
eta2
Definition:
HLT_FULL_cff.py:9542
DDAxes::z
HLT_FULL_cff.eta1
eta1
Definition:
HLT_FULL_cff.py:9541
EtaInterval::EtaInterval
EtaInterval(float eta1, float eta2)
Definition:
EtaInterval.h:7
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
EtaInterval
Definition:
EtaInterval.h:5
EtaInterval::z2
float z2
Definition:
EtaInterval.h:17
Basic3DVector
Definition:
extBasic3DVector.h:30
Generated for CMSSW Reference Manual by
1.8.16