CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CaloRecHit Class Reference

#include <CaloRecHit.h>

Inheritance diagram for CaloRecHit:
CastorRecHit EcalRecHit HBHERecHit HFRecHit HORecHit ZDCRecHit

Public Member Functions

uint32_t aux () const
 
 CaloRecHit ()
 
 CaloRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t aux=0)
 
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 setFlagField (uint32_t value, int base, int width=1)
 
void setFlags (uint32_t flags)
 
float time () const
 
virtual ~CaloRecHit ()
 

Private Attributes

uint32_t aux_
 
float energy_
 
uint32_t flags_
 
DetId id_
 
float time_
 

Detailed Description

Date:
2009/03/29 02:07:54
Revision:
1.6
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.

4  : energy_(0), time_(0), flags_(0), aux_(0) {
5 }
uint32_t aux_
Definition: CaloRecHit.h:33
float energy_
Definition: CaloRecHit.h:30
uint32_t flags_
Definition: CaloRecHit.h:32
float time_
Definition: CaloRecHit.h:31
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.

7  :
9 }
uint32_t aux() const
Definition: CaloRecHit.h:27
float time() const
Definition: CaloRecHit.h:20
uint32_t aux_
Definition: CaloRecHit.h:33
float energy_
Definition: CaloRecHit.h:30
float energy() const
Definition: CaloRecHit.h:19
uint32_t flags() const
Definition: CaloRecHit.h:22
uint32_t flags_
Definition: CaloRecHit.h:32
float time_
Definition: CaloRecHit.h:31
DetId id_
Definition: CaloRecHit.h:29
CaloRecHit::~CaloRecHit ( )
virtual

Definition at line 11 of file CaloRecHit.cc.

11  {
12 }

Member Function Documentation

uint32_t CaloRecHit::aux ( ) const
inline

Definition at line 27 of file CaloRecHit.h.

References aux_.

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

27 { return aux_; }
uint32_t aux_
Definition: CaloRecHit.h:33
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(), cms::Analyzer_minbias::analyze(), EcalCosmicsHists::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::analyzeEE(), CaloTowersCreationAlgo::assignHit(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalRecHitLegoProxyBuilder::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(), PFRecHitProducerHCAL::createRecHits(), PFRecHitProducerECAL::createRecHits(), muonisolation::CaloExtractorByAssociator::deposits(), reco::HcalNoiseInfoProducer::fillrechits(), HLTHcalSimpleRecHitFilter::filter(), EcalRecHitsFilter::filter(), EcalMIPRecHitFilter::filter(), reco::CentralityProducer::filter(), calib::CalibElectron::getCalibModulesWeights(), RxCalculator::getCRx(), EcalClusterTools::getEnergyDepTopology(), EgammaHcalIsolation::getHcalSum(), HoECalculator::getHoE(), ZeeCalibration::getHottestDetId(), RxCalculator::getRFx(), RxCalculator::getROx(), RxCalculator::getRx(), EgammaRecHitIsolation::getSum_(), HBHEHitMapOrganizer::HBHEHitMapOrganizer(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), HcalHF_PETalgorithm::HFSetFlagFromPET(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), IslandClusterAlgo::makeCluster(), Multi5x5ClusterAlgo::makeCluster(), CosmicClusterAlgo::makeCluster(), HybridClusterAlgo::makeDomino(), EcalDisplaysByEvent::makeHistos(), EcalRecHitLess::operator()(), ecalRecHitLess::operator()(), less_mag::operator()(), ecalRecHitSort::operator()(), eecalRecHitLess::operator()(), operator<(), operator<<(), reco::modules::CaloRecHitCandidateProducer< HitCollection >::produce(), SoftElectronProducer::produce(), InterestingDetIdCollectionProducer::produce(), EleIsoDetIdCollectionProducer::produce(), GamIsoDetIdCollectionProducer::produce(), CastorCellProducer::produce(), RecHitCorrector::produce(), AlCaHOCalibProducer::produce(), EcalMipGraphs::selectHits(), EcalDisplaysByEvent::selectHits(), HBHEStatusBitSetter::SetFlagsFromDigi(), EcalSeverityLevelAlgo::severityLevel(), HBHETimingShapedFlagSetter::timingStatus(), and ObjectValidator::validHit().

19 { return energy_; }
float energy_
Definition: CaloRecHit.h:30
uint32_t CaloRecHit::flagField ( int  base,
int  width = 1 
) const

Definition at line 33 of file CaloRecHit.cc.

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

Referenced by HFClusterAlgo::isPMTHit().

33  {
34  return (flags_>>std::max(std::min(base,31),0))&masks[std::max(std::min(width,32),0)];
35 }
tuple base
Main Program
Definition: newFWLiteAna.py:92
#define min(a, b)
Definition: mlp_lapack.h:161
const T & max(const T &a, const T &b)
uint32_t flags_
Definition: CaloRecHit.h:32
static const uint32_t masks[]
Definition: CaloRecHit.cc:14
uint32_t CaloRecHit::flags ( ) const
inline
void CaloRecHit::setAux ( uint32_t  value)
inline

Definition at line 26 of file CaloRecHit.h.

References aux_, and relativeConstraints::value.

Referenced by EcalRecHit::setTimeError().

26 { aux_=value; }
uint32_t aux_
Definition: CaloRecHit.h:33
void CaloRecHit::setFlagField ( uint32_t  value,
int  base,
int  width = 1 
)

Definition at line 22 of file CaloRecHit.cc.

References flags_, masks, max(), min, and relativeConstraints::value.

Referenced by HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), HcalHF_PETalgorithm::HFSetFlagFromPET(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), HBHEIsolatedNoiseReflagger::produce(), HBHEStatusBitSetter::SetFlagsFromDigi(), HBHEPulseShapeFlagSetter::SetPulseShapeFlags(), and HBHETimingShapedFlagSetter::SetTimingShapedFlags().

22  {
24  value<<=std::max(std::min(base,31),0);
25  // clear out the relevant bits
26  uint32_t clear=masks[std::max(std::min(width,32),0)];
27  clear=clear<<std::max(std::min(base,31),0);
28  clear^=0xFFFFFFFFu;
29  flags_&=clear;
30  flags_|=value;
31 }
tuple base
Main Program
Definition: newFWLiteAna.py:92
#define min(a, b)
Definition: mlp_lapack.h:161
const T & max(const T &a, const T &b)
uint32_t flags_
Definition: CaloRecHit.h:32
static const uint32_t masks[]
Definition: CaloRecHit.cc:14
void CaloRecHit::setFlags ( uint32_t  flags)
inline
float CaloRecHit::time ( ) const
inline

Member Data Documentation

uint32_t CaloRecHit::aux_
private

Definition at line 33 of file CaloRecHit.h.

Referenced by aux(), and setAux().

float CaloRecHit::energy_
private

Definition at line 30 of file CaloRecHit.h.

Referenced by energy().

uint32_t CaloRecHit::flags_
private

Definition at line 32 of file CaloRecHit.h.

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

DetId CaloRecHit::id_
private

Definition at line 29 of file CaloRecHit.h.

Referenced by detid().

float CaloRecHit::time_
private

Definition at line 31 of file CaloRecHit.h.

Referenced by time().