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

uint32_t auxHBHE () const
 
uint32_t auxPhase1 () const
 
float chi2 () const
 
float eaux () const
 
float eraw () const
 
void getMergedIds (std::vector< HcalDetId > *ids) const
 
 HBHERecHit ()
 
 HBHERecHit (const HcalDetId &id, float energy, float timeRising, float timeFalling=0)
 
HcalDetId id () const
 get the id More...
 
HcalDetId idFront () const
 
bool isMerged () const
 
void setAuxEnergy (const float en)
 
void setAuxHBHE (const uint32_t aux)
 
void setAuxPhase1 (const uint32_t aux)
 
void setChiSquared (const float chi2)
 
void setRawEnergy (const float en)
 
void setTimeFalling (float timeFalling)
 
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_
 
float chiSquared_
 
float rawEnergy_
 
float timeFalling_
 

Detailed Description

Author
J. Mans - Minnesota

Definition at line 13 of file HBHERecHit.h.

Member Typedef Documentation

Definition at line 15 of file HBHERecHit.h.

Constructor & Destructor Documentation

HBHERecHit::HBHERecHit ( )
inline

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) {}
constexpr CaloRecHit()
Definition: CaloRecHit.h:25
float auxEnergy_
Definition: HBHERecHit.h:71
float chiSquared_
Definition: HBHERecHit.h:69
uint32_t auxPhase1_
Definition: HBHERecHit.h:73
float timeFalling_
Definition: HBHERecHit.h:68
uint32_t auxHBHE_
Definition: HBHERecHit.h:72
float rawEnergy_
Definition: HBHERecHit.h:70
HBHERecHit::HBHERecHit ( const HcalDetId id,
float  energy,
float  timeRising,
float  timeFalling = 0 
)
inline

Definition at line 26 of file HBHERecHit.h.

27  : CaloRecHit(id, energy, timeRising),
29  chiSquared_(-1),
30  rawEnergy_(-1.0e21),
31  auxEnergy_(-1.0e21),
32  auxHBHE_(0),
33  auxPhase1_(0) {}
constexpr float energy() const
Definition: CaloRecHit.h:29
constexpr CaloRecHit()
Definition: CaloRecHit.h:25
float auxEnergy_
Definition: HBHERecHit.h:71
float chiSquared_
Definition: HBHERecHit.h:69
uint32_t auxPhase1_
Definition: HBHERecHit.h:73
float timeFalling_
Definition: HBHERecHit.h:68
float timeFalling() const
get the hit falling time
Definition: HBHERecHit.h:36
uint32_t auxHBHE_
Definition: HBHERecHit.h:72
float rawEnergy_
Definition: HBHERecHit.h:70

Member Function Documentation

uint32_t HBHERecHit::auxHBHE ( ) const
inline

Definition at line 51 of file HBHERecHit.h.

References auxHBHE_.

51 { return auxHBHE_; }
uint32_t auxHBHE_
Definition: HBHERecHit.h:72
uint32_t HBHERecHit::auxPhase1 ( ) const
inline
float HBHERecHit::chi2 ( void  ) const
inline

Definition at line 42 of file HBHERecHit.h.

References chiSquared_.

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

42 { return chiSquared_; }
float chiSquared_
Definition: HBHERecHit.h:69
float HBHERecHit::eaux ( ) const
inline

Definition at line 48 of file HBHERecHit.h.

References auxEnergy_.

Referenced by SimplePlan1RechitCombiner::makeRechit(), and operator<<().

48 { return auxEnergy_; }
float auxEnergy_
Definition: HBHERecHit.h:71
float HBHERecHit::eraw ( ) const
inline

Definition at line 45 of file HBHERecHit.h.

References rawEnergy_.

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

45 { return rawEnergy_; }
float rawEnergy_
Definition: HBHERecHit.h:70
void HBHERecHit::getMergedIds ( std::vector< HcalDetId > *  ids) const

Definition at line 30 of file HBHERecHit.cc.

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.

Referenced by auxPhase1().

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 }
static const unsigned MASK_NSAMPLES
uint32_t auxPhase1_
Definition: HBHERecHit.h:73
static const unsigned OFF_NSAMPLES
constexpr unsigned getField(const uint32_t u, const unsigned mask, const unsigned offset)
uint32_t auxHBHE_
Definition: HBHERecHit.h:72
static const unsigned OFF_COMBINED
HcalDetId HBHERecHit::id ( ) const
inline
HcalDetId HBHERecHit::idFront ( ) const

Definition at line 5 of file HBHERecHit.cc.

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

Referenced by auxPhase1(), and reco::HcalNoiseInfoProducer::fillrechits().

5  {
7  const HcalDetId myId(id());
8  return HcalDetId(myId.subdet(), myId.ieta(), myId.iphi(), auxHBHE_ & 0xf);
9  } else {
10  return id();
11  }
12 }
HcalDetId id() const
get the id
Definition: HBHERecHit.h:39
uint32_t auxPhase1_
Definition: HBHERecHit.h:73
uint32_t auxHBHE_
Definition: HBHERecHit.h:72
static const unsigned OFF_COMBINED
bool HBHERecHit::isMerged ( ) const
void HBHERecHit::setAuxEnergy ( const float  en)
inline

Definition at line 47 of file HBHERecHit.h.

References auxEnergy_.

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

47 { auxEnergy_ = en; }
float auxEnergy_
Definition: HBHERecHit.h:71
void HBHERecHit::setAuxHBHE ( const uint32_t  aux)
inline

Definition at line 50 of file HBHERecHit.h.

References CaloRecHit::aux(), and auxHBHE_.

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

50 { auxHBHE_ = aux; }
uint32_t auxHBHE_
Definition: HBHERecHit.h:72
constexpr uint32_t aux() const
Definition: CaloRecHit.h:50
void HBHERecHit::setAuxPhase1 ( const uint32_t  aux)
inline

Definition at line 53 of file HBHERecHit.h.

References CaloRecHit::aux(), and auxPhase1_.

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

53 { auxPhase1_ = aux; }
uint32_t auxPhase1_
Definition: HBHERecHit.h:73
constexpr uint32_t aux() const
Definition: CaloRecHit.h:50
void HBHERecHit::setChiSquared ( const float  chi2)
inline

Definition at line 41 of file HBHERecHit.h.

References chi2(), and chiSquared_.

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

41 { chiSquared_ = chi2; }
float chi2() const
Definition: HBHERecHit.h:42
float chiSquared_
Definition: HBHERecHit.h:69
void HBHERecHit::setRawEnergy ( const float  en)
inline

Definition at line 44 of file HBHERecHit.h.

References rawEnergy_.

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

44 { rawEnergy_ = en; }
float rawEnergy_
Definition: HBHERecHit.h:70
void HBHERecHit::setTimeFalling ( float  timeFalling)
inline

Definition at line 37 of file HBHERecHit.h.

References timeFalling(), and timeFalling_.

float timeFalling_
Definition: HBHERecHit.h:68
float timeFalling() const
get the hit falling time
Definition: HBHERecHit.h:36
float HBHERecHit::timeFalling ( ) const
inline

get the hit falling time

Definition at line 36 of file HBHERecHit.h.

References timeFalling_.

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

36 { return timeFalling_; }
float timeFalling_
Definition: HBHERecHit.h:68

Member Data Documentation

float HBHERecHit::auxEnergy_
private

Definition at line 71 of file HBHERecHit.h.

Referenced by eaux(), and setAuxEnergy().

uint32_t HBHERecHit::auxHBHE_
private

Definition at line 72 of file HBHERecHit.h.

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

uint32_t HBHERecHit::auxPhase1_
private

Definition at line 73 of file HBHERecHit.h.

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

float HBHERecHit::chiSquared_
private

Definition at line 69 of file HBHERecHit.h.

Referenced by chi2(), and setChiSquared().

float HBHERecHit::rawEnergy_
private

Definition at line 70 of file HBHERecHit.h.

Referenced by eraw(), and setRawEnergy().

float HBHERecHit::timeFalling_
private

Definition at line 68 of file HBHERecHit.h.

Referenced by setTimeFalling(), and timeFalling().