CMS 3D CMS Logo

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

#include <layer1_emulator.h>

Inheritance diagram for l1ct::PuppiObjEmu:
l1ct::PuppiObj

Public Member Functions

void clear ()
 
void fill (const PFRegionEmu &region, const PFChargedObjEmu &src)
 
void fill (const PFRegionEmu &region, const PFNeutralObjEmu &src, pt_t puppiPt, puppiWgt_t puppiWgt)
 
void fill (const PFRegionEmu &region, const HadCaloObjEmu &src, pt_t puppiPt, puppiWgt_t puppiWgt)
 
bool read (std::fstream &from)
 
bool write (std::fstream &to) const
 
- Public Member Functions inherited from l1ct::PuppiObj
void clear ()
 
void fill (const PFRegion &region, const PFChargedObj &src)
 
void fill (const PFRegion &region, const PFNeutralObj &src, pt_t puppiPt, puppiWgt_t puppiWgt)
 
void fill (const PFRegion &region, const HadCaloObj &src, pt_t puppiPt, puppiWgt_t puppiWgt)
 
float floatDxy () const
 
float floatEta () const
 
float floatPhi () const
 
float floatPt () const
 
float floatPuppiW () const
 
float floatZ0 () const
 
dxy_t hwDxy () const
 
puppiWgt_t hwEmID () const
 
puppiWgt_t hwPuppiW () const
 
tkquality_t hwTkQuality () const
 
z0_t hwZ0 () const
 
void initFromBits (const ap_uint< BITWIDTH > &src)
 
int intCharge () const
 
int intEta () const
 
int intId () const
 
int intPhi () const
 
int intPt () const
 
int oldId () const
 
bool operator< (const PuppiObj &other) const
 
bool operator== (const PuppiObj &other) const
 
bool operator> (const PuppiObj &other) const
 
ap_uint< BITWIDTHpack () const
 
int pdgId () const
 
void setHwDxy (dxy_t dxy)
 
void setHwEmID (emid_t w)
 
void setHwPuppiW (puppiWgt_t w)
 
void setHwTkQuality (tkquality_t qual)
 
void setHwZ0 (z0_t z0)
 

Public Attributes

const l1t::PFCandidatesrcCand = nullptr
 
const l1t::PFClustersrcCluster = nullptr
 
const l1t::SAMuonsrcMu = nullptr
 
const l1t::PFTracksrcTrack = nullptr
 
- Public Attributes inherited from l1ct::PuppiObj
ap_uint< DATA_BITS_TOTALhwData
 
glbeta_t hwEta
 
ParticleID hwId
 
glbphi_t hwPhi
 
pt_t hwPt
 

Additional Inherited Members

- Static Public Member Functions inherited from l1ct::PuppiObj
static PuppiObj unpack (const ap_uint< BITWIDTH > &src)
 
- Static Public Attributes inherited from l1ct::PuppiObj
static const int BITS_DXY_START = BITS_Z0_START + z0_t::width
 
static const int BITS_EMID_START = BITS_PUPPIW_START + puppiWgt_t::width
 
static const int BITS_PUPPIW_START = 0
 
static const int BITS_TKQUAL_START = BITS_DXY_START + dxy_t::width
 
static const int BITS_Z0_START = 0
 
static const int BITWIDTH = pt_t::width + glbeta_t::width + glbphi_t::width + 3 + DATA_BITS_TOTAL
 
static const int DATA_BITS_TOTAL
 
static const int DATA_CHARGED_BITS_TOTAL = BITS_TKQUAL_START + tkquality_t::width
 
static const int DATA_NEUTRAL_BITS_TOTAL = BITS_EMID_START + emid_t::width
 

Detailed Description

Definition at line 115 of file layer1_emulator.h.

Member Function Documentation

◆ clear()

void l1ct::PuppiObjEmu::clear ( void  )
inline

Definition at line 122 of file layer1_emulator.h.

References l1ct::PuppiObj::clear(), srcCand, srcCluster, srcMu, and srcTrack.

122  {
123  PuppiObj::clear();
124  srcCluster = nullptr;
125  srcTrack = nullptr;
126  srcMu = nullptr;
127  srcCand = nullptr;
128  }
void clear()
Definition: puppi.h:109
const l1t::PFCluster * srcCluster
const l1t::PFCandidate * srcCand
const l1t::SAMuon * srcMu
const l1t::PFTrack * srcTrack

◆ fill() [1/3]

void l1ct::PuppiObjEmu::fill ( const PFRegionEmu region,
const PFChargedObjEmu src 
)
inline

Definition at line 129 of file layer1_emulator.h.

References l1ct::PuppiObj::fill(), HLT_2023v12_cff::region, TrackRefitter_38T_cff::src, srcCand, srcCluster, srcMu, and srcTrack.

129  {
131  srcCluster = src.srcCluster;
132  srcTrack = src.srcTrack;
133  srcMu = src.srcMu;
134  srcCand = src.srcCand;
135  }
const l1t::PFCluster * srcCluster
const l1t::PFCandidate * srcCand
const l1t::SAMuon * srcMu
const l1t::PFTrack * srcTrack
void fill(const PFRegion &region, const PFChargedObj &src)
Definition: puppi.h:117

◆ fill() [2/3]

void l1ct::PuppiObjEmu::fill ( const PFRegionEmu region,
const PFNeutralObjEmu src,
pt_t  puppiPt,
puppiWgt_t  puppiWgt 
)
inline

Definition at line 136 of file layer1_emulator.h.

References l1ct::PuppiObj::fill(), HLT_2023v12_cff::region, TrackRefitter_38T_cff::src, srcCand, srcCluster, srcMu, and srcTrack.

136  {
137  PuppiObj::fill(region, src, puppiPt, puppiWgt);
138  srcCluster = src.srcCluster;
139  srcTrack = nullptr;
140  srcMu = nullptr;
141  srcCand = src.srcCand;
142  }
const l1t::PFCluster * srcCluster
const l1t::PFCandidate * srcCand
const l1t::SAMuon * srcMu
const l1t::PFTrack * srcTrack
void fill(const PFRegion &region, const PFChargedObj &src)
Definition: puppi.h:117

◆ fill() [3/3]

void l1ct::PuppiObjEmu::fill ( const PFRegionEmu region,
const HadCaloObjEmu src,
pt_t  puppiPt,
puppiWgt_t  puppiWgt 
)
inline

Definition at line 143 of file layer1_emulator.h.

References l1ct::PuppiObj::fill(), HLT_2023v12_cff::region, TrackRefitter_38T_cff::src, srcCand, srcCluster, srcMu, and srcTrack.

143  {
144  PuppiObj::fill(region, src, puppiPt, puppiWgt);
145  srcCluster = src.src;
146  srcTrack = nullptr;
147  srcMu = nullptr;
148  srcCand = nullptr;
149  }
const l1t::PFCluster * srcCluster
const l1t::PFCandidate * srcCand
const l1t::SAMuon * srcMu
const l1t::PFTrack * srcTrack
void fill(const PFRegion &region, const PFChargedObj &src)
Definition: puppi.h:117

◆ read()

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

◆ write()

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

Member Data Documentation

◆ srcCand

const l1t::PFCandidate* l1ct::PuppiObjEmu::srcCand = nullptr

◆ srcCluster

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

Definition at line 116 of file layer1_emulator.h.

Referenced by clear(), and fill().

◆ srcMu

const l1t::SAMuon* l1ct::PuppiObjEmu::srcMu = nullptr

Definition at line 118 of file layer1_emulator.h.

Referenced by clear(), and fill().

◆ srcTrack

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

Definition at line 117 of file layer1_emulator.h.

Referenced by clear(), and fill().