src
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
HLT_2023v12_cff.eta2
eta2
Definition:
HLT_2023v12_cff.py:14172
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
EtaInterval::z1
float z1
Definition:
EtaInterval.h:17
Basic3DVector
Definition:
extBasic3DVector.h:30
Basic3DVector.h
EtaInterval::EtaInterval
EtaInterval(float eta1, float eta2)
Definition:
EtaInterval.h:7
EtaInterval::inside
bool inside(Basic3DVector< T > const &v) const
Definition:
EtaInterval.h:10
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
HLT_2023v12_cff.eta1
eta1
Definition:
HLT_2023v12_cff.py:14171
EtaInterval::z2
float z2
Definition:
EtaInterval.h:17
DDAxes::z
EtaInterval
Definition:
EtaInterval.h:5
Generated for CMSSW Reference Manual by
1.8.14