CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EtaInterval Class Reference

#include <EtaInterval.h>

Public Member Functions

 EtaInterval (float eta1, float eta2)
 
template<typename T >
bool inside (Basic3DVector< T > const &v) const
 

Private Attributes

float z1
 
float z2
 

Detailed Description

Definition at line 5 of file EtaInterval.h.

Constructor & Destructor Documentation

◆ EtaInterval()

EtaInterval::EtaInterval ( float  eta1,
float  eta2 
)
inline

Definition at line 7 of file EtaInterval.h.

7 : z1(::sinhf(eta1)), z2(::sinhf(eta2)) {}

Member Function Documentation

◆ inside()

template<typename T >
bool EtaInterval::inside ( Basic3DVector< T > const &  v) const
inline

Definition at line 10 of file EtaInterval.h.

10  {
11  auto z = v.z();
12  auto r = v.perp();
13  return (z > z1 * r) & (z < z2 * r);
14  }

References alignCSCRings::r, findQualityFiles::v, z, z1, and z2.

Member Data Documentation

◆ z1

float EtaInterval::z1
private

Definition at line 17 of file EtaInterval.h.

Referenced by inside().

◆ z2

float EtaInterval::z2
private

Definition at line 17 of file EtaInterval.h.

Referenced by inside().

findQualityFiles.v
v
Definition: findQualityFiles.py:179
EtaInterval::z1
float z1
Definition: EtaInterval.h:17
HLT_FULL_cff.eta2
eta2
Definition: HLT_FULL_cff.py:9542
DDAxes::z
HLT_FULL_cff.eta1
eta1
Definition: HLT_FULL_cff.py:9541
alignCSCRings.r
r
Definition: alignCSCRings.py:93
EtaInterval::z2
float z2
Definition: EtaInterval.h:17