CMS 3D CMS Logo

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

#include <RectangularEtaPhiRegion.h>

Public Member Functions

auto etaHigh () const
 
auto etaLow () const
 
bool inRegion (float eta, float phi) const
 
auto phiHigh () const
 
auto phiLow () const
 
 RectangularEtaPhiRegion (float etaLow, float etaHigh, float phiLow, float phiHigh)
 

Private Attributes

float ceta
 
float cphi
 
float deta
 
float dphi
 

Detailed Description

Definition at line 6 of file RectangularEtaPhiRegion.h.

Constructor & Destructor Documentation

RectangularEtaPhiRegion::RectangularEtaPhiRegion ( float  etaLow,
float  etaHigh,
float  phiLow,
float  phiHigh 
)
inline

Definition at line 10 of file RectangularEtaPhiRegion.h.

References alignmentValidation::c1, constexpr, cphi, dphi, M_PI, phiLow(), and proxim().

10  :
12  {
14  constexpr float c1 = 2.*M_PI;
15  if (phiHigh<phiLow) phiHigh+=c1;
16  dphi = 0.5f*(phiHigh-phiLow);
17  cphi = phiLow+dphi;
18  }
#define constexpr
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double f[11][100]
#define M_PI
T proxim(T b, T a)
Definition: normalizedPhi.h:14

Member Function Documentation

auto RectangularEtaPhiRegion::etaHigh ( ) const
inline
auto RectangularEtaPhiRegion::etaLow ( ) const
inline
bool RectangularEtaPhiRegion::inRegion ( float  eta,
float  phi 
) const
inline
auto RectangularEtaPhiRegion::phiHigh ( ) const
inline
auto RectangularEtaPhiRegion::phiLow ( ) const
inline

Member Data Documentation

float RectangularEtaPhiRegion::ceta
private

Definition at line 32 of file RectangularEtaPhiRegion.h.

Referenced by etaHigh(), etaLow(), and inRegion().

float RectangularEtaPhiRegion::cphi
private

Definition at line 34 of file RectangularEtaPhiRegion.h.

Referenced by inRegion(), phiHigh(), phiLow(), and RectangularEtaPhiRegion().

float RectangularEtaPhiRegion::deta
private

Definition at line 33 of file RectangularEtaPhiRegion.h.

Referenced by VBF.VBF::__str__(), etaHigh(), etaLow(), and inRegion().

float RectangularEtaPhiRegion::dphi
private