CMS 3D CMS Logo

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

#include <Phase2L1CaloEGammaUtils.h>

Public Member Functions

float getIdx () const
 
linkECALgetLinkECAL (int iEta, int iPhi)
 
 region3x4 ()
 
void setIdx (int idx)
 
void zeroOut ()
 

Private Attributes

int idx_ = -1
 
std::array< std::array< linkECAL, TOWER_IN_PHI >, TOWER_IN_ETAlinksECAL
 

Detailed Description

Definition at line 385 of file Phase2L1CaloEGammaUtils.h.

Constructor & Destructor Documentation

◆ region3x4()

p2eg::region3x4::region3x4 ( )
inline

Definition at line 392 of file Phase2L1CaloEGammaUtils.h.

References idx_.

392 { idx_ = -1; }

Member Function Documentation

◆ getIdx()

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

Definition at line 405 of file Phase2L1CaloEGammaUtils.h.

References idx_.

405 { return idx_; };

◆ getLinkECAL()

linkECAL& p2eg::region3x4::getLinkECAL ( int  iEta,
int  iPhi 
)
inline

Definition at line 406 of file Phase2L1CaloEGammaUtils.h.

References l1tPhase2CaloJetEmulator_cfi::iEta, and linksECAL.

Referenced by Phase2L1CaloEGammaEmulator::produce().

406 { return linksECAL[iEta][iPhi]; };
std::array< std::array< linkECAL, TOWER_IN_PHI >, TOWER_IN_ETA > linksECAL

◆ setIdx()

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

◆ zeroOut()

void p2eg::region3x4::zeroOut ( )
inline

Definition at line 395 of file Phase2L1CaloEGammaUtils.h.

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

395  {
396  for (int i = 0; i < TOWER_IN_ETA; i++) {
397  for (int j = 0; j < TOWER_IN_PHI; j++) {
398  linksECAL[i][j].zeroOut();
399  }
400  }
401  };
static constexpr int TOWER_IN_PHI
static constexpr int TOWER_IN_ETA
std::array< std::array< linkECAL, TOWER_IN_PHI >, TOWER_IN_ETA > linksECAL

Member Data Documentation

◆ idx_

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

Definition at line 387 of file Phase2L1CaloEGammaUtils.h.

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

◆ linksECAL

std::array<std::array<linkECAL, TOWER_IN_PHI>, TOWER_IN_ETA> p2eg::region3x4::linksECAL
private

Definition at line 388 of file Phase2L1CaloEGammaUtils.h.

Referenced by getLinkECAL(), and zeroOut().