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
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

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
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) {}
constexpr float energy() const
Definition: CaloRecHit.h:29
uint32_t aux_
Definition: CaloRecHit.h:57
float energy_
Definition: CaloRecHit.h:54
constexpr float time() const
Definition: CaloRecHit.h:31
uint32_t flags_
Definition: CaloRecHit.h:56
float time_
Definition: CaloRecHit.h:55
constexpr uint32_t aux() const
Definition: CaloRecHit.h:50
constexpr uint32_t flags() const
Definition: CaloRecHit.h:34
DetId id_
Definition: CaloRecHit.h:53

Member Function Documentation

constexpr uint32_t CaloRecHit::aux ( ) const
inline

Definition at line 50 of file CaloRecHit.h.

References aux_.

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

50 { return aux_; }
uint32_t aux_
Definition: CaloRecHit.h:57
constexpr const DetId& CaloRecHit::detid ( ) const
inline
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(), CaloTowersCreationAlgo::assignHitHcal(), FWCaloRecHitDigitSetProxyBuilder::build(), FWHGCRecHitProxyBuilder::build(), HBHEHitMap::calcHcalNeighborTowers_(), HBHEHitMap::calcHcalSameTowers_(), HBHEHitMap::calcHits_(), egammaisolation::EgammaHcalExtractor::deposit(), muonisolation::CaloExtractorByAssociator::deposits(), HGVHistoProducerAlgo::fill_generic_cluster_histos(), AlCaHOCalibProducer::fillHOStore(), HcalRechitIsoCalculator::getBkgSubHcalRechitIso(), EcalHaloAlgo::GetHaloClusterCandidateEB(), EcalHaloAlgo::GetHaloClusterCandidateEE(), HcalHaloAlgo::GetHaloClusterCandidateHB(), HcalHaloAlgo::GetHaloClusterCandidateHE(), HcalRechitIsoCalculator::getHcalRechitIso(), hgcal::ClusterTools::getWidths(), EgammaHcalIsolation::goodHitEnergy(), HBHEHitMapOrganizer::HBHEHitMapOrganizer(), CSCHaloAlgo::HCALSegmentMatching(), HGCalImagingAlgo::Hexel::Hexel(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), HcalHF_PETalgorithm::HFSetFlagFromPET(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), HGVHistoProducerAlgo::layerClusters_to_CaloParticles(), TSToSCAssociatorByEnergyScoreImpl::makeConnections(), MultiClusterAssociatorByEnergyScoreImpl::makeConnections(), LCToSCAssociatorByEnergyScoreImpl::makeConnections(), LCToCPAssociatorByEnergyScoreImpl::makeConnections(), SimplePlan1RechitCombiner::makeRechit(), operator<(), operator<<(), FixedGridRhoProducerFastjetFromRecHit::passedHcalNoiseCut(), HGCalImagingAlgo::populate(), HGCalCLUEAlgoT< TILE >::populate(), reco::modules::CaloRecHitCandidateProducer< HitCollection >::produce(), CastorCellProducer::produce(), RecHitCorrector::produce(), reco::CentralityProducer::produce(), Jet.Jet::rawEnergy(), HBHEStatusBitSetter::rememberHit(), HGCalRecHitWorkerSimple::run(), HFStripFilter::runFilter(), FWCaloRecHitDigitSetProxyBuilder::scaleProduct(), setEnergy(), PFRecHitQTestHCALChannel::test(), PFRecHitQTestHCALTimeVsDepth::test(), PFRecHitQTestHCALThresholdVsDepth::test(), PFRecHitQTestThresholdInMIPs::test(), PFRecHitQTestThresholdInThicknessNormalizedMIPs::test(), HBHETimingShapedFlagSetter::timingStatus(), HGVHistoProducerAlgo::tracksters_to_SimTracksters(), and ObjectValidator::validHit().

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

Definition at line 46 of file CaloRecHit.h.

References calo_rechit_masks, flags_, SiStripPI::max, and SiStripPI::min.

Referenced by HFClusterAlgo::isPMTHit().

46  {
47  return (flags_ >> std::max(std::min(base, 31), 0)) & calo_rechit_masks[std::max(std::min(width, 32), 0)];
48  }
tuple base
Main Program
Definition: newFWLiteAna.py:92
constexpr uint32_t calo_rechit_masks[]
Definition: CaloRecHit.h:12
uint32_t flags_
Definition: CaloRecHit.h:56
constexpr uint32_t CaloRecHit::flags ( ) const
inline
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().

49 { aux_ = value; }
uint32_t aux_
Definition: CaloRecHit.h:57
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
constexpr void CaloRecHit::setFlagField ( uint32_t  value,
int  base,
int  width = 1 
)
inline

Definition at line 36 of file CaloRecHit.h.

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

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().

36  {
37  value &= calo_rechit_masks[std::max(std::min(width, 32), 0)];
38  value <<= std::max(std::min(base, 31), 0);
39  // clear out the relevant bits
40  uint32_t clear = calo_rechit_masks[std::max(std::min(width, 32), 0)];
41  clear = clear << std::max(std::min(base, 31), 0);
42  clear ^= 0xFFFFFFFFu;
43  flags_ &= clear;
44  flags_ |= value;
45  }
tuple base
Main Program
Definition: newFWLiteAna.py:92
activeDets clear()
constexpr uint32_t calo_rechit_masks[]
Definition: CaloRecHit.h:12
uint32_t flags_
Definition: CaloRecHit.h:56
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; }
uint32_t flags_
Definition: CaloRecHit.h:56
constexpr uint32_t flags() const
Definition: CaloRecHit.h:34
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
constexpr float CaloRecHit::time ( ) const
inline

Member Data Documentation

uint32_t CaloRecHit::aux_
private

Definition at line 57 of file CaloRecHit.h.

Referenced by aux(), and setAux().

float CaloRecHit::energy_
private

Definition at line 54 of file CaloRecHit.h.

Referenced by energy(), and setEnergy().

uint32_t CaloRecHit::flags_
private

Definition at line 56 of file CaloRecHit.h.

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

DetId CaloRecHit::id_
private

Definition at line 53 of file CaloRecHit.h.

Referenced by detid().

float CaloRecHit::time_
private

Definition at line 55 of file CaloRecHit.h.

Referenced by setTime(), and time().