CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
l1ct::EGIsoObjEmu Struct Reference

#include <layer1_emulator.h>

Inheritance diagram for l1ct::EGIsoObjEmu:
l1ct::EGIsoObj

Public Types

enum  IsoType {
  TkIso = 0, PfIso = 1, TkIsoPV = 2, PfIsoPV = 3,
  PuppiIso = 4, PuppiIsoPV = 5
}
 

Public Member Functions

void clear ()
 
void clearIsoVars ()
 
float floatIso () const
 
float floatIso (IsoType type) const
 
float floatRelIso (IsoType type) const
 
float hwIsoVar (IsoType type) const
 
bool read (std::fstream &from)
 
void setHwIso (IsoType type, iso_t value)
 
bool write (std::fstream &to) const
 
- Public Member Functions inherited from l1ct::EGIsoObj
void clear ()
 
float floatEta () const
 
float floatIso () const
 
float floatPhi () const
 
float floatPt () const
 
void initFromBits (const ap_uint< BITWIDTH > &src)
 
int intEta () const
 
int intIso () const
 
int intPhi () const
 
int intPt () const
 
int intQual () const
 
bool operator< (const EGIsoObj &other) const
 
bool operator== (const EGIsoObj &other) const
 
bool operator> (const EGIsoObj &other) const
 
ap_uint< BITWIDTHpack () const
 
l1gt::Photon toGT () const
 

Public Attributes

iso_t hwIsoVars [6]
 
int src_idx
 
const l1t::PFClustersrcCluster
 
- Public Attributes inherited from l1ct::EGIsoObj
glbeta_t hwEta
 
iso_t hwIso
 
glbphi_t hwPhi
 
pt_t hwPt
 
egquality_t hwQual
 

Additional Inherited Members

- Static Public Member Functions inherited from l1ct::EGIsoObj
static EGIsoObj unpack (const ap_uint< BITWIDTH > &src)
 
- Static Public Attributes inherited from l1ct::EGIsoObj
static const int BITWIDTH = pt_t::width + glbeta_t::width + glbphi_t::width + egquality_t::width + iso_t::width
 

Detailed Description

Definition at line 159 of file layer1_emulator.h.

Member Enumeration Documentation

◆ IsoType

Member Function Documentation

◆ clear()

void l1ct::EGIsoObjEmu::clear ( void  )
inline

Definition at line 167 of file layer1_emulator.h.

References l1ct::EGIsoObj::clear(), clearIsoVars(), src_idx, and srcCluster.

167  {
168  EGIsoObj::clear();
169  srcCluster = nullptr;
170  src_idx = -1;
171  clearIsoVars();
172  }
void clear()
Definition: egamma.h:36
const l1t::PFCluster * srcCluster

◆ clearIsoVars()

void l1ct::EGIsoObjEmu::clearIsoVars ( )
inline

Definition at line 174 of file layer1_emulator.h.

References hwIsoVars.

Referenced by clear().

174  {
175  hwIsoVars[0] = 0;
176  hwIsoVars[1] = 0;
177  hwIsoVars[2] = 0;
178  hwIsoVars[3] = 0;
179  hwIsoVars[4] = 0;
180  hwIsoVars[5] = 0;
181  }

◆ floatIso() [1/2]

float l1ct::EGIsoObj::floatIso
inline

Definition at line 26 of file egamma.h.

26 { return Scales::floatIso(hwIso); }
float floatIso(iso_t iso)
Definition: datatypes.h:173
iso_t hwIso
Definition: egamma.h:15

◆ floatIso() [2/2]

float l1ct::EGIsoObjEmu::floatIso ( IsoType  type) const
inline

Definition at line 187 of file layer1_emulator.h.

References l1ct::Scales::floatIso(), and hwIsoVars.

187 { return Scales::floatIso(hwIsoVars[type]); }
float floatIso(iso_t iso)
Definition: datatypes.h:173

◆ floatRelIso()

float l1ct::EGIsoObjEmu::floatRelIso ( IsoType  type) const
inline

Definition at line 188 of file layer1_emulator.h.

References l1ct::Scales::floatIso(), l1ct::EGIsoObj::floatPt(), and hwIsoVars.

Referenced by L1TCtL2EgProducer::convertFromEmu().

188 { return Scales::floatIso(hwIsoVars[type]) / floatPt(); }
float floatPt() const
Definition: egamma.h:23
float floatIso(iso_t iso)
Definition: datatypes.h:173

◆ hwIsoVar()

float l1ct::EGIsoObjEmu::hwIsoVar ( IsoType  type) const
inline

Definition at line 189 of file layer1_emulator.h.

References hwIsoVars.

◆ read()

bool l1ct::EGIsoObjEmu::read ( std::fstream &  from)

◆ setHwIso()

void l1ct::EGIsoObjEmu::setHwIso ( IsoType  type,
iso_t  value 
)
inline

◆ write()

bool l1ct::EGIsoObjEmu::write ( std::fstream &  to) const

Member Data Documentation

◆ hwIsoVars

iso_t l1ct::EGIsoObjEmu::hwIsoVars[6]

Definition at line 192 of file layer1_emulator.h.

Referenced by clearIsoVars(), floatIso(), floatRelIso(), hwIsoVar(), and setHwIso().

◆ src_idx

int l1ct::EGIsoObjEmu::src_idx

◆ srcCluster

const l1t::PFCluster* l1ct::EGIsoObjEmu::srcCluster

Definition at line 160 of file layer1_emulator.h.

Referenced by clear(), and L1TCtL2EgProducer::convertToEmu().