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)
 

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))
 

Function Documentation

◆ floatEta()

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

Definition at line 45 of file gt_datatypes.h.

References PVValHelper::eta, and ETAPHI_LSB.

Referenced by L1TCtL2EgProducer::convertFromEmu().

45 { return eta.to_float() * ETAPHI_LSB; }
constexpr float ETAPHI_LSB
Definition: gt_datatypes.h:43

◆ floatPhi()

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

Definition at line 46 of file gt_datatypes.h.

References ETAPHI_LSB.

Referenced by L1TCtL2EgProducer::convertFromEmu().

46 { return phi.to_float() * ETAPHI_LSB; }
constexpr float ETAPHI_LSB
Definition: gt_datatypes.h:43

◆ floatPt()

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

Definition at line 44 of file gt_datatypes.h.

References DiDispStaMuonMonitor_cfi::pt.

Referenced by L1TCtL2EgProducer::convertFromEmu().

44 { return pt.to_float(); }

Variable Documentation

◆ ETAPHI_LSB

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

Definition at line 43 of file gt_datatypes.h.

Referenced by floatEta(), and floatPhi().

◆ INTPHI_PI

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

Definition at line 40 of file gt_datatypes.h.

◆ INTPHI_TWOPI

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

Definition at line 42 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 41 of file gt_datatypes.h.