CMS 3D CMS Logo

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

#include <Phase2L1CaloEGammaUtils.h>

Public Member Functions

float getIdx () const
 
towerHCALgetTowerHCAL (int iEta, int iPhi)
 
void setIdx (int idx)
 
 towers3x4 ()
 
void zeroOut ()
 

Private Attributes

int idx_ = -1
 
std::array< std::array< towerHCAL, TOWER_IN_PHI >, TOWER_IN_ETAtowersHCAL
 

Detailed Description

Definition at line 444 of file Phase2L1CaloEGammaUtils.h.

Constructor & Destructor Documentation

◆ towers3x4()

p2eg::towers3x4::towers3x4 ( )
inline

Definition at line 451 of file Phase2L1CaloEGammaUtils.h.

References idx_.

451 { idx_ = -1; };

Member Function Documentation

◆ getIdx()

float p2eg::towers3x4::getIdx ( ) const
inline

Definition at line 464 of file Phase2L1CaloEGammaUtils.h.

References idx_.

464 { return idx_; };

◆ getTowerHCAL()

towerHCAL& p2eg::towers3x4::getTowerHCAL ( int  iEta,
int  iPhi 
)
inline

Definition at line 465 of file Phase2L1CaloEGammaUtils.h.

References l1tPhase2CaloJetEmulator_cfi::iEta, and towersHCAL.

Referenced by Phase2L1CaloEGammaEmulator::produce().

465 { return towersHCAL[iEta][iPhi]; };
std::array< std::array< towerHCAL, TOWER_IN_PHI >, TOWER_IN_ETA > towersHCAL

◆ setIdx()

void p2eg::towers3x4::setIdx ( int  idx)
inline

◆ zeroOut()

void p2eg::towers3x4::zeroOut ( )
inline

Definition at line 454 of file Phase2L1CaloEGammaUtils.h.

References mps_fire::i, dqmiolumiharvest::j, p2eg::TOWER_IN_ETA, p2eg::TOWER_IN_PHI, and towersHCAL.

454  {
455  for (int i = 0; i < TOWER_IN_ETA; i++) {
456  for (int j = 0; j < TOWER_IN_PHI; j++) {
457  towersHCAL[i][j].zeroOut();
458  }
459  }
460  };
std::array< std::array< towerHCAL, TOWER_IN_PHI >, TOWER_IN_ETA > towersHCAL
static constexpr int TOWER_IN_PHI
static constexpr int TOWER_IN_ETA

Member Data Documentation

◆ idx_

int p2eg::towers3x4::idx_ = -1
private

Definition at line 446 of file Phase2L1CaloEGammaUtils.h.

Referenced by getIdx(), setIdx(), and towers3x4().

◆ towersHCAL

std::array<std::array<towerHCAL, TOWER_IN_PHI>, TOWER_IN_ETA> p2eg::towers3x4::towersHCAL
private

Definition at line 447 of file Phase2L1CaloEGammaUtils.h.

Referenced by getTowerHCAL(), and zeroOut().