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
 
emid_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 114 of file layer1_emulator.h.

Member Function Documentation

◆ clear()

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

Definition at line 121 of file layer1_emulator.h.

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

121  {
122  PuppiObj::clear();
123  srcCluster = nullptr;
124  srcTrack = nullptr;
125  srcMu = nullptr;
126  srcCand = nullptr;
127  }
void clear()
Definition: puppi.h:111
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 128 of file layer1_emulator.h.

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

128  {
130  srcCluster = src.srcCluster;
131  srcTrack = src.srcTrack;
132  srcMu = src.srcMu;
133  srcCand = src.srcCand;
134  }
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:119

◆ fill() [2/3]

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

Definition at line 135 of file layer1_emulator.h.

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

135  {
136  PuppiObj::fill(region, src, puppiPt, puppiWgt);
137  srcCluster = src.srcCluster;
138  srcTrack = nullptr;
139  srcMu = nullptr;
140  srcCand = src.srcCand;
141  }
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:119

◆ fill() [3/3]

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

Definition at line 142 of file layer1_emulator.h.

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

142  {
143  PuppiObj::fill(region, src, puppiPt, puppiWgt);
144  srcCluster = src.src;
145  srcTrack = nullptr;
146  srcMu = nullptr;
147  srcCand = nullptr;
148  }
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:119

◆ 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 115 of file layer1_emulator.h.

Referenced by clear(), and fill().

◆ srcMu

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

Definition at line 117 of file layer1_emulator.h.

Referenced by clear(), and fill().

◆ srcTrack

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

Definition at line 116 of file layer1_emulator.h.

Referenced by clear(), and fill().