We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a05c38 commit 6308b32Copy full SHA for 6308b32
1 file changed
Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Digitizer.cxx
@@ -267,8 +267,8 @@ int Digitizer::energyToCharge(float energyLoss) const
267
{
268
// Convert energy loss (GeV) to number of electrons
269
// Typical value: 3.6 eV per electron-hole pair in silicon
270
- // energyLoss is in GeV, mEnergyToCharge is GeV per electron
271
- return static_cast<int>(energyLoss / mEnergyToCharge);
+ // energyLoss is in GeV, energyToNElectrons is electrons per GeV
+ return static_cast<int>(energyLoss * energyToNElectrons);
272
}
273
274
//_______________________________________________________________________
0 commit comments