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

Constructor & Destructor Documentation

◆ linkECAL()

p2eg::linkECAL::linkECAL ( )
inline

Definition at line 353 of file Phase2L1CaloEGammaUtils.h.

353 {}

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

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

Referenced by Phase2L1CaloEGammaEmulator::produce().

375  {
376  assert(iEta < 5);
377  assert(iPhi < 5);
378  return crystalE[iEta][iPhi];
379  };
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 363 of file Phase2L1CaloEGammaUtils.h.

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

363  {
366  crystalE[iEta][iPhi] = energy;
367  };
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 356 of file Phase2L1CaloEGammaUtils.h.

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

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

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