CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1thgcfirmware::HGCalTower Class Reference

#include <HGCalTower_SA.h>

Public Member Functions

void addEtEm (double et)
 
void addEtHad (double et)
 
float eta () const
 
double etEm () const
 
double etHad () const
 
 HGCalTower ()=default
 
 HGCalTower (double etEm, double etHad, float eta, float phi, uint32_t rawId)
 
uint32_t id () const
 
HGCalToweroperator+= (const HGCalTower &tower)
 
float phi () const
 
 ~HGCalTower ()=default
 

Private Attributes

float eta_
 
double etEm_
 
double etHad_
 
uint32_t id_
 
float phi_
 

Detailed Description

Definition at line 8 of file HGCalTower_SA.h.

Constructor & Destructor Documentation

◆ HGCalTower() [1/2]

l1thgcfirmware::HGCalTower::HGCalTower ( )
default

◆ HGCalTower() [2/2]

l1thgcfirmware::HGCalTower::HGCalTower ( double  etEm,
double  etHad,
float  eta,
float  phi,
uint32_t  rawId 
)
inline

◆ ~HGCalTower()

l1thgcfirmware::HGCalTower::~HGCalTower ( )
default

Member Function Documentation

◆ addEtEm()

void HGCalTower::addEtEm ( double  et)

Definition at line 12 of file HGCalTower_SA.cc.

References EgHLTOffHistBins_cfi::et, and etEm_.

◆ addEtHad()

void HGCalTower::addEtHad ( double  et)

Definition at line 14 of file HGCalTower_SA.cc.

References EgHLTOffHistBins_cfi::et, and etHad_.

◆ eta()

float l1thgcfirmware::HGCalTower::eta ( void  ) const
inline

◆ etEm()

double l1thgcfirmware::HGCalTower::etEm ( ) const
inline

Definition at line 16 of file HGCalTower_SA.h.

References etEm_.

16 { return etEm_; }

◆ etHad()

double l1thgcfirmware::HGCalTower::etHad ( ) const
inline

Definition at line 17 of file HGCalTower_SA.h.

References etHad_.

17 { return etHad_; }

◆ id()

uint32_t l1thgcfirmware::HGCalTower::id ( void  ) const
inline

Definition at line 21 of file HGCalTower_SA.h.

References id_.

21 { return id_; }

◆ operator+=()

HGCalTower & HGCalTower::operator+= ( const HGCalTower tower)

Definition at line 5 of file HGCalTower_SA.cc.

References etEm_, etHad_, and l1tHGCalTowerProducer_cfi::tower.

5  {
6  etEm_ += tower.etEm();
7  etHad_ += tower.etHad();
8 
9  return *this;
10 }

◆ phi()

float l1thgcfirmware::HGCalTower::phi ( void  ) const
inline

Member Data Documentation

◆ eta_

float l1thgcfirmware::HGCalTower::eta_
private

Definition at line 32 of file HGCalTower_SA.h.

Referenced by eta().

◆ etEm_

double l1thgcfirmware::HGCalTower::etEm_
private

Definition at line 29 of file HGCalTower_SA.h.

Referenced by addEtEm(), etEm(), and operator+=().

◆ etHad_

double l1thgcfirmware::HGCalTower::etHad_
private

Definition at line 30 of file HGCalTower_SA.h.

Referenced by addEtHad(), etHad(), and operator+=().

◆ id_

uint32_t l1thgcfirmware::HGCalTower::id_
private

Definition at line 34 of file HGCalTower_SA.h.

Referenced by id().

◆ phi_

float l1thgcfirmware::HGCalTower::phi_
private

Definition at line 33 of file HGCalTower_SA.h.

Referenced by phi().