CMS 3D CMS Logo

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

#include <EcalEtaPhiRegion.h>

Public Member Functions

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

Private Attributes

float ceta
 
float cphi
 
float deta
 
float dphi
 

Detailed Description

Definition at line 6 of file EcalEtaPhiRegion.h.

Constructor & Destructor Documentation

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

Definition at line 10 of file EcalEtaPhiRegion.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  }
auto phiLow() const
auto etaHigh() const
#define constexpr
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double f[11][100]
auto phiHigh() const
#define M_PI
T proxim(T b, T a)
Definition: normalizedPhi.h:14
auto etaLow() const

Member Function Documentation

auto EcalEtaPhiRegion::etaHigh ( ) const
inline

Definition at line 26 of file EcalEtaPhiRegion.h.

References ceta, and deta.

Referenced by EcalElectronicsMapping::GetListofFEDs().

26 { return ceta+deta; }
auto EcalEtaPhiRegion::etaLow ( ) const
inline

Definition at line 25 of file EcalEtaPhiRegion.h.

References ceta, and deta.

Referenced by EcalElectronicsMapping::GetListofFEDs().

25 { return ceta-deta; }
bool EcalEtaPhiRegion::inRegion ( float  eta,
float  phi 
) const
inline

Definition at line 20 of file EcalEtaPhiRegion.h.

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

20  {
21  return std::abs(eta-ceta)<deta &&
23  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
T proxim(T b, T a)
Definition: normalizedPhi.h:14
auto EcalEtaPhiRegion::phiHigh ( ) const
inline

Definition at line 28 of file EcalEtaPhiRegion.h.

References cphi, and dphi.

Referenced by EcalElectronicsMapping::GetListofFEDs().

28 { return cphi+dphi; }
auto EcalEtaPhiRegion::phiLow ( ) const
inline

Definition at line 27 of file EcalEtaPhiRegion.h.

References cphi, and dphi.

Referenced by EcalEtaPhiRegion(), and EcalElectronicsMapping::GetListofFEDs().

27 { return cphi-dphi; }

Member Data Documentation

float EcalEtaPhiRegion::ceta
private

Definition at line 32 of file EcalEtaPhiRegion.h.

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

float EcalEtaPhiRegion::cphi
private

Definition at line 34 of file EcalEtaPhiRegion.h.

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

float EcalEtaPhiRegion::deta
private

Definition at line 33 of file EcalEtaPhiRegion.h.

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

float EcalEtaPhiRegion::dphi
private

Definition at line 35 of file EcalEtaPhiRegion.h.

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