10#include <klm/dataobjects/KLMDigit.h>
13#include <framework/logging/Logger.h>
32 m_NGeneratedPhotoelectrons(0),
41 m_Subdetector(simHit->getSubdetector()),
42 m_Section(simHit->getSection()),
43 m_Sector(simHit->getSector()),
44 m_Layer(simHit->getLayer()),
45 m_Plane(simHit->getPlane()),
46 m_Strip(simHit->getStrip()),
51 m_Time(simHit->getTime() + simHit->getPropagationTime()),
52 m_EnergyDeposit(simHit->getEnergyDeposit()),
54 m_NGeneratedPhotoelectrons(0),
56 m_MCTime(simHit->getTime()),
63 m_Subdetector(simHit->getSubdetector()),
64 m_Section(simHit->getSection()),
65 m_Sector(simHit->getSector()),
66 m_Layer(simHit->getLayer()),
67 m_Plane(simHit->getPlane()),
73 m_Time(simHit->getTime() + simHit->getPropagationTime()),
74 m_EnergyDeposit(simHit->getEnergyDeposit()),
76 m_NGeneratedPhotoelectrons(0),
78 m_MCTime(simHit->getTime()),
113 B2FATAL(
"Function isPhiReadout() is called for EKLM digit.");
A common base for subdetector Digits.
EAppendStatus
Enum for return state of addBGDigit function.
@ c_DontAppend
do not append BG digit to digits
@ c_Append
append BG digit to digits
KLM digit (class representing a digitized hit in RPCs or scintillators).
void setMCTime(float time)
Set MC time.
void setNGeneratedPhotoelectrons(int nPhotoelectrons)
Set generated number of photoelectrons.
EAppendStatus addBGDigit(const DigitBase *bg) override
The pile-up method.
bool isGood() const
Whether hit could be used late (if it passed discriminator threshold)
float getTime() const
Get hit time.
int getNGeneratedPhotoelectrons() const
Get generated number of photoelectrons.
int m_Section
Number of section.
const KLMElementNumbers * m_ElementNumbers
Element numbers.
void setEnergyDeposit(float eDep)
Set energy deposit.
bool isPhiReadout() const
Whether BKLM digit is in phi or z plane.
unsigned int getUniqueChannelID() const override
Get unique channel identifier.
void setTime(float time)
Set hit time.
int m_Sector
Number of sector.
float getMCTime() const
Get MC time.
int m_Plane
Number of plane.
int m_Layer
Number of layer.
int m_Subdetector
ROOT streamer.
uint16_t getCharge() const
Get charge.
float getEnergyDeposit() const
Get energy deposit.
void setCharge(uint16_t charge)
Set charge.
int m_Strip
Number of strip.
KLMChannelNumber channelNumber(int subdetector, int section, int sector, int layer, int plane, int strip) const
Get channel number.
Abstract base class for different kinds of events.