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 346 of file Phase2L1CaloEGammaUtils.h.

Constructor & Destructor Documentation

◆ linkECAL()

p2eg::linkECAL::linkECAL ( )
inline

Definition at line 352 of file Phase2L1CaloEGammaUtils.h.

352 {}

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 374 of file Phase2L1CaloEGammaUtils.h.

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

Referenced by Phase2L1CaloEGammaEmulator::produce().

374  {
375  assert(iEta < 5);
376  assert(iPhi < 5);
377  return crystalE[iEta][iPhi];
378  };
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

◆ zeroOut()

void p2eg::linkECAL::zeroOut ( )
inline

Definition at line 355 of file Phase2L1CaloEGammaUtils.h.

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

Referenced by p2eg::region3x4::zeroOut().

355  { // zero out the crystalE array
356  for (int i = 0; i < CRYSTALS_IN_TOWER_ETA; i++) {
357  for (int j = 0; j < CRYSTALS_IN_TOWER_PHI; j++) {
358  crystalE[i][j] = 0;
359  }
360  }
361  };
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 348 of file Phase2L1CaloEGammaUtils.h.

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