CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CaloRecHit Class Reference

#include <CaloRecHit.h>

Inheritance diagram for CaloRecHit:
CastorRecHit HBHERecHit HFRecHit HGCRecHit HORecHit ZDCRecHit

Public Member Functions

constexpr uint32_t aux () const
 
constexpr CaloRecHit ()
 
constexpr CaloRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t aux=0)
 
constexpr const DetIddetid () const
 
constexpr float energy () const
 
constexpr uint32_t flagField (int base, int width=1) const
 
constexpr uint32_t flags () const
 
constexpr void setAux (uint32_t value)
 
constexpr void setEnergy (float energy)
 
constexpr void setFlagField (uint32_t value, int base, int width=1)
 
constexpr void setFlags (uint32_t flags)
 
constexpr void setTime (float time)
 
constexpr float time () const
 

Private Attributes

uint32_t aux_
 
float energy_
 
uint32_t flags_
 
DetId id_
 
float time_
 

Detailed Description

Author
J. Mans - Minnesota

Definition at line 23 of file CaloRecHit.h.

Constructor & Destructor Documentation

◆ CaloRecHit() [1/2]

constexpr CaloRecHit::CaloRecHit ( )
inline

Definition at line 25 of file CaloRecHit.h.

25 : energy_(0), time_(0), flags_(0), aux_(0) {}
uint32_t aux_
Definition: CaloRecHit.h:57
float energy_
Definition: CaloRecHit.h:54
uint32_t flags_
Definition: CaloRecHit.h:56
float time_
Definition: CaloRecHit.h:55

◆ CaloRecHit() [2/2]

constexpr CaloRecHit::CaloRecHit ( const DetId id,
float  energy,
float  time,
uint32_t  flags = 0,
uint32_t  aux = 0 
)
inlineexplicit

Definition at line 26 of file CaloRecHit.h.

27  : id_(id), energy_(energy), time_(time), flags_(flags), aux_(aux) {}
uint32_t aux_
Definition: CaloRecHit.h:57
constexpr float energy() const
Definition: CaloRecHit.h:29
float energy_
Definition: CaloRecHit.h:54
constexpr uint32_t flags() const
Definition: CaloRecHit.h:34
constexpr uint32_t aux() const
Definition: CaloRecHit.h:50
uint32_t flags_
Definition: CaloRecHit.h:56
constexpr float time() const
Definition: CaloRecHit.h:31
float time_
Definition: CaloRecHit.h:55
DetId id_
Definition: CaloRecHit.h:53

Member Function Documentation

◆ aux()

constexpr uint32_t CaloRecHit::aux ( ) const
inline

Definition at line 50 of file CaloRecHit.h.

References aux_.

Referenced by HFFlexibleTimeCheck::reconstruct(), HBHERecHit::setAuxHBHE(), HBHERecHit::setAuxPhase1(), and HBHERecHit::setAuxTDC().

50 { return aux_; }
uint32_t aux_
Definition: CaloRecHit.h:57

◆ detid()

constexpr const DetId& CaloRecHit::detid ( ) const
inline

◆ energy()

constexpr float CaloRecHit::energy ( ) const
inline

Definition at line 29 of file CaloRecHit.h.

References energy_.

Referenced by HeterogeneousHGCalRecHitsValidator::analyze(), cms::Analyzer_minbias::analyze(), CMTRawAnalyzer::analyze(), AnalyzerMinbias::analyzeHcal(), RecAnalyzerMinbias::analyzeHcal(), FWHGCRecHitProxyBuilder::build(), HGCalLayerClusterProducer::calculatePosition(), ALPAKA_ACCELERATOR_NAMESPACE::CaloRecHitSoAProducer< CAL >::convertRecHit(), muonisolation::CaloExtractorByAssociator::deposits(), AlCaHOCalibProducer::fillHOStore(), HcalRechitIsoCalculator::getBkgSubHcalRechitIso(), EcalHaloAlgo::GetHaloClusterCandidateEB(), EcalHaloAlgo::GetHaloClusterCandidateEE(), HcalHaloAlgo::GetHaloClusterCandidateHB(), HcalHaloAlgo::GetHaloClusterCandidateHE(), HcalRechitIsoCalculator::getHcalRechitIso(), hgcal::ClusterTools::getWidths(), CSCHaloAlgo::HCALSegmentMatching(), SimplePlan1RechitCombiner::makeRechit(), HGCalImagingAlgo::populate(), HGCalCLUEAlgoT< TILE, STRATEGY >::populate(), ALPAKA_ACCELERATOR_NAMESPACE::HGCalSoARecHitsProducer::produce(), CastorCellProducer::produce(), RecHitCorrector::produce(), reco::CentralityProducer::produce(), Jet.Jet::rawEnergy(), HGCalRecHitWorkerSimple::run(), HFStripFilter::runFilter(), setEnergy(), HGCRecHit::setOutOfTimeEnergy(), PFRecHitQTestHCALChannel::test(), PFRecHitQTestHCALTimeVsDepth::test(), PFRecHitQTestHCALThresholdVsDepth::test(), PFRecHitQTestThresholdInMIPs::test(), and PFRecHitQTestThresholdInThicknessNormalizedMIPs::test().

29 { return energy_; }
float energy_
Definition: CaloRecHit.h:54

◆ flagField()

constexpr uint32_t CaloRecHit::flagField ( int  base,
int  width = 1 
) const
inline

◆ flags()

constexpr uint32_t CaloRecHit::flags ( ) const
inline

◆ setAux()

constexpr void CaloRecHit::setAux ( uint32_t  value)
inline

Definition at line 49 of file CaloRecHit.h.

References aux_, and relativeConstraints::value.

Referenced by HFRecHitAuxSetter::setAux(), and HBHERecHitAuxSetter::setAux().

◆ setEnergy()

constexpr void CaloRecHit::setEnergy ( float  energy)
inline

Definition at line 30 of file CaloRecHit.h.

References energy(), and energy_.

Referenced by HFStripFilter::runFilter().

30 { energy_ = energy; }
constexpr float energy() const
Definition: CaloRecHit.h:29
float energy_
Definition: CaloRecHit.h:54

◆ setFlagField()

constexpr void CaloRecHit::setFlagField ( uint32_t  value,
int  base,
int  width = 1 
)
inline

◆ setFlags()

constexpr void CaloRecHit::setFlags ( uint32_t  flags)
inline

Definition at line 35 of file CaloRecHit.h.

References flags(), and flags_.

Referenced by SimplePlan1RechitCombiner::combineAuxInfo(), HGCRecHit::setChi2(), HGCRecHit::setOutOfTimeChi2(), and HGCRecHit::setOutOfTimeEnergy().

35 { flags_ = flags; }
constexpr uint32_t flags() const
Definition: CaloRecHit.h:34
uint32_t flags_
Definition: CaloRecHit.h:56

◆ setTime()

constexpr void CaloRecHit::setTime ( float  time)
inline

Definition at line 32 of file CaloRecHit.h.

References time(), and time_.

32 { time_ = time; }
constexpr float time() const
Definition: CaloRecHit.h:31
float time_
Definition: CaloRecHit.h:55

◆ time()

constexpr float CaloRecHit::time ( ) const
inline

Member Data Documentation

◆ aux_

uint32_t CaloRecHit::aux_
private

Definition at line 57 of file CaloRecHit.h.

Referenced by aux(), and setAux().

◆ energy_

float CaloRecHit::energy_
private

Definition at line 54 of file CaloRecHit.h.

Referenced by energy(), and setEnergy().

◆ flags_

uint32_t CaloRecHit::flags_
private

Definition at line 56 of file CaloRecHit.h.

Referenced by flagField(), flags(), setFlagField(), and setFlags().

◆ id_

DetId CaloRecHit::id_
private

Definition at line 53 of file CaloRecHit.h.

Referenced by detid().

◆ time_

float CaloRecHit::time_
private

Definition at line 55 of file CaloRecHit.h.

Referenced by setTime(), and time().