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 24 of file CaloRecHit.h.

Constructor & Destructor Documentation

constexpr CaloRecHit::CaloRecHit ( )
inline

Definition at line 26 of file CaloRecHit.h.

26 : energy_(0), time_(0), flags_(0), aux_(0) {}
uint32_t aux_
Definition: CaloRecHit.h:58
float energy_
Definition: CaloRecHit.h:55
uint32_t flags_
Definition: CaloRecHit.h:57
float time_
Definition: CaloRecHit.h:56
constexpr CaloRecHit::CaloRecHit ( const DetId id,
float  energy,
float  time,
uint32_t  flags = 0,
uint32_t  aux = 0 
)
inlineexplicit

Definition at line 27 of file CaloRecHit.h.

29  : id_(id),energy_(energy), time_(time), flags_(flags), aux_(aux) {}
constexpr float energy() const
Definition: CaloRecHit.h:31
uint32_t aux_
Definition: CaloRecHit.h:58
float energy_
Definition: CaloRecHit.h:55
constexpr float time() const
Definition: CaloRecHit.h:33
uint32_t flags_
Definition: CaloRecHit.h:57
float time_
Definition: CaloRecHit.h:56
constexpr uint32_t aux() const
Definition: CaloRecHit.h:52
constexpr uint32_t flags() const
Definition: CaloRecHit.h:36
DetId id_
Definition: CaloRecHit.h:54

Member Function Documentation

constexpr uint32_t CaloRecHit::aux ( ) const
inline

Definition at line 52 of file CaloRecHit.h.

References aux_.

Referenced by operator<<(), HBHERecHit::setAuxHBHE(), HBHERecHit::setAuxPhase1(), HGCRecHit::setTimeError(), and HGCRecHit::timeError().

52 { return aux_; }
uint32_t aux_
Definition: CaloRecHit.h:58
constexpr const DetId& CaloRecHit::detid ( ) const
inline
constexpr float CaloRecHit::energy ( ) const
inline

Definition at line 31 of file CaloRecHit.h.

References energy_.

Referenced by cms::Analyzer_minbias::analyze(), AnalyzerMinbias::analyzeHcal(), RecAnalyzerMinbias::analyzeHcal(), CaloTowersCreationAlgo::assignHitHcal(), FWCaloRecHitDigitSetProxyBuilder::build(), HBHEHitMap::calcHcalNeighborTowers_(), HBHEHitMap::calcHcalSameTowers_(), HBHEHitMap::calcHits_(), egammaisolation::EgammaHcalExtractor::deposit(), muonisolation::CaloExtractorByAssociator::deposits(), AlCaHOCalibProducer::fillHOStore(), HcalRechitIsoCalculator::getBkgSubHcalRechitIso(), EcalHaloAlgo::GetHaloClusterCandidateEB(), EcalHaloAlgo::GetHaloClusterCandidateEE(), HcalHaloAlgo::GetHaloClusterCandidateHB(), HcalHaloAlgo::GetHaloClusterCandidateHE(), HcalRechitIsoCalculator::getHcalRechitIso(), EgammaHcalIsolation::getHcalSum(), hgcal::ClusterTools::getWidths(), HBHEHitMapOrganizer::HBHEHitMapOrganizer(), CSCHaloAlgo::HCALSegmentMatching(), HGCalImagingAlgo::Hexel::Hexel(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), HcalHF_PETalgorithm::HFSetFlagFromPET(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), HGCRecHit::id(), SimplePlan1RechitCombiner::makeRechit(), operator<(), operator<<(), HGCalImagingAlgo::populate(), reco::modules::CaloRecHitCandidateProducer< HitCollection >::produce(), CastorCellProducer::produce(), RecHitCorrector::produce(), reco::CentralityProducer::produce(), Jet.Jet::rawEnergy(), HBHEStatusBitSetter::rememberHit(), HGCalRecHitWorkerSimple::run(), FWCaloRecHitDigitSetProxyBuilder::scaleProduct(), setEnergy(), PFRecHitQTestHCALChannel::test(), PFRecHitQTestHCALTimeVsDepth::test(), PFRecHitQTestHCALThresholdVsDepth::test(), PFRecHitQTestThresholdInMIPs::test(), PFRecHitQTestThresholdInThicknessNormalizedMIPs::test(), HBHETimingShapedFlagSetter::timingStatus(), and ObjectValidator::validHit().

31 { return energy_; }
float energy_
Definition: CaloRecHit.h:55
constexpr uint32_t CaloRecHit::flagField ( int  base,
int  width = 1 
) const
inline

Definition at line 48 of file CaloRecHit.h.

References calo_rechit_masks, flags_, SiStripPI::max, min(), and ApeEstimator_cff::width.

Referenced by HFClusterAlgo::isPMTHit().

48  {
50  }
constexpr uint32_t calo_rechit_masks[]
Definition: CaloRecHit.h:12
T min(T a, T b)
Definition: MathUtil.h:58
base
Make Sure CMSSW is Setup ##.
uint32_t flags_
Definition: CaloRecHit.h:57
constexpr uint32_t CaloRecHit::flags ( ) const
inline
constexpr void CaloRecHit::setAux ( uint32_t  value)
inline
constexpr void CaloRecHit::setEnergy ( float  energy)
inline

Definition at line 32 of file CaloRecHit.h.

References energy(), and energy_.

32 { energy_=energy; }
constexpr float energy() const
Definition: CaloRecHit.h:31
float energy_
Definition: CaloRecHit.h:55
constexpr void CaloRecHit::setFlagField ( uint32_t  value,
int  base,
int  width = 1 
)
inline

Definition at line 38 of file CaloRecHit.h.

References calo_rechit_masks, hitfit::clear(), flags_, SiStripPI::max, min(), relativeConstraints::value, and ApeEstimator_cff::width.

Referenced by CastorSimpleRecAlgo::checkADCSaturation(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), HcalHF_PETalgorithm::HFSetFlagFromPET(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), HBHEIsolatedNoiseReflagger::produce(), HFFlexibleTimeCheck::reconstruct(), SimpleHBHEPhase1Algo::reconstruct(), HFSimpleTimeCheck::reconstruct(), CastorSimpleRecAlgo::recoverADCSaturation(), HBHEPhase1Reconstructor::runHBHENegativeEFilter(), HBHEStatusBitSetter::SetFlagsFromDigi(), HBHENegativeFlagSetter::setPulseShapeFlags(), HBHEPulseShapeFlagSetter::SetPulseShapeFlags(), and HBHETimingShapedFlagSetter::SetTimingShapedFlags().

38  {
40  value<<=std::max(std::min(base,31),0);
41  // clear out the relevant bits
43  clear=clear<<std::max(std::min(base,31),0);
44  clear^=0xFFFFFFFFu;
45  flags_&=clear;
46  flags_|=value;
47  }
constexpr uint32_t calo_rechit_masks[]
Definition: CaloRecHit.h:12
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
Definition: value.py:1
T min(T a, T b)
Definition: MathUtil.h:58
base
Make Sure CMSSW is Setup ##.
uint32_t flags_
Definition: CaloRecHit.h:57
constexpr void CaloRecHit::setFlags ( uint32_t  flags)
inline
constexpr void CaloRecHit::setTime ( float  time)
inline

Definition at line 34 of file CaloRecHit.h.

References time(), and time_.

34 { time_=time; }
constexpr float time() const
Definition: CaloRecHit.h:33
float time_
Definition: CaloRecHit.h:56
constexpr float CaloRecHit::time ( ) const
inline

Member Data Documentation

uint32_t CaloRecHit::aux_
private

Definition at line 58 of file CaloRecHit.h.

Referenced by aux(), and setAux().

float CaloRecHit::energy_
private

Definition at line 55 of file CaloRecHit.h.

Referenced by energy(), and setEnergy().

uint32_t CaloRecHit::flags_
private

Definition at line 57 of file CaloRecHit.h.

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

DetId CaloRecHit::id_
private

Definition at line 54 of file CaloRecHit.h.

Referenced by detid().

float CaloRecHit::time_
private

Definition at line 56 of file CaloRecHit.h.

Referenced by setTime(), and time().