CMS 3D CMS Logo

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

#include <ZDCRecHit.h>

Inheritance diagram for ZDCRecHit:
CaloRecHit

Public Types

typedef HcalZDCDetId key_type
 

Public Member Functions

constexpr float chargeWeightedTime () const
 
constexpr float energySOIp1 () const
 
HcalZDCDetId id () const
 get the id More...
 
float lowGainEnergy () const
 
constexpr float ratioSOIp1 () const
 
constexpr void setChargeWeightedTime (const float time)
 
constexpr void setEnergySOIp1 (const float en)
 
constexpr void setRatioSOIp1 (const float ratio)
 
constexpr void setTDCtime (const float time)
 
constexpr float TDCtime () const
 
 ZDCRecHit ()
 
 ZDCRecHit (const HcalZDCDetId &id, float energy, float time, float lowGainEnergy)
 
- 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 chargeWeightedTime_
 
float energySOIp1_
 
float lowGainEnergy_
 
float ratioSOIp1_
 
float TDCtime_
 

Detailed Description

Author
J. Mans - Minnesota

Definition at line 11 of file ZDCRecHit.h.

Member Typedef Documentation

◆ key_type

Definition at line 13 of file ZDCRecHit.h.

Constructor & Destructor Documentation

◆ ZDCRecHit() [1/2]

ZDCRecHit::ZDCRecHit ( )

Definition at line 3 of file ZDCRecHit.cc.

float lowGainEnergy_
Definition: ZDCRecHit.h:33
constexpr CaloRecHit()
Definition: CaloRecHit.h:25
float energySOIp1_
Definition: ZDCRecHit.h:37
float ratioSOIp1_
Definition: ZDCRecHit.h:38
float chargeWeightedTime_
Definition: ZDCRecHit.h:40
float TDCtime_
Definition: ZDCRecHit.h:39

◆ ZDCRecHit() [2/2]

ZDCRecHit::ZDCRecHit ( const HcalZDCDetId id,
float  energy,
float  time,
float  lowGainEnergy 
)

Definition at line 6 of file ZDCRecHit.cc.

7  : CaloRecHit(id, energy, time),
9  energySOIp1_(-99),
10  ratioSOIp1_(-99),
11  TDCtime_(-99),
12  chargeWeightedTime_(-99) {}
float lowGainEnergy_
Definition: ZDCRecHit.h:33
constexpr CaloRecHit()
Definition: CaloRecHit.h:25
constexpr float energy() const
Definition: CaloRecHit.h:29
float lowGainEnergy() const
Definition: ZDCRecHit.h:20
float energySOIp1_
Definition: ZDCRecHit.h:37
float ratioSOIp1_
Definition: ZDCRecHit.h:38
constexpr float time() const
Definition: CaloRecHit.h:31
float chargeWeightedTime_
Definition: ZDCRecHit.h:40
float TDCtime_
Definition: ZDCRecHit.h:39

Member Function Documentation

◆ chargeWeightedTime()

constexpr float ZDCRecHit::chargeWeightedTime ( ) const
inline

Definition at line 33 of file ZDCRecHit.h.

33 { return chargeWeightedTime_; };
float chargeWeightedTime_
Definition: ZDCRecHit.h:40

◆ energySOIp1()

constexpr float ZDCRecHit::energySOIp1 ( ) const
inline

Definition at line 23 of file ZDCRecHit.h.

References energySOIp1_.

23 { return energySOIp1_; }; // energy of Slice of Interest plus 1
float energySOIp1_
Definition: ZDCRecHit.h:37

◆ id()

HcalZDCDetId ZDCRecHit::id ( ) const
inline

get the id

Definition at line 18 of file ZDCRecHit.h.

References CaloRecHit::detid().

Referenced by reco::CentralityProducer::produce().

18 { return HcalZDCDetId(detid()); }
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33

◆ lowGainEnergy()

float ZDCRecHit::lowGainEnergy ( ) const
inline

Definition at line 20 of file ZDCRecHit.h.

References lowGainEnergy_.

Referenced by reco::CentralityProducer::produce().

20 { return lowGainEnergy_; };
float lowGainEnergy_
Definition: ZDCRecHit.h:33

◆ ratioSOIp1()

constexpr float ZDCRecHit::ratioSOIp1 ( ) const
inline

Definition at line 25 of file ZDCRecHit.h.

References ratioSOIp1_.

25  {
26  return ratioSOIp1_;
27  }; // ratio of Energy of (Slice of Interest)/ (Slice of Interest plus 1)
float ratioSOIp1_
Definition: ZDCRecHit.h:38

◆ setChargeWeightedTime()

constexpr void ZDCRecHit::setChargeWeightedTime ( const float  time)
inline

Definition at line 30 of file ZDCRecHit.h.

References chargeWeightedTime_, and CaloRecHit::time().

30  {
32  }; // time of activity determined by charged weighted average
constexpr float time() const
Definition: CaloRecHit.h:31
float chargeWeightedTime_
Definition: ZDCRecHit.h:40

◆ setEnergySOIp1()

constexpr void ZDCRecHit::setEnergySOIp1 ( const float  en)
inline

Definition at line 22 of file ZDCRecHit.h.

References energySOIp1_.

Referenced by ZdcSimpleRecAlgo_Run3::reco0().

22 { energySOIp1_ = en; };
float energySOIp1_
Definition: ZDCRecHit.h:37

◆ setRatioSOIp1()

constexpr void ZDCRecHit::setRatioSOIp1 ( const float  ratio)
inline

Definition at line 24 of file ZDCRecHit.h.

References ratioSOIp1_.

24 { ratioSOIp1_ = ratio; };
float ratioSOIp1_
Definition: ZDCRecHit.h:38

◆ setTDCtime()

constexpr void ZDCRecHit::setTDCtime ( const float  time)
inline

Definition at line 28 of file ZDCRecHit.h.

References TDCtime_, and CaloRecHit::time().

28 { TDCtime_ = time; };
constexpr float time() const
Definition: CaloRecHit.h:31
float TDCtime_
Definition: ZDCRecHit.h:39

◆ TDCtime()

constexpr float ZDCRecHit::TDCtime ( ) const
inline

Definition at line 29 of file ZDCRecHit.h.

References TDCtime_.

29 { return TDCtime_; };
float TDCtime_
Definition: ZDCRecHit.h:39

Member Data Documentation

◆ chargeWeightedTime_

float ZDCRecHit::chargeWeightedTime_
private

Definition at line 40 of file ZDCRecHit.h.

Referenced by setChargeWeightedTime().

◆ energySOIp1_

float ZDCRecHit::energySOIp1_
private

Definition at line 37 of file ZDCRecHit.h.

Referenced by energySOIp1(), and setEnergySOIp1().

◆ lowGainEnergy_

float ZDCRecHit::lowGainEnergy_
private

Definition at line 33 of file ZDCRecHit.h.

Referenced by lowGainEnergy().

◆ ratioSOIp1_

float ZDCRecHit::ratioSOIp1_
private

Definition at line 38 of file ZDCRecHit.h.

Referenced by ratioSOIp1(), and setRatioSOIp1().

◆ TDCtime_

float ZDCRecHit::TDCtime_
private

Definition at line 39 of file ZDCRecHit.h.

Referenced by setTDCtime(), and TDCtime().