CMS 3D CMS Logo

Public Member Functions | Private Attributes

CaloRecHit Class Reference

#include <CaloRecHit.h>

Inheritance diagram for CaloRecHit:
CastorRecHit EcalRecHit HBHERecHit HFRecHit HORecHit ZDCRecHit

List of all members.

Public Member Functions

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

Private Attributes

uint32_t aux_
float energy_
uint32_t flags_
DetId id_
float time_

Detailed Description

Date:
2012/06/07 07:57:14
Revision:
1.9
Author:
J. Mans - Minnesota

Definition at line 14 of file CaloRecHit.h.


Constructor & Destructor Documentation

CaloRecHit::CaloRecHit ( )

Definition at line 4 of file CaloRecHit.cc.

                       : energy_(0), time_(0), flags_(0), aux_(0) {
}
CaloRecHit::CaloRecHit ( const DetId id,
float  energy,
float  time,
uint32_t  flags = 0,
uint32_t  aux = 0 
) [explicit]

Definition at line 7 of file CaloRecHit.cc.


Member Function Documentation

uint32_t CaloRecHit::aux ( ) const [inline]

Definition at line 28 of file CaloRecHit.h.

References aux_.

Referenced by operator<<(), EcalRecHit::setTimeError(), and EcalRecHit::timeError().

{ return aux_; }
const DetId& CaloRecHit::detid ( ) const [inline]
float CaloRecHit::energy ( ) const [inline]

Definition at line 19 of file CaloRecHit.h.

References energy_.

Referenced by BetaCalculatorECAL::addInfoToCandidate(), AlCaElectronsTest::analyze(), EcalCosmicsHists::analyze(), cms::Analyzer_minbias::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::analyzeEE(), CaloTowersCreationAlgo::assignHit(), FWPFEcalRecHitLegoProxyBuilder::build(), FWPFEcalRecHitRPProxyBuilder::build(), HBHEHitMap::calcEcalNeighborTowers_(), HBHEHitMap::calcEcalSameTowers_(), HBHEHitMap::calcHcalNeighborTowers_(), HBHEHitMap::calcHcalSameTowers_(), HBHEHitMap::calcHits_(), ClusterShapeAlgo::Calculate_2ndEnergy(), ClusterShapeAlgo::Calculate_EnergyDepTopology(), ClusterShapeAlgo::Calculate_TopEnergy(), CaloRecHitCandidateProducer::cellTresholdAndWeight(), ClusterShapeAlgo::Create_Map(), PFRecHitProducerPS::createRecHits(), muonisolation::CaloExtractorByAssociator::deposits(), reco::HcalNoiseInfoProducer::fillrechits(), EcalRecHitsFilter::filter(), reco::CentralityProducer::filter(), calib::CalibElectron::getCalibModulesWeights(), RxCalculator::getCRx(), EcalClusterTools::getEnergyDepTopology(), ZeeCalibration::getHottestDetId(), RxCalculator::getRFx(), RxCalculator::getROx(), RxCalculator::getRx(), HBHEHitMapOrganizer::HBHEHitMapOrganizer(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), HcalHF_PETalgorithm::HFSetFlagFromPET(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), EcalMIPRecHitFilter::hltFilter(), HLTHcalSimpleRecHitFilter::hltFilter(), IslandClusterAlgo::makeCluster(), Multi5x5ClusterAlgo::makeCluster(), CosmicClusterAlgo::makeCluster(), HybridClusterAlgo::makeDomino(), EcalDisplaysByEvent::makeHistos(), ecalRecHitLess::operator()(), EcalRecHitLess::operator()(), ecalRecHitSort::operator()(), eecalRecHitLess::operator()(), less_mag::operator()(), operator<(), operator<<(), RecHitCorrector::produce(), CastorCellProducer::produce(), AlCaECALRecHitReducer::produce(), AlCaHOCalibProducer::produce(), reco::modules::CaloRecHitCandidateProducer< HitCollection >::produce(), InterestingDetIdCollectionProducer::produce(), Multi5x5ClusterAlgo::ProtoBasicCluster::removeHit(), EcalDisplaysByEvent::selectHits(), EcalMipGraphs::selectHits(), setEnergy(), HBHEStatusBitSetter::SetFlagsFromDigi(), EcalSeverityLevelAlgo::severityLevel(), HBHETimingShapedFlagSetter::timingStatus(), and ObjectValidator::validHit().

{ return energy_; }
uint32_t CaloRecHit::flagField ( int  base,
int  width = 1 
) const

Definition at line 31 of file CaloRecHit.cc.

References flags_, masks, max(), and min.

Referenced by HFClusterAlgo::isPMTHit().

                                                        {
  return (flags_>>std::max(std::min(base,31),0))&masks[std::max(std::min(width,32),0)];
}
uint32_t CaloRecHit::flags ( ) const [inline]
void CaloRecHit::setAux ( uint32_t  value) [inline]

Definition at line 27 of file CaloRecHit.h.

References aux_, and relativeConstraints::value.

Referenced by EcalRecHit::setTimeError().

{ aux_=value; }
void CaloRecHit::setEnergy ( float  energy) [inline]

Definition at line 20 of file CaloRecHit.h.

References energy(), and energy_.

void CaloRecHit::setFlagField ( uint32_t  value,
int  base,
int  width = 1 
)
void CaloRecHit::setFlags ( uint32_t  flags) [inline]

Definition at line 24 of file CaloRecHit.h.

References flags(), and flags_.

Referenced by EcalRecHit::setChi2(), EcalRecHit::setOutOfTimeChi2(), and EcalRecHit::setOutOfTimeEnergy().

float CaloRecHit::time ( ) const [inline]

Member Data Documentation

uint32_t CaloRecHit::aux_ [private]

Definition at line 34 of file CaloRecHit.h.

Referenced by aux(), and setAux().

float CaloRecHit::energy_ [private]

Definition at line 31 of file CaloRecHit.h.

Referenced by energy(), and setEnergy().

uint32_t CaloRecHit::flags_ [private]

Definition at line 33 of file CaloRecHit.h.

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

Definition at line 30 of file CaloRecHit.h.

Referenced by detid().

float CaloRecHit::time_ [private]

Definition at line 32 of file CaloRecHit.h.

Referenced by time().