 |
Belle II Software
release-05-01-25
|
12 #ifndef VXD_SIMULATION_ELECTRONDEPOSIT_H
13 #define VXD_SIMULATION_ELECTRONDEPOSIT_H
61 const unsigned int intfrac = std::round(std::max(0.f, fraction) *
c_MaxFraction);
62 const unsigned int intelec = std::round(std::max(0.f, electrons));
79 operator unsigned int()
const {
return m_packed; }
87 #endif // VXD_SIMULATION_ELECTRONDEPOSIT_H
VXDElectronDeposit(float fraction, float electrons)
create a new instance from a fraction along the path and a number of electrons.
unsigned int m_packed
packed representation of the fraction and electron deposition
float getFraction() const
get the fraction along the path
@ c_MaxElectrons
Maximum number of electrons allowed.
Packed class to represent energy deposit along a path in electrons.
@ c_TotalBits
Total number of bits needed for the packed structure.
unsigned int getPacked() const
get the packed value
Abstract base class for different kinds of events.
@ c_ElectronBits
Number of bits to encode the number of electrons.
EBits
Enum storing the bit informations for the packed information.
@ c_MaxFraction
Maximum integer value allowed for the fraction part.
@ c_FractionBits
Number of bits to encode the fraction along the path.
VXDElectronDeposit(unsigned int packed)
Create a new instance from a packed value.
unsigned int getElectrons() const
get the number of deposited electrons