Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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_FULL_cff.eta2
tuple eta2
Definition:
HLT_FULL_cff.py:9780
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
Basic3DVector::z
T z() const
Cartesian z coordinate.
Definition:
extBasic3DVector.h:100
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
Basic3DVector::perp
T perp() const
Magnitude of transverse component.
Definition:
extBasic3DVector.h:122
EtaInterval::inside
bool inside(Basic3DVector< T > const &v) const
Definition:
EtaInterval.h:10
EtaInterval::z2
float z2
Definition:
EtaInterval.h:17
alignCSCRings.r
list r
Definition:
alignCSCRings.py:93
DDAxes::z
HLT_FULL_cff.eta1
tuple eta1
Definition:
HLT_FULL_cff.py:9779
EtaInterval
Definition:
EtaInterval.h:5
Generated for CMSSW Reference Manual by
1.8.5