CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

Definition at line 15 of file HBHERecHit.h.

Constructor & Destructor Documentation

constexpr 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),
25  auxTDC_(0) {}
constexpr CaloRecHit()
Definition: CaloRecHit.h:25
float auxEnergy_
Definition: HBHERecHit.h:76
float chiSquared_
Definition: HBHERecHit.h:74
uint32_t auxPhase1_
Definition: HBHERecHit.h:78
uint32_t auxTDC_
Definition: HBHERecHit.h:79
float timeFalling_
Definition: HBHERecHit.h:73
uint32_t auxHBHE_
Definition: HBHERecHit.h:77
float rawEnergy_
Definition: HBHERecHit.h:75
constexpr HBHERecHit::HBHERecHit ( const HcalDetId id,
float  energy,
float  timeRising,
float  timeFalling = 0 
)
inline

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) {}
constexpr float energy() const
Definition: CaloRecHit.h:29
constexpr CaloRecHit()
Definition: CaloRecHit.h:25
float auxEnergy_
Definition: HBHERecHit.h:76
float chiSquared_
Definition: HBHERecHit.h:74
uint32_t auxPhase1_
Definition: HBHERecHit.h:78
uint32_t auxTDC_
Definition: HBHERecHit.h:79
float timeFalling_
Definition: HBHERecHit.h:73
uint32_t auxHBHE_
Definition: HBHERecHit.h:77
constexpr float timeFalling() const
get the hit falling time
Definition: HBHERecHit.h:38
float rawEnergy_
Definition: HBHERecHit.h:75

Member Function Documentation

constexpr uint32_t HBHERecHit::auxHBHE ( ) const
inline

Definition at line 53 of file HBHERecHit.h.

References auxHBHE_.

53 { return auxHBHE_; }
uint32_t auxHBHE_
Definition: HBHERecHit.h:77
constexpr uint32_t HBHERecHit::auxPhase1 ( ) const
inline
constexpr uint32_t HBHERecHit::auxTDC ( ) const
inline

Definition at line 59 of file HBHERecHit.h.

References auxTDC_.

59 { return auxTDC_; }
uint32_t auxTDC_
Definition: HBHERecHit.h:79
constexpr float HBHERecHit::chi2 ( void  ) const
inline

Definition at line 44 of file HBHERecHit.h.

References chiSquared_.

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

44 { return chiSquared_; }
float chiSquared_
Definition: HBHERecHit.h:74
constexpr float HBHERecHit::eaux ( ) const
inline

Definition at line 50 of file HBHERecHit.h.

References auxEnergy_.

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

50 { return auxEnergy_; }
float auxEnergy_
Definition: HBHERecHit.h:76
constexpr float HBHERecHit::eraw ( ) const
inline

Definition at line 47 of file HBHERecHit.h.

References rawEnergy_.

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

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

Definition at line 30 of file HBHERecHit.cc.

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

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:78
static const unsigned OFF_NSAMPLES
constexpr unsigned getField(const uint32_t u, const unsigned mask, const unsigned offset)
uint32_t auxHBHE_
Definition: HBHERecHit.h:77
static const unsigned OFF_COMBINED
constexpr 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, and HcalDetId::subdet().

Referenced by 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 }
uint32_t auxPhase1_
Definition: HBHERecHit.h:78
constexpr HcalDetId id() const
get the id
Definition: HBHERecHit.h:41
uint32_t auxHBHE_
Definition: HBHERecHit.h:77
static const unsigned OFF_COMBINED
bool HBHERecHit::isMerged ( ) const

Definition at line 14 of file HBHERecHit.cc.

References auxPhase1_, and HBHERecHitAuxSetter::OFF_COMBINED.

uint32_t auxPhase1_
Definition: HBHERecHit.h:78
static const unsigned OFF_COMBINED
constexpr void HBHERecHit::setAuxEnergy ( const float  en)
inline

Definition at line 49 of file HBHERecHit.h.

References auxEnergy_.

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

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

Definition at line 52 of file HBHERecHit.h.

References CaloRecHit::aux(), and auxHBHE_.

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

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

Definition at line 55 of file HBHERecHit.h.

References CaloRecHit::aux(), and auxPhase1_.

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

55 { auxPhase1_ = aux; }
uint32_t auxPhase1_
Definition: HBHERecHit.h:78
constexpr uint32_t aux() const
Definition: CaloRecHit.h:50
constexpr void HBHERecHit::setAuxTDC ( const uint32_t  aux)
inline

Definition at line 58 of file HBHERecHit.h.

References CaloRecHit::aux(), and auxTDC_.

Referenced by HBHEPhase1Reconstructor::setAsicSpecificBits().

58 { auxTDC_ = aux; }
uint32_t auxTDC_
Definition: HBHERecHit.h:79
constexpr uint32_t aux() const
Definition: CaloRecHit.h:50
constexpr void HBHERecHit::setChiSquared ( const float  chi2)
inline

Definition at line 43 of file HBHERecHit.h.

References chi2(), and chiSquared_.

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

43 { chiSquared_ = chi2; }
float chiSquared_
Definition: HBHERecHit.h:74
constexpr float chi2() const
Definition: HBHERecHit.h:44
constexpr void HBHERecHit::setRawEnergy ( const float  en)
inline

Definition at line 46 of file HBHERecHit.h.

References rawEnergy_.

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

46 { rawEnergy_ = en; }
float rawEnergy_
Definition: HBHERecHit.h:75
constexpr void HBHERecHit::setTimeFalling ( float  timeFalling)
inline

Definition at line 39 of file HBHERecHit.h.

References timeFalling(), and timeFalling_.

float timeFalling_
Definition: HBHERecHit.h:73
constexpr float timeFalling() const
get the hit falling time
Definition: HBHERecHit.h:38
constexpr float HBHERecHit::timeFalling ( ) const
inline

get the hit falling time

Definition at line 38 of file HBHERecHit.h.

References timeFalling_.

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

38 { return timeFalling_; }
float timeFalling_
Definition: HBHERecHit.h:73

Member Data Documentation

float HBHERecHit::auxEnergy_
private

Definition at line 76 of file HBHERecHit.h.

Referenced by eaux(), and setAuxEnergy().

uint32_t HBHERecHit::auxHBHE_
private

Definition at line 77 of file HBHERecHit.h.

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

uint32_t HBHERecHit::auxPhase1_
private

Definition at line 78 of file HBHERecHit.h.

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

uint32_t HBHERecHit::auxTDC_
private

Definition at line 79 of file HBHERecHit.h.

Referenced by auxTDC(), and setAuxTDC().

float HBHERecHit::chiSquared_
private

Definition at line 74 of file HBHERecHit.h.

Referenced by chi2(), and setChiSquared().

float HBHERecHit::rawEnergy_
private

Definition at line 75 of file HBHERecHit.h.

Referenced by eraw(), and setRawEnergy().

float HBHERecHit::timeFalling_
private

Definition at line 73 of file HBHERecHit.h.

Referenced by setTimeFalling(), and timeFalling().