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 ( float  eta1,
float  eta2 
)
inline

Definition at line 7 of file EtaInterval.h.

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

Member Function Documentation

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

Definition at line 10 of file EtaInterval.h.

References Basic3DVector< T >::perp(), alignCSCRings::r, z, Basic3DVector< T >::z(), z1, and z2.

10  {
11  auto z = v.z();
12  auto r = v.perp();
13  return (z>z1*r) & (z<z2*r);
14  }
T z() const
Cartesian z coordinate.
T perp() const
Magnitude of transverse component.

Member Data Documentation

float EtaInterval::z1
private

Definition at line 17 of file EtaInterval.h.

Referenced by inside().

float EtaInterval::z2
private

Definition at line 17 of file EtaInterval.h.

Referenced by inside().