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

Definition at line 25 of file CaloRecHit.h.

25 : energy_(0), time_(0), flags_(0), aux_(0) {}

◆ CaloRecHit() [2/2]

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

Definition at line 26 of file CaloRecHit.h.

27  : id_(id), energy_(energy), time_(time), flags_(flags), aux_(aux) {}

Member Function Documentation

◆ aux()

constexpr uint32_t CaloRecHit::aux ( ) const
inlineconstexpr

Definition at line 50 of file CaloRecHit.h.

50 { return aux_; }

References aux_.

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

◆ detid()

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

◆ energy()

constexpr float CaloRecHit::energy ( ) const
inlineconstexpr

◆ flagField()

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

Definition at line 46 of file CaloRecHit.h.

46  {
47  return (flags_ >> std::max(std::min(base, 31), 0)) & calo_rechit_masks[std::max(std::min(width, 32), 0)];
48  }

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

Referenced by HFClusterAlgo::isPMTHit().

◆ flags()

constexpr uint32_t CaloRecHit::flags ( ) const
inlineconstexpr

◆ setAux()

constexpr void CaloRecHit::setAux ( uint32_t  value)
inlineconstexpr

Definition at line 49 of file CaloRecHit.h.

49 { aux_ = value; }

References aux_, and relativeConstraints::value.

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

◆ setEnergy()

constexpr void CaloRecHit::setEnergy ( float  energy)
inlineconstexpr

Definition at line 30 of file CaloRecHit.h.

30 { energy_ = energy; }

References energy(), and energy_.

Referenced by HFStripFilter::runFilter().

◆ setFlagField()

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

◆ setFlags()

constexpr void CaloRecHit::setFlags ( uint32_t  flags)
inlineconstexpr

◆ setTime()

constexpr void CaloRecHit::setTime ( float  time)
inlineconstexpr

Definition at line 32 of file CaloRecHit.h.

32 { time_ = time; }

References time(), and time_.

◆ time()

constexpr float CaloRecHit::time ( ) const
inlineconstexpr

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

ApeEstimator_cff.width
width
Definition: ApeEstimator_cff.py:24
CaloRecHit::aux_
uint32_t aux_
Definition: CaloRecHit.h:57
CaloRecHit::energy
constexpr float energy() const
Definition: CaloRecHit.h:29
min
T min(T a, T b)
Definition: MathUtil.h:58
calo_rechit_masks
constexpr uint32_t calo_rechit_masks[]
Definition: CaloRecHit.h:12
CaloRecHit::energy_
float energy_
Definition: CaloRecHit.h:54
CaloRecHit::flags_
uint32_t flags_
Definition: CaloRecHit.h:56
CaloRecHit::time
constexpr float time() const
Definition: CaloRecHit.h:31
CaloRecHit::id_
DetId id_
Definition: CaloRecHit.h:53
clear
void clear(HadCaloObj &c)
Definition: data.h:124
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
value
Definition: value.py:1
CaloRecHit::time_
float time_
Definition: CaloRecHit.h:55
relativeConstraints.value
value
Definition: relativeConstraints.py:53
CaloRecHit::aux
constexpr uint32_t aux() const
Definition: CaloRecHit.h:50
newFWLiteAna.base
base
Definition: newFWLiteAna.py:92
CaloRecHit::flags
constexpr uint32_t flags() const
Definition: CaloRecHit.h:34