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 508 of file Phase2L1CaloEGammaUtils.h.

Constructor & Destructor Documentation

◆ card() [1/2]

p2eg::card::card ( )
inline

Definition at line 516 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().

516  {
517  idx_ = -1;
518  for (int i = 0; i < N_REGIONS_PER_CARD; i++) {
523  }
524  };
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 527 of file Phase2L1CaloEGammaUtils.h.

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

527  {
528  idx_ = other.idx_;
529  for (int i = 0; i < N_REGIONS_PER_CARD; i++) {
530  card3x4Regions[i] = other.card3x4Regions[i];
531  card3x4Towers[i] = other.card3x4Towers[i];
532  }
533  };
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 551 of file Phase2L1CaloEGammaUtils.h.

References idx_.

551 { 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 536 of file Phase2L1CaloEGammaUtils.h.

References trackingPlots::other.

536  {
537  const card& newCard(other);
538  return newCard;
539  };

◆ setIdx()

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

◆ zeroOut()

void p2eg::card::zeroOut ( )
inline

Definition at line 543 of file Phase2L1CaloEGammaUtils.h.

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

543  {
544  for (int i = 0; i < N_REGIONS_PER_CARD; i++) {
547  };
548  };
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 511 of file Phase2L1CaloEGammaUtils.h.

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

◆ card3x4Towers

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

Definition at line 512 of file Phase2L1CaloEGammaUtils.h.

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

◆ idx_

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

Definition at line 510 of file Phase2L1CaloEGammaUtils.h.

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