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

Definition at line 27 of file HBHERecHit.h.

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

Member Function Documentation

uint32_t HBHERecHit::auxHBHE ( ) const
inline

Definition at line 54 of file HBHERecHit.h.

References auxHBHE_.

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

Definition at line 45 of file HBHERecHit.h.

References chiSquared_.

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

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

Definition at line 51 of file HBHERecHit.h.

References auxEnergy_.

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

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

Definition at line 48 of file HBHERecHit.h.

References rawEnergy_.

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

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

Definition at line 32 of file HBHERecHit.cc.

References auxHBHE_, auxPhase1_, egammaForCoreTracking_cff::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().

33 {
34  if (ids)
35  {
36  ids->clear();
38  {
39  const unsigned nMerged = CaloRecHitAuxSetter::getField(
42  ids->reserve(nMerged);
43  const HcalDetId myId(id());
44  for (unsigned i=0; i<nMerged; ++i)
45  {
46  const unsigned depth = CaloRecHitAuxSetter::getField(auxHBHE_, 0xf, i*4);
47  ids->emplace_back(myId.subdet(), myId.ieta(), myId.iphi(), depth);
48  }
49  }
50  }
51 }
static const unsigned MASK_NSAMPLES
uint32_t auxPhase1_
Definition: HBHERecHit.h:75
static const unsigned OFF_NSAMPLES
constexpr unsigned getField(const uint32_t u, const unsigned mask, const unsigned offset)
uint32_t auxHBHE_
Definition: HBHERecHit.h:74
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:42
uint32_t auxPhase1_
Definition: HBHERecHit.h:75
uint32_t auxHBHE_
Definition: HBHERecHit.h:74
static const unsigned OFF_COMBINED
bool HBHERecHit::isMerged ( ) const

Definition at line 14 of file HBHERecHit.cc.

References auxPhase1_, HBHERecHitAuxSetter::OFF_COMBINED, and mitigatedMETSequence_cff::U.

Referenced by auxPhase1().

14  {
16 }
uint32_t auxPhase1_
Definition: HBHERecHit.h:75
static const unsigned OFF_COMBINED
void HBHERecHit::setAuxEnergy ( const float  en)
inline

Definition at line 50 of file HBHERecHit.h.

References auxEnergy_.

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

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

Definition at line 53 of file HBHERecHit.h.

References CaloRecHit::aux(), and auxHBHE_.

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

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

Definition at line 56 of file HBHERecHit.h.

References CaloRecHit::aux(), and auxPhase1_.

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

56 { auxPhase1_ = aux;}
uint32_t auxPhase1_
Definition: HBHERecHit.h:75
constexpr uint32_t aux() const
Definition: CaloRecHit.h:52
void HBHERecHit::setChiSquared ( const float  chi2)
inline

Definition at line 44 of file HBHERecHit.h.

References chi2(), and chiSquared_.

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

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

Definition at line 47 of file HBHERecHit.h.

References rawEnergy_.

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

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

Definition at line 40 of file HBHERecHit.h.

References timeFalling(), and timeFalling_.

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

get the hit falling time

Definition at line 39 of file HBHERecHit.h.

References timeFalling_.

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

39 { return timeFalling_; }
float timeFalling_
Definition: HBHERecHit.h:70

Member Data Documentation

float HBHERecHit::auxEnergy_
private

Definition at line 73 of file HBHERecHit.h.

Referenced by eaux(), and setAuxEnergy().

uint32_t HBHERecHit::auxHBHE_
private

Definition at line 74 of file HBHERecHit.h.

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

uint32_t HBHERecHit::auxPhase1_
private

Definition at line 75 of file HBHERecHit.h.

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

float HBHERecHit::chiSquared_
private

Definition at line 71 of file HBHERecHit.h.

Referenced by chi2(), and setChiSquared().

float HBHERecHit::rawEnergy_
private

Definition at line 72 of file HBHERecHit.h.

Referenced by eraw(), and setRawEnergy().

float HBHERecHit::timeFalling_
private

Definition at line 70 of file HBHERecHit.h.

Referenced by setTimeFalling(), and timeFalling().