ATLAS Offline Software
Loading...
Searching...
No Matches
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
unsigned int phiIndex (float phi, float binsize)
 calculate phi index for a given phi

Variables

static constexpr float TWOPI = 2*M_PI
 define 2*Pi

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; }
#define M_PI
Scalar phi() const
phi method

◆ 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 }
static constexpr float TWOPI
define 2*Pi
Definition EtaPhiLUT.cxx:13

Variable Documentation

◆ TWOPI

float eflowRec::TWOPI = 2*M_PI
staticconstexpr

define 2*Pi

Definition at line 13 of file EtaPhiLUT.cxx.