CMS 3D CMS Logo

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

Public Member Functions

 EtaPhiRegion (float iEta, float iPhi, float iDR, float iDEta, float iDPhi)
 
bool operator() (float eta, float phi) const
 
 ~EtaPhiRegion ()
 

Private Attributes

float centreEta_
 
float centrePhi_
 
float maxDeltaR2_
 
float maxDEta_
 
float maxDPhi_
 

Detailed Description

Definition at line 47 of file HLTCaloObjInRegionsProducer.cc.

Constructor & Destructor Documentation

◆ EtaPhiRegion()

EtaPhiRegion::EtaPhiRegion ( float  iEta,
float  iPhi,
float  iDR,
float  iDEta,
float  iDPhi 
)
inline

◆ ~EtaPhiRegion()

EtaPhiRegion::~EtaPhiRegion ( )
inline

Definition at line 58 of file HLTCaloObjInRegionsProducer.cc.

58 {}

Member Function Documentation

◆ operator()()

bool EtaPhiRegion::operator() ( float  eta,
float  phi 
) const
inline

Definition at line 59 of file HLTCaloObjInRegionsProducer.cc.

References funct::abs(), centreEta_, centrePhi_, reco::deltaPhi(), reco::deltaR2(), PVValHelper::eta, maxDeltaR2_, maxDEta_, maxDPhi_, and phi.

59  {
62  }
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:16

Member Data Documentation

◆ centreEta_

float EtaPhiRegion::centreEta_
private

Definition at line 49 of file HLTCaloObjInRegionsProducer.cc.

Referenced by operator()().

◆ centrePhi_

float EtaPhiRegion::centrePhi_
private

Definition at line 50 of file HLTCaloObjInRegionsProducer.cc.

Referenced by operator()().

◆ maxDeltaR2_

float EtaPhiRegion::maxDeltaR2_
private

Definition at line 51 of file HLTCaloObjInRegionsProducer.cc.

Referenced by operator()().

◆ maxDEta_

float EtaPhiRegion::maxDEta_
private

Definition at line 52 of file HLTCaloObjInRegionsProducer.cc.

Referenced by operator()().

◆ maxDPhi_

float EtaPhiRegion::maxDPhi_
private

Definition at line 53 of file HLTCaloObjInRegionsProducer.cc.

Referenced by operator()().