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)
 
towers3x4 operator= (const towers3x4 &other)
 
void setIdx (int idx)
 
 towers3x4 ()
 
 towers3x4 (const towers3x4 &other)
 
void zeroOut ()
 

Private Attributes

int idx_ = -1
 
towerHCAL towersHCAL [TOWER_IN_ETA][TOWER_IN_PHI]
 

Detailed Description

Definition at line 458 of file Phase2L1CaloEGammaUtils.h.

Constructor & Destructor Documentation

◆ towers3x4() [1/2]

p2eg::towers3x4::towers3x4 ( )
inline

Definition at line 465 of file Phase2L1CaloEGammaUtils.h.

References idx_.

465 { idx_ = -1; };

◆ towers3x4() [2/2]

p2eg::towers3x4::towers3x4 ( const towers3x4 other)
inline

Definition at line 468 of file Phase2L1CaloEGammaUtils.h.

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

468  {
469  idx_ = other.idx_;
470  for (int i = 0; i < TOWER_IN_ETA; i++) {
471  for (int j = 0; j < TOWER_IN_PHI; j++) {
472  towersHCAL[i][j] = other.towersHCAL[i][j];
473  }
474  };
475  };
towerHCAL towersHCAL[TOWER_IN_ETA][TOWER_IN_PHI]
static constexpr int TOWER_IN_PHI
static constexpr int TOWER_IN_ETA

Member Function Documentation

◆ getIdx()

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

Definition at line 494 of file Phase2L1CaloEGammaUtils.h.

References idx_.

494 { return idx_; };

◆ getTowerHCAL()

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

Definition at line 495 of file Phase2L1CaloEGammaUtils.h.

References l1tTowerCalibrationProducer_cfi::iEta, and towersHCAL.

Referenced by Phase2L1CaloEGammaEmulator::produce().

495 { return towersHCAL[iEta][iPhi]; };
towerHCAL towersHCAL[TOWER_IN_ETA][TOWER_IN_PHI]

◆ operator=()

towers3x4 p2eg::towers3x4::operator= ( const towers3x4 other)
inline

Definition at line 478 of file Phase2L1CaloEGammaUtils.h.

References trackingPlots::other.

478  {
479  const towers3x4& newRegion(other);
480  return newRegion;
481  };

◆ setIdx()

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

◆ zeroOut()

void p2eg::towers3x4::zeroOut ( )
inline

Definition at line 484 of file Phase2L1CaloEGammaUtils.h.

References mps_fire::i, dqmiolumiharvest::j, p2eg::TOWER_IN_ETA, p2eg::TOWER_IN_PHI, towersHCAL, and p2eg::towerHCAL::zeroOut().

Referenced by p2eg::card::card(), and p2eg::card::zeroOut().

484  {
485  for (int i = 0; i < TOWER_IN_ETA; i++) {
486  for (int j = 0; j < TOWER_IN_PHI; j++) {
487  towersHCAL[i][j].zeroOut();
488  }
489  }
490  };
towerHCAL towersHCAL[TOWER_IN_ETA][TOWER_IN_PHI]
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 460 of file Phase2L1CaloEGammaUtils.h.

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

◆ towersHCAL

towerHCAL p2eg::towers3x4::towersHCAL[TOWER_IN_ETA][TOWER_IN_PHI]
private

Definition at line 461 of file Phase2L1CaloEGammaUtils.h.

Referenced by getTowerHCAL(), towers3x4(), and zeroOut().