CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Member Function Documentation

void HGCalTower::addEtEm ( double  et)

Definition at line 12 of file HGCalTower_SA.cc.

References etEm_.

12 { etEm_ += et; }
void HGCalTower::addEtHad ( double  et)

Definition at line 14 of file HGCalTower_SA.cc.

References etHad_.

14 { etHad_ += et; }
float l1thgcfirmware::HGCalTower::eta ( void  ) const
inline

Definition at line 19 of file HGCalTower_SA.h.

References eta_.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

19 { return eta_; }
double l1thgcfirmware::HGCalTower::etEm ( ) const
inline

Definition at line 16 of file HGCalTower_SA.h.

References etEm_.

Referenced by operator+=().

16 { return etEm_; }
double l1thgcfirmware::HGCalTower::etHad ( ) const
inline

Definition at line 17 of file HGCalTower_SA.h.

References etHad_.

Referenced by operator+=().

17 { return etHad_; }
uint32_t l1thgcfirmware::HGCalTower::id ( void  ) const
inline

Definition at line 21 of file HGCalTower_SA.h.

References id_.

21 { return id_; }
HGCalTower & HGCalTower::operator+= ( const HGCalTower tower)

Definition at line 5 of file HGCalTower_SA.cc.

References etEm(), etEm_, etHad(), and etHad_.

5  {
6  etEm_ += tower.etEm();
7  etHad_ += tower.etHad();
8 
9  return *this;
10 }
float l1thgcfirmware::HGCalTower::phi ( void  ) const
inline

Definition at line 20 of file HGCalTower_SA.h.

References phi_.

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

20 { return phi_; }

Member Data Documentation

float l1thgcfirmware::HGCalTower::eta_
private

Definition at line 32 of file HGCalTower_SA.h.

Referenced by eta().

double l1thgcfirmware::HGCalTower::etEm_
private

Definition at line 29 of file HGCalTower_SA.h.

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

double l1thgcfirmware::HGCalTower::etHad_
private

Definition at line 30 of file HGCalTower_SA.h.

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

uint32_t l1thgcfirmware::HGCalTower::id_
private

Definition at line 34 of file HGCalTower_SA.h.

Referenced by id().

float l1thgcfirmware::HGCalTower::phi_
private

Definition at line 33 of file HGCalTower_SA.h.

Referenced by phi().