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.

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

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

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().