CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 8 of file RectangularEtaPhiRegion.h.

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

9  : ceta(0.5f * (etaHigh + etaLow)), deta(0.5f * std::abs(etaHigh - etaLow)) {
11  constexpr float c1 = 2. * M_PI;
12  if (phiHigh < phiLow)
13  phiHigh += c1;
14  dphi = 0.5f * (phiHigh - phiLow);
15  cphi = phiLow + dphi;
16  }
constexpr T proxim(T b, T a)
Definition: normalizedPhi.h:14
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
#define M_PI

Member Function Documentation

auto RectangularEtaPhiRegion::etaHigh ( ) const
inline

Definition at line 23 of file RectangularEtaPhiRegion.h.

References ceta, and deta.

Referenced by EcalElectronicsMapping::GetListofFEDs().

auto RectangularEtaPhiRegion::etaLow ( ) const
inline

Definition at line 22 of file RectangularEtaPhiRegion.h.

References ceta, and deta.

Referenced by EcalElectronicsMapping::GetListofFEDs().

bool RectangularEtaPhiRegion::inRegion ( float  eta,
float  phi 
) const
inline

Definition at line 18 of file RectangularEtaPhiRegion.h.

References funct::abs(), ceta, cphi, deta, dphi, and proxim().

auto RectangularEtaPhiRegion::phiHigh ( ) const
inline

Definition at line 25 of file RectangularEtaPhiRegion.h.

References cphi, and dphi.

Referenced by EcalElectronicsMapping::GetListofFEDs().

auto RectangularEtaPhiRegion::phiLow ( ) const
inline

Member Data Documentation

float RectangularEtaPhiRegion::ceta
private

Definition at line 28 of file RectangularEtaPhiRegion.h.

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

float RectangularEtaPhiRegion::cphi
private

Definition at line 30 of file RectangularEtaPhiRegion.h.

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

float RectangularEtaPhiRegion::deta
private

Definition at line 29 of file RectangularEtaPhiRegion.h.

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

float RectangularEtaPhiRegion::dphi
private