CMS 3D CMS Logo

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

#include <Phase2L1CaloEGammaUtils.h>

Public Member Functions

 card ()
 
 card (const card &other)
 
float getIdx () const
 
region3x4getRegion3x4 (int idx)
 
towers3x4getTowers3x4 (int idx)
 
card operator= (const card &other)
 
void setIdx (int idx)
 
void zeroOut ()
 

Private Attributes

region3x4 card3x4Regions [N_REGIONS_PER_CARD]
 
towers3x4 card3x4Towers [N_REGIONS_PER_CARD]
 
int idx_ = -1
 

Detailed Description

Definition at line 514 of file Phase2L1CaloEGammaUtils.h.

Constructor & Destructor Documentation

◆ card() [1/2]

p2eg::card::card ( )
inline

Definition at line 522 of file Phase2L1CaloEGammaUtils.h.

References card3x4Regions, card3x4Towers, mps_fire::i, idx_, p2eg::N_REGIONS_PER_CARD, p2eg::region3x4::setIdx(), p2eg::towers3x4::setIdx(), p2eg::region3x4::zeroOut(), and p2eg::towers3x4::zeroOut().

522  {
523  idx_ = -1;
524  for (int i = 0; i < N_REGIONS_PER_CARD; i++) {
529  }
530  };
region3x4 card3x4Regions[N_REGIONS_PER_CARD]
static constexpr int N_REGIONS_PER_CARD
towers3x4 card3x4Towers[N_REGIONS_PER_CARD]

◆ card() [2/2]

p2eg::card::card ( const card other)
inline

Definition at line 533 of file Phase2L1CaloEGammaUtils.h.

References card3x4Regions, card3x4Towers, mps_fire::i, idx_, p2eg::N_REGIONS_PER_CARD, and trackingPlots::other.

533  {
534  idx_ = other.idx_;
535  for (int i = 0; i < N_REGIONS_PER_CARD; i++) {
536  card3x4Regions[i] = other.card3x4Regions[i];
537  card3x4Towers[i] = other.card3x4Towers[i];
538  }
539  };
region3x4 card3x4Regions[N_REGIONS_PER_CARD]
static constexpr int N_REGIONS_PER_CARD
towers3x4 card3x4Towers[N_REGIONS_PER_CARD]

Member Function Documentation

◆ getIdx()

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

Definition at line 557 of file Phase2L1CaloEGammaUtils.h.

References idx_.

557 { return idx_; };

◆ getRegion3x4()

region3x4& p2eg::card::getRegion3x4 ( int  idx)
inline

◆ getTowers3x4()

towers3x4& p2eg::card::getTowers3x4 ( int  idx)
inline

◆ operator=()

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

Definition at line 542 of file Phase2L1CaloEGammaUtils.h.

References trackingPlots::other.

542  {
543  const card& newCard(other);
544  return newCard;
545  };

◆ setIdx()

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

◆ zeroOut()

void p2eg::card::zeroOut ( )
inline

Definition at line 549 of file Phase2L1CaloEGammaUtils.h.

References card3x4Regions, card3x4Towers, mps_fire::i, p2eg::N_REGIONS_PER_CARD, p2eg::region3x4::zeroOut(), and p2eg::towers3x4::zeroOut().

549  {
550  for (int i = 0; i < N_REGIONS_PER_CARD; i++) {
553  };
554  };
region3x4 card3x4Regions[N_REGIONS_PER_CARD]
static constexpr int N_REGIONS_PER_CARD
towers3x4 card3x4Towers[N_REGIONS_PER_CARD]

Member Data Documentation

◆ card3x4Regions

region3x4 p2eg::card::card3x4Regions[N_REGIONS_PER_CARD]
private

Definition at line 517 of file Phase2L1CaloEGammaUtils.h.

Referenced by card(), getRegion3x4(), and zeroOut().

◆ card3x4Towers

towers3x4 p2eg::card::card3x4Towers[N_REGIONS_PER_CARD]
private

Definition at line 518 of file Phase2L1CaloEGammaUtils.h.

Referenced by card(), getTowers3x4(), and zeroOut().

◆ idx_

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

Definition at line 516 of file Phase2L1CaloEGammaUtils.h.

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