CMS 3D CMS Logo

Functions | Variables
l1gt::Scales Namespace Reference

Functions

float floatEta (eta_t eta)
 
float floatPhi (phi_t phi)
 
float floatPt (pt_t pt)
 
float floatZ0 (z0_t z0)
 

Variables

constexpr float ETAPHI_LSB = M_PI / INTPHI_PI
 
const int INTPHI_PI = 1 << (phi_t::width - 1)
 
const int INTPHI_TWOPI = 2 * INTPHI_PI
 
const float INTPT_LSB = 1.0 / (1 << (pt_t::width - pt_t::iwidth))
 
constexpr float Z0_UNITS = 0.1
 

Function Documentation

◆ floatEta()

float l1gt::Scales::floatEta ( eta_t  eta)
inline

◆ floatPhi()

float l1gt::Scales::floatPhi ( phi_t  phi)
inline

◆ floatPt()

float l1gt::Scales::floatPt ( pt_t  pt)
inline

◆ floatZ0()

float l1gt::Scales::floatZ0 ( z0_t  z0)
inline

Definition at line 50 of file gt_datatypes.h.

References Z0_UNITS.

Referenced by L1TCtL2EgProducer::convertFromEmu().

50 { return z0.to_float() * Z0_UNITS; }
constexpr float Z0_UNITS
Definition: gt_datatypes.h:46

Variable Documentation

◆ ETAPHI_LSB

constexpr float l1gt::Scales::ETAPHI_LSB = M_PI / INTPHI_PI

Definition at line 45 of file gt_datatypes.h.

Referenced by floatEta(), floatPhi(), and l1t::L1GTProducer::produceCL2EtSum().

◆ INTPHI_PI

const int l1gt::Scales::INTPHI_PI = 1 << (phi_t::width - 1)

Definition at line 42 of file gt_datatypes.h.

◆ INTPHI_TWOPI

const int l1gt::Scales::INTPHI_TWOPI = 2 * INTPHI_PI

Definition at line 44 of file gt_datatypes.h.

◆ INTPT_LSB

const float l1gt::Scales::INTPT_LSB = 1.0 / (1 << (pt_t::width - pt_t::iwidth))

Definition at line 43 of file gt_datatypes.h.

◆ Z0_UNITS

constexpr float l1gt::Scales::Z0_UNITS = 0.1

Definition at line 46 of file gt_datatypes.h.

Referenced by floatZ0().