ATLAS Offline Software
Classes | Functions
eflowRec Namespace Reference

Classes

class  EtaPhiLUT
 2D look up table for eflowRecClusters More...
 

Functions

float phiInRange (float phi)
 hepler function to ensure phi is within +-Pi More...
 
unsigned int phiIndex (float phi, float binsize)
 calculate phi index for a given phi More...
 

Function Documentation

◆ phiIndex()

unsigned int eflowRec::phiIndex ( float  phi,
float  binsize 
)

calculate phi index for a given phi

Definition at line 23 of file EtaPhiLUT.cxx.

23 { return (phi + M_PI)/binsize; }

◆ phiInRange()

float eflowRec::phiInRange ( float  phi)

hepler function to ensure phi is within +-Pi

Definition at line 16 of file EtaPhiLUT.cxx.

16  {
17  while (phi >= M_PI) phi -= TWOPI;
18  while (phi < -M_PI) phi += TWOPI;
19  return phi;
20  }
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
M_PI
#define M_PI
Definition: ActiveFraction.h:11
python.samplers.TWOPI
int TWOPI
Definition: samplers.py:8