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

Private Attributes

int idx_ = -1
 
linkECAL linksECAL [TOWER_IN_ETA][TOWER_IN_PHI]
 

Detailed Description

Definition at line 389 of file Phase2L1CaloEGammaUtils.h.

Constructor & Destructor Documentation

◆ region3x4() [1/2]

p2eg::region3x4::region3x4 ( )
inline

Definition at line 396 of file Phase2L1CaloEGammaUtils.h.

References idx_.

396 { idx_ = -1; }

◆ region3x4() [2/2]

p2eg::region3x4::region3x4 ( const region3x4 other)
inline

Definition at line 399 of file Phase2L1CaloEGammaUtils.h.

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

399  {
400  idx_ = other.idx_;
401  for (int i = 0; i < TOWER_IN_ETA; i++) {
402  for (int j = 0; j < TOWER_IN_PHI; j++) {
403  linksECAL[i][j] = other.linksECAL[i][j];
404  }
405  }
406  }
static constexpr int TOWER_IN_PHI
static constexpr int TOWER_IN_ETA
linkECAL linksECAL[TOWER_IN_ETA][TOWER_IN_PHI]

Member Function Documentation

◆ getIdx()

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

Definition at line 425 of file Phase2L1CaloEGammaUtils.h.

References idx_.

425 { return idx_; };

◆ getLinkECAL()

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

Definition at line 426 of file Phase2L1CaloEGammaUtils.h.

References l1tTowerCalibrationProducer_cfi::iEta, and linksECAL.

Referenced by Phase2L1CaloEGammaEmulator::produce().

426 { return linksECAL[iEta][iPhi]; };
linkECAL linksECAL[TOWER_IN_ETA][TOWER_IN_PHI]

◆ operator=()

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

Definition at line 409 of file Phase2L1CaloEGammaUtils.h.

References trackingPlots::other.

409  {
410  const region3x4& newRegion(other);
411  return newRegion;
412  };

◆ setIdx()

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

◆ zeroOut()

void p2eg::region3x4::zeroOut ( )
inline

Definition at line 415 of file Phase2L1CaloEGammaUtils.h.

References mps_fire::i, dqmiolumiharvest::j, linksECAL, p2eg::TOWER_IN_ETA, p2eg::TOWER_IN_PHI, and p2eg::linkECAL::zeroOut().

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

415  {
416  for (int i = 0; i < TOWER_IN_ETA; i++) {
417  for (int j = 0; j < TOWER_IN_PHI; j++) {
418  linksECAL[i][j].zeroOut();
419  }
420  }
421  };
static constexpr int TOWER_IN_PHI
static constexpr int TOWER_IN_ETA
linkECAL linksECAL[TOWER_IN_ETA][TOWER_IN_PHI]

Member Data Documentation

◆ idx_

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

Definition at line 391 of file Phase2L1CaloEGammaUtils.h.

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

◆ linksECAL

linkECAL p2eg::region3x4::linksECAL[TOWER_IN_ETA][TOWER_IN_PHI]
private

Definition at line 392 of file Phase2L1CaloEGammaUtils.h.

Referenced by getLinkECAL(), region3x4(), and zeroOut().