CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
p2eg::linkECAL Class Reference

#include <Phase2L1CaloEGammaUtils.h>

Public Member Functions

void addCrystalE (int iEta, int iPhi, ap_uint< 10 > energy)
 
ap_uint< 10 > getCrystalE (int iEta, int iPhi)
 
 linkECAL ()
 
void setCrystalE (int iEta, int iPhi, ap_uint< 10 > energy)
 
void zeroOut ()
 

Private Attributes

ap_uint< 10 > crystalE [CRYSTALS_IN_TOWER_ETA][CRYSTALS_IN_TOWER_PHI]
 

Detailed Description

Definition at line 342 of file Phase2L1CaloEGammaUtils.h.

Constructor & Destructor Documentation

◆ linkECAL()

p2eg::linkECAL::linkECAL ( )
inline

Definition at line 348 of file Phase2L1CaloEGammaUtils.h.

348 {}

Member Function Documentation

◆ addCrystalE()

void p2eg::linkECAL::addCrystalE ( int  iEta,
int  iPhi,
ap_uint< 10 >  energy 
)
inline

◆ getCrystalE()

ap_uint<10> p2eg::linkECAL::getCrystalE ( int  iEta,
int  iPhi 
)
inline

Definition at line 370 of file Phase2L1CaloEGammaUtils.h.

References cms::cuda::assert(), crystalE, and l1tPhase2CaloJetEmulator_cfi::iEta.

Referenced by Phase2L1CaloEGammaEmulator::produce().

370  {
371  assert(iEta < 5);
372  assert(iPhi < 5);
373  return crystalE[iEta][iPhi];
374  };
assert(be >=bs)
ap_uint< 10 > crystalE[CRYSTALS_IN_TOWER_ETA][CRYSTALS_IN_TOWER_PHI]

◆ setCrystalE()

void p2eg::linkECAL::setCrystalE ( int  iEta,
int  iPhi,
ap_uint< 10 >  energy 
)
inline

Definition at line 358 of file Phase2L1CaloEGammaUtils.h.

References cms::cuda::assert(), crystalE, p2eg::CRYSTALS_IN_TOWER_ETA, p2eg::CRYSTALS_IN_TOWER_PHI, HBHEDarkening_cff::energy, and l1tPhase2CaloJetEmulator_cfi::iEta.

358  {
361  crystalE[iEta][iPhi] = energy;
362  };
assert(be >=bs)
ap_uint< 10 > crystalE[CRYSTALS_IN_TOWER_ETA][CRYSTALS_IN_TOWER_PHI]
static constexpr int CRYSTALS_IN_TOWER_ETA
static constexpr int CRYSTALS_IN_TOWER_PHI

◆ zeroOut()

void p2eg::linkECAL::zeroOut ( )
inline

Definition at line 351 of file Phase2L1CaloEGammaUtils.h.

References crystalE, p2eg::CRYSTALS_IN_TOWER_ETA, p2eg::CRYSTALS_IN_TOWER_PHI, mps_fire::i, and dqmiolumiharvest::j.

351  { // zero out the crystalE array
352  for (int i = 0; i < CRYSTALS_IN_TOWER_ETA; i++) {
353  for (int j = 0; j < CRYSTALS_IN_TOWER_PHI; j++) {
354  crystalE[i][j] = 0;
355  }
356  }
357  };
ap_uint< 10 > crystalE[CRYSTALS_IN_TOWER_ETA][CRYSTALS_IN_TOWER_PHI]
static constexpr int CRYSTALS_IN_TOWER_ETA
static constexpr int CRYSTALS_IN_TOWER_PHI

Member Data Documentation

◆ crystalE

ap_uint<10> p2eg::linkECAL::crystalE[CRYSTALS_IN_TOWER_ETA][CRYSTALS_IN_TOWER_PHI]
private

Definition at line 344 of file Phase2L1CaloEGammaUtils.h.

Referenced by addCrystalE(), getCrystalE(), setCrystalE(), and zeroOut().