Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
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
21
#endif
22
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
Basic3DVector::z
T z() const
Cartesian z coordinate.
Definition:
extBasic3DVector.h:105
EtaInterval::z1
float z1
Definition:
EtaInterval.h:17
Basic3DVector
Definition:
extBasic3DVector.h:24
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:127
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:92
DDAxes::z
EtaInterval
Definition:
EtaInterval.h:5
Generated for CMSSW Reference Manual by
1.8.5