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 amplitude, 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)
 
float timeFalling () const
 get the hit falling time More...
 
- Public Member Functions inherited from CaloRecHit
uint32_t aux () const
 
 CaloRecHit ()
 
 CaloRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t aux=0)
 
const DetIddetid () const
 
float energy () const
 
uint32_t flagField (int base, int width=1) const
 
uint32_t flags () const
 
void setAux (uint32_t value)
 
void setEnergy (float energy)
 
void setFlagField (uint32_t value, int base, int width=1)
 
void setFlags (uint32_t flags)
 
void setTime (float time)
 
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 14 of file HBHERecHit.h.

Member Typedef Documentation

Definition at line 16 of file HBHERecHit.h.

Constructor & Destructor Documentation

HBHERecHit::HBHERecHit ( )

Definition at line 5 of file HBHERecHit.cc.

6  : CaloRecHit(),
7  chiSquared_(-1),
8  rawEnergy_(-1.0e21),
9  auxEnergy_(-1.0e21),
10  auxHBHE_(0),
11  auxPhase1_(0)
12 {
13 }
float auxEnergy_
Definition: HBHERecHit.h:56
float chiSquared_
Definition: HBHERecHit.h:54
uint32_t auxPhase1_
Definition: HBHERecHit.h:58
uint32_t auxHBHE_
Definition: HBHERecHit.h:57
float rawEnergy_
Definition: HBHERecHit.h:55
HBHERecHit::HBHERecHit ( const HcalDetId id,
float  amplitude,
float  timeRising,
float  timeFalling = 0 
)

Definition at line 15 of file HBHERecHit.cc.

16  : CaloRecHit(id,energy,timeRising),
18  chiSquared_(-1),
19  rawEnergy_(-1.0e21),
20  auxEnergy_(-1.0e21),
21  auxHBHE_(0),
22  auxPhase1_(0)
23 {
24 }
float auxEnergy_
Definition: HBHERecHit.h:56
float chiSquared_
Definition: HBHERecHit.h:54
uint32_t auxPhase1_
Definition: HBHERecHit.h:58
float energy() const
Definition: CaloRecHit.h:17
float timeFalling_
Definition: HBHERecHit.h:53
float timeFalling() const
get the hit falling time
Definition: HBHERecHit.h:23
uint32_t auxHBHE_
Definition: HBHERecHit.h:57
float rawEnergy_
Definition: HBHERecHit.h:55

Member Function Documentation

uint32_t HBHERecHit::auxHBHE ( ) const
inline

Definition at line 37 of file HBHERecHit.h.

References auxHBHE_.

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

Definition at line 28 of file HBHERecHit.h.

References chiSquared_.

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

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

Definition at line 34 of file HBHERecHit.h.

References auxEnergy_.

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

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

Definition at line 31 of file HBHERecHit.h.

References rawEnergy_.

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

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

Definition at line 45 of file HBHERecHit.cc.

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

46 {
47  if (ids)
48  {
49  ids->clear();
51  {
52  const unsigned nMerged = CaloRecHitAuxSetter::getField(
55  ids->reserve(nMerged);
56  const HcalDetId myId(id());
57  for (unsigned i=0; i<nMerged; ++i)
58  {
59  const unsigned depth = CaloRecHitAuxSetter::getField(auxHBHE_, 0xf, i*4);
60  ids->emplace_back(myId.subdet(), myId.ieta(), myId.iphi(), depth);
61  }
62  }
63  }
64 }
static const unsigned MASK_NSAMPLES
unsigned getField(const uint32_t u, const unsigned mask, const unsigned offset)
uint32_t auxPhase1_
Definition: HBHERecHit.h:58
static const unsigned OFF_NSAMPLES
uint32_t auxHBHE_
Definition: HBHERecHit.h:57
static const unsigned OFF_COMBINED
HcalDetId HBHERecHit::id ( ) const
inline
HcalDetId HBHERecHit::idFront ( ) const

Definition at line 67 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().

67  {
69  const HcalDetId myId(id());
70  return HcalDetId(myId.subdet(), myId.ieta(), myId.iphi(), auxHBHE_ & 0xf);
71  } else {
72  return id();
73  }
74 }
HcalDetId id() const
get the id
Definition: HBHERecHit.h:25
uint32_t auxPhase1_
Definition: HBHERecHit.h:58
uint32_t auxHBHE_
Definition: HBHERecHit.h:57
static const unsigned OFF_COMBINED
bool HBHERecHit::isMerged ( ) const

Definition at line 40 of file HBHERecHit.cc.

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

Referenced by auxPhase1().

void HBHERecHit::setAuxEnergy ( const float  en)
inline

Definition at line 33 of file HBHERecHit.h.

References auxEnergy_.

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

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

Definition at line 36 of file HBHERecHit.h.

References CaloRecHit::aux(), and auxHBHE_.

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

36 { auxHBHE_ = aux;}
uint32_t aux() const
Definition: CaloRecHit.h:27
uint32_t auxHBHE_
Definition: HBHERecHit.h:57
void HBHERecHit::setAuxPhase1 ( const uint32_t  aux)
inline

Definition at line 39 of file HBHERecHit.h.

References CaloRecHit::aux(), and auxPhase1_.

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

39 { auxPhase1_ = aux;}
uint32_t aux() const
Definition: CaloRecHit.h:27
uint32_t auxPhase1_
Definition: HBHERecHit.h:58
void HBHERecHit::setChiSquared ( const float  chi2)
inline

Definition at line 27 of file HBHERecHit.h.

References chi2(), and chiSquared_.

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

27 {chiSquared_ = chi2;}
float chi2() const
Definition: HBHERecHit.h:28
float chiSquared_
Definition: HBHERecHit.h:54
void HBHERecHit::setRawEnergy ( const float  en)
inline

Definition at line 30 of file HBHERecHit.h.

References rawEnergy_.

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

30 {rawEnergy_ = en;}
float rawEnergy_
Definition: HBHERecHit.h:55
float HBHERecHit::timeFalling ( ) const
inline

get the hit falling time

Definition at line 23 of file HBHERecHit.h.

References timeFalling_.

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

23 { return timeFalling_; }
float timeFalling_
Definition: HBHERecHit.h:53

Member Data Documentation

float HBHERecHit::auxEnergy_
private

Definition at line 56 of file HBHERecHit.h.

Referenced by eaux(), and setAuxEnergy().

uint32_t HBHERecHit::auxHBHE_
private

Definition at line 57 of file HBHERecHit.h.

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

uint32_t HBHERecHit::auxPhase1_
private

Definition at line 58 of file HBHERecHit.h.

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

float HBHERecHit::chiSquared_
private

Definition at line 54 of file HBHERecHit.h.

Referenced by chi2(), and setChiSquared().

float HBHERecHit::rawEnergy_
private

Definition at line 55 of file HBHERecHit.h.

Referenced by eraw(), and setRawEnergy().

float HBHERecHit::timeFalling_
private

Definition at line 53 of file HBHERecHit.h.

Referenced by timeFalling().