CMS 3D CMS Logo

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

#include <layer1_emulator.h>

Inheritance diagram for l1ct::EGIsoEleObjEmu:
l1ct::EGIsoEleObj l1ct::EGIsoObj

Public Types

enum  IsoType { TkIso = 0, PfIso = 1, PuppiIso = 2 }
 

Public Member Functions

void clear ()
 
void clearIsoVars ()
 
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::EGIsoEleObj
void clear ()
 
float floatDEta () const
 
float floatDPhi () const
 
float floatVtxEta () const
 
float floatVtxPhi () const
 
float floatZ0 () const
 
eta_t hwVtxEta () const
 
phi_t hwVtxPhi () const
 
void initFromBits (const ap_uint< BITWIDTH > &src)
 
int intCharge () const
 
bool operator< (const EGIsoEleObj &other) const
 
bool operator== (const EGIsoEleObj &other) const
 
bool operator> (const EGIsoEleObj &other) const
 
ap_uint< BITWIDTHpack () const
 
l1gt::Electron toGT () 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 [3]
 
float idScore
 
const l1t::PFClustersrcCluster = nullptr
 
const l1t::PFTracksrcTrack = nullptr
 
int sta_idx
 
- Public Attributes inherited from l1ct::EGIsoEleObj
bool hwCharge
 
tkdeta_t hwDEta
 
tkdphi_t hwDPhi
 
z0_t hwZ0
 
- 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::EGIsoEleObj
static EGIsoEleObj unpack (const ap_uint< BITWIDTH > &src)
 
- Static Public Member Functions inherited from l1ct::EGIsoObj
static EGIsoObj unpack (const ap_uint< BITWIDTH > &src)
 
- Static Public Attributes inherited from l1ct::EGIsoEleObj
static const int BITWIDTH = EGIsoObj::BITWIDTH + tkdeta_t::width + tkdphi_t::width + z0_t::width + 1
 
- 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 193 of file layer1_emulator.h.

Member Enumeration Documentation

◆ IsoType

Enumerator
TkIso 
PfIso 
PuppiIso 

Definition at line 218 of file layer1_emulator.h.

Member Function Documentation

◆ clear()

void l1ct::EGIsoEleObjEmu::clear ( void  )
inline

Definition at line 201 of file layer1_emulator.h.

References l1ct::EGIsoEleObj::clear(), clearIsoVars(), idScore, srcCluster, srcTrack, and sta_idx.

201  {
203  srcCluster = nullptr;
204  srcTrack = nullptr;
205  sta_idx = -1;
206  idScore = -999;
207  clearIsoVars();
208  }
const l1t::PFTrack * srcTrack
void clear()
Definition: egamma.h:104
const l1t::PFCluster * srcCluster

◆ clearIsoVars()

void l1ct::EGIsoEleObjEmu::clearIsoVars ( )
inline

Definition at line 210 of file layer1_emulator.h.

References hwIsoVars.

Referenced by clear().

210  {
211  hwIsoVars[0] = 0;
212  hwIsoVars[1] = 0;
213  hwIsoVars[2] = 0;
214  }

◆ floatIso()

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

Definition at line 220 of file layer1_emulator.h.

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

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

◆ floatRelIso()

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

Definition at line 221 of file layer1_emulator.h.

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

Referenced by L1TCtL2EgProducer::convertFromEmu().

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

◆ hwIsoVar()

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

Definition at line 222 of file layer1_emulator.h.

References hwIsoVars.

◆ read()

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

◆ setHwIso()

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

◆ write()

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

Member Data Documentation

◆ hwIsoVars

iso_t l1ct::EGIsoEleObjEmu::hwIsoVars[3]

Definition at line 225 of file layer1_emulator.h.

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

◆ idScore

float l1ct::EGIsoEleObjEmu::idScore

◆ srcCluster

const l1t::PFCluster* l1ct::EGIsoEleObjEmu::srcCluster = nullptr

Definition at line 194 of file layer1_emulator.h.

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

◆ srcTrack

const l1t::PFTrack* l1ct::EGIsoEleObjEmu::srcTrack = nullptr

Definition at line 195 of file layer1_emulator.h.

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

◆ sta_idx

int l1ct::EGIsoEleObjEmu::sta_idx