CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
HBHERecHit Class Reference

#include <HBHERecHit.h>

Inheritance diagram for HBHERecHit:
CaloRecHit

Public Types

typedef HcalDetId key_type
 

Public Member Functions

constexpr uint32_t auxHBHE () const
 
constexpr uint32_t auxPhase1 () const
 
constexpr uint32_t auxTDC () const
 
constexpr float chi2 () const
 
constexpr float eaux () const
 
constexpr float eraw () const
 
void getMergedIds (std::vector< HcalDetId > *ids) const
 
constexpr HBHERecHit ()
 
constexpr HBHERecHit (const HcalDetId &id, float energy, float timeRising, float timeFalling=0)
 
constexpr HcalDetId id () const
 get the id More...
 
HcalDetId idFront () const
 
bool isMerged () const
 
constexpr void setAuxEnergy (const float en)
 
constexpr void setAuxHBHE (const uint32_t aux)
 
constexpr void setAuxPhase1 (const uint32_t aux)
 
constexpr void setAuxTDC (const uint32_t aux)
 
constexpr void setChiSquared (const float chi2)
 
constexpr void setRawEnergy (const float en)
 
constexpr void setTimeFalling (float timeFalling)
 
constexpr float timeFalling () const
 get the hit falling time More...
 
- Public Member Functions inherited from CaloRecHit
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

float auxEnergy_
 
uint32_t auxHBHE_
 
uint32_t auxPhase1_
 
uint32_t auxTDC_
 
float chiSquared_
 
float rawEnergy_
 
float timeFalling_
 

Detailed Description

Author
J. Mans - Minnesota

Definition at line 13 of file HBHERecHit.h.

Member Typedef Documentation

◆ key_type

Definition at line 15 of file HBHERecHit.h.

Constructor & Destructor Documentation

◆ HBHERecHit() [1/2]

constexpr HBHERecHit::HBHERecHit ( )
inlineconstexpr

Definition at line 17 of file HBHERecHit.h.

18  : CaloRecHit(),
19  timeFalling_(0),
20  chiSquared_(-1),
21  rawEnergy_(-1.0e21),
22  auxEnergy_(-1.0e21),
23  auxHBHE_(0),
24  auxPhase1_(0),
25  auxTDC_(0) {}

◆ HBHERecHit() [2/2]

constexpr HBHERecHit::HBHERecHit ( const HcalDetId id,
float  energy,
float  timeRising,
float  timeFalling = 0 
)
inlineconstexpr

Definition at line 27 of file HBHERecHit.h.

28  : CaloRecHit(id, energy, timeRising),
30  chiSquared_(-1),
31  rawEnergy_(-1.0e21),
32  auxEnergy_(-1.0e21),
33  auxHBHE_(0),
34  auxPhase1_(0),
35  auxTDC_(0) {}

Member Function Documentation

◆ auxHBHE()

constexpr uint32_t HBHERecHit::auxHBHE ( ) const
inlineconstexpr

Definition at line 53 of file HBHERecHit.h.

53 { return auxHBHE_; }

References auxHBHE_.

◆ auxPhase1()

constexpr uint32_t HBHERecHit::auxPhase1 ( ) const
inlineconstexpr

◆ auxTDC()

constexpr uint32_t HBHERecHit::auxTDC ( ) const
inlineconstexpr

Definition at line 59 of file HBHERecHit.h.

59 { return auxTDC_; }

References auxTDC_.

◆ chi2()

constexpr float HBHERecHit::chi2 ( void  ) const
inlineconstexpr

Definition at line 44 of file HBHERecHit.h.

44 { return chiSquared_; }

References chiSquared_.

Referenced by SimplePlan1RechitCombiner::makeRechit(), and setChiSquared().

◆ eaux()

constexpr float HBHERecHit::eaux ( ) const
inlineconstexpr

Definition at line 50 of file HBHERecHit.h.

50 { return auxEnergy_; }

References auxEnergy_.

Referenced by SimplePlan1RechitCombiner::makeRechit().

◆ eraw()

constexpr float HBHERecHit::eraw ( ) const
inlineconstexpr

Definition at line 47 of file HBHERecHit.h.

47 { return rawEnergy_; }

References rawEnergy_.

Referenced by reco::HcalNoiseInfoProducer::fillrechits(), and SimplePlan1RechitCombiner::makeRechit().

◆ getMergedIds()

void HBHERecHit::getMergedIds ( std::vector< HcalDetId > *  ids) const

Definition at line 30 of file HBHERecHit.cc.

30  {
31  if (ids) {
32  ids->clear();
34  const unsigned nMerged = CaloRecHitAuxSetter::getField(
36  ids->reserve(nMerged);
37  const HcalDetId myId(id());
38  for (unsigned i = 0; i < nMerged; ++i) {
39  const unsigned depth = CaloRecHitAuxSetter::getField(auxHBHE_, 0xf, i * 4);
40  ids->emplace_back(myId.subdet(), myId.ieta(), myId.iphi(), depth);
41  }
42  }
43  }
44 }

References auxHBHE_, auxPhase1_, LEDCalibrationChannels::depth, CaloRecHitAuxSetter::getField(), mps_fire::i, HcalDetId::ieta(), HcalDetId::iphi(), HBHERecHitAuxSetter::MASK_NSAMPLES, HBHERecHitAuxSetter::OFF_COMBINED, HBHERecHitAuxSetter::OFF_NSAMPLES, HcalDetId::subdet(), and mitigatedMETSequence_cff::U.

◆ id()

constexpr HcalDetId HBHERecHit::id ( ) const
inlineconstexpr

◆ idFront()

HcalDetId HBHERecHit::idFront ( ) const

Definition at line 5 of file HBHERecHit.cc.

5  {
7  const HcalDetId myId(id());
8  return HcalDetId(myId.subdet(), myId.ieta(), myId.iphi(), auxHBHE_ & 0xf);
9  } else {
10  return id();
11  }
12 }

References auxHBHE_, auxPhase1_, id(), HcalDetId::ieta(), HcalDetId::iphi(), HBHERecHitAuxSetter::OFF_COMBINED, HcalDetId::subdet(), and mitigatedMETSequence_cff::U.

Referenced by reco::HcalNoiseInfoProducer::fillrechits().

◆ isMerged()

bool HBHERecHit::isMerged ( ) const

◆ setAuxEnergy()

constexpr void HBHERecHit::setAuxEnergy ( const float  en)
inlineconstexpr

Definition at line 49 of file HBHERecHit.h.

49 { auxEnergy_ = en; }

References auxEnergy_.

Referenced by SimplePlan1RechitCombiner::makeRechit(), and SimpleHBHEPhase1Algo::reconstruct().

◆ setAuxHBHE()

constexpr void HBHERecHit::setAuxHBHE ( const uint32_t  aux)
inlineconstexpr

Definition at line 52 of file HBHERecHit.h.

52 { auxHBHE_ = aux; }

References CaloRecHit::aux(), and auxHBHE_.

Referenced by SimplePlan1RechitCombiner::combineAuxInfo(), and HBHERecHitAuxSetter::setAux().

◆ setAuxPhase1()

constexpr void HBHERecHit::setAuxPhase1 ( const uint32_t  aux)
inlineconstexpr

Definition at line 55 of file HBHERecHit.h.

55 { auxPhase1_ = aux; }

References CaloRecHit::aux(), and auxPhase1_.

Referenced by SimplePlan1RechitCombiner::combineAuxInfo(), and HBHERecHitAuxSetter::setAux().

◆ setAuxTDC()

constexpr void HBHERecHit::setAuxTDC ( const uint32_t  aux)
inlineconstexpr

Definition at line 58 of file HBHERecHit.h.

58 { auxTDC_ = aux; }

References CaloRecHit::aux(), and auxTDC_.

Referenced by HBHEPhase1Reconstructor::setAsicSpecificBits().

◆ setChiSquared()

constexpr void HBHERecHit::setChiSquared ( const float  chi2)
inlineconstexpr

Definition at line 43 of file HBHERecHit.h.

43 { chiSquared_ = chi2; }

References chi2(), and chiSquared_.

Referenced by SimplePlan1RechitCombiner::makeRechit(), and SimpleHBHEPhase1Algo::reconstruct().

◆ setRawEnergy()

constexpr void HBHERecHit::setRawEnergy ( const float  en)
inlineconstexpr

Definition at line 46 of file HBHERecHit.h.

46 { rawEnergy_ = en; }

References rawEnergy_.

Referenced by SimplePlan1RechitCombiner::makeRechit(), and SimpleHBHEPhase1Algo::reconstruct().

◆ setTimeFalling()

constexpr void HBHERecHit::setTimeFalling ( float  timeFalling)
inlineconstexpr

Definition at line 39 of file HBHERecHit.h.

References timeFalling(), and timeFalling_.

◆ timeFalling()

constexpr float HBHERecHit::timeFalling ( ) const
inlineconstexpr

get the hit falling time

Definition at line 38 of file HBHERecHit.h.

38 { return timeFalling_; }

References timeFalling_.

Referenced by SimplePlan1RechitCombiner::makeRechit(), and setTimeFalling().

Member Data Documentation

◆ auxEnergy_

float HBHERecHit::auxEnergy_
private

Definition at line 76 of file HBHERecHit.h.

Referenced by eaux(), and setAuxEnergy().

◆ auxHBHE_

uint32_t HBHERecHit::auxHBHE_
private

Definition at line 77 of file HBHERecHit.h.

Referenced by auxHBHE(), getMergedIds(), idFront(), and setAuxHBHE().

◆ auxPhase1_

uint32_t HBHERecHit::auxPhase1_
private

Definition at line 78 of file HBHERecHit.h.

Referenced by auxPhase1(), getMergedIds(), idFront(), isMerged(), and setAuxPhase1().

◆ auxTDC_

uint32_t HBHERecHit::auxTDC_
private

Definition at line 79 of file HBHERecHit.h.

Referenced by auxTDC(), and setAuxTDC().

◆ chiSquared_

float HBHERecHit::chiSquared_
private

Definition at line 74 of file HBHERecHit.h.

Referenced by chi2(), and setChiSquared().

◆ rawEnergy_

float HBHERecHit::rawEnergy_
private

Definition at line 75 of file HBHERecHit.h.

Referenced by eraw(), and setRawEnergy().

◆ timeFalling_

float HBHERecHit::timeFalling_
private

Definition at line 73 of file HBHERecHit.h.

Referenced by setTimeFalling(), and timeFalling().

HBHERecHitAuxSetter::OFF_COMBINED
static const unsigned OFF_COMBINED
Definition: HBHERecHitAuxSetter.h:41
mps_fire.i
i
Definition: mps_fire.py:428
HBHERecHit::auxTDC_
uint32_t auxTDC_
Definition: HBHERecHit.h:79
CaloRecHit::energy
constexpr float energy() const
Definition: CaloRecHit.h:29
HBHERecHit::chi2
constexpr float chi2() const
Definition: HBHERecHit.h:44
HBHERecHit::chiSquared_
float chiSquared_
Definition: HBHERecHit.h:74
HBHERecHit::timeFalling
constexpr float timeFalling() const
get the hit falling time
Definition: HBHERecHit.h:38
CaloRecHit::detid
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
HBHERecHitAuxSetter::MASK_NSAMPLES
static const unsigned MASK_NSAMPLES
Definition: HBHERecHitAuxSetter.h:23
CaloRecHit::CaloRecHit
constexpr CaloRecHit()
Definition: CaloRecHit.h:25
HBHERecHit::auxPhase1_
uint32_t auxPhase1_
Definition: HBHERecHit.h:78
HBHERecHit::timeFalling_
float timeFalling_
Definition: HBHERecHit.h:73
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
CaloRecHitAuxSetter::getField
constexpr unsigned getField(const uint32_t u, const unsigned mask, const unsigned offset)
Definition: CaloRecHitAuxSetter.h:13
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
HcalDetId
Definition: HcalDetId.h:12
HBHERecHit::rawEnergy_
float rawEnergy_
Definition: HBHERecHit.h:75
HBHERecHitAuxSetter::OFF_NSAMPLES
static const unsigned OFF_NSAMPLES
Definition: HBHERecHitAuxSetter.h:24
HBHERecHit::auxHBHE_
uint32_t auxHBHE_
Definition: HBHERecHit.h:77
CaloRecHit::aux
constexpr uint32_t aux() const
Definition: CaloRecHit.h:50
HBHERecHit::id
constexpr HcalDetId id() const
get the id
Definition: HBHERecHit.h:41
HBHERecHit::auxEnergy_
float auxEnergy_
Definition: HBHERecHit.h:76