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
HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell Class Reference

Public Member Functions

void add (const l1t::HGCalTriggerCell &c, uint32_t stcId)
 
void addToFractionSum (float frac)
 
float getFractionSum () const
 
uint32_t getMaxId () const
 
uint32_t getSTCId () const
 
int getSumHwPt () const
 
float getSumMipPt () const
 
float getSumPt () const
 
float getTCpt (uint32_t tcid) const
 
int size () const
 
 SuperTriggerCell ()
 

Private Attributes

float fracsum_
 
uint32_t maxId_
 
float maxMipPt_
 
uint32_t stcId_
 
int sumHwPt_
 
float sumMipPt_
 
float sumPt_
 
std::map< uint32_t, float > tc_pts_
 

Detailed Description

Definition at line 60 of file HGCalConcentratorSuperTriggerCellImpl.h.

Constructor & Destructor Documentation

HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::SuperTriggerCell ( )
inline

Member Function Documentation

void HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::add ( const l1t::HGCalTriggerCell c,
uint32_t  stcId 
)
inline

Definition at line 70 of file HGCalConcentratorSuperTriggerCellImpl.h.

References l1t::HGCalTriggerCell::detId(), l1t::L1Candidate::hwPt(), maxId_, maxMipPt_, l1t::HGCalTriggerCell::mipPt(), reco::LeafCandidate::pt(), stcId_, sumHwPt_, sumMipPt_, sumPt_, and tc_pts_.

Referenced by counter.Counter::register().

70  {
71  sumPt_ += c.pt();
72  sumMipPt_ += c.mipPt();
73  sumHwPt_ += c.hwPt();
74  if (maxId_ == 0 || c.mipPt() > maxMipPt_) {
75  maxMipPt_ = c.mipPt();
76  maxId_ = c.detId();
77  }
78 
79  if (stcId_ == 0) {
80  stcId_ = stcId;
81  }
82  tc_pts_[c.detId()] = c.mipPt();
83  }
double pt() const final
transverse momentum
double mipPt() const
uint32_t detId() const
int hwPt() const
Definition: L1Candidate.h:35
void HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::addToFractionSum ( float  frac)
inline

Definition at line 84 of file HGCalConcentratorSuperTriggerCellImpl.h.

References Exception, DivergingColor::frac, and fracsum_.

84  {
85  fracsum_ += frac;
86  if (fracsum_ > 1) {
87  throw cms::Exception("HGCalConcentratorSuperTriggerCellError")
88  << "Sum of Trigger Cell fractions should not be greater than 1";
89  }
90  }
float HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::getFractionSum ( ) const
inline
uint32_t HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::getMaxId ( ) const
inline
uint32_t HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::getSTCId ( ) const
inline
int HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::getSumHwPt ( ) const
inline
float HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::getSumMipPt ( ) const
inline
float HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::getSumPt ( ) const
inline
float HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::getTCpt ( uint32_t  tcid) const
inline
int HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::size ( void  ) const
inline

Member Data Documentation

float HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::fracsum_
private

Definition at line 62 of file HGCalConcentratorSuperTriggerCellImpl.h.

Referenced by addToFractionSum(), and getFractionSum().

uint32_t HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::maxId_
private

Definition at line 64 of file HGCalConcentratorSuperTriggerCellImpl.h.

Referenced by add(), and getMaxId().

float HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::maxMipPt_
private

Definition at line 62 of file HGCalConcentratorSuperTriggerCellImpl.h.

Referenced by add().

uint32_t HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::stcId_
private

Definition at line 64 of file HGCalConcentratorSuperTriggerCellImpl.h.

Referenced by add(), and getSTCId().

int HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::sumHwPt_
private

Definition at line 63 of file HGCalConcentratorSuperTriggerCellImpl.h.

Referenced by add(), and getSumHwPt().

float HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::sumMipPt_
private

Definition at line 62 of file HGCalConcentratorSuperTriggerCellImpl.h.

Referenced by add(), and getSumMipPt().

float HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::sumPt_
private

Definition at line 62 of file HGCalConcentratorSuperTriggerCellImpl.h.

Referenced by add(), and getSumPt().

std::map<uint32_t, float> HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell::tc_pts_
private

Definition at line 65 of file HGCalConcentratorSuperTriggerCellImpl.h.

Referenced by add(), getTCpt(), and size().