Skip to content

Commit 6308b32

Browse files
authored
use dplparameter to convert energy to electrons
1 parent 7a05c38 commit 6308b32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Digitizer.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ int Digitizer::energyToCharge(float energyLoss) const
267267
{
268268
// Convert energy loss (GeV) to number of electrons
269269
// 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);
270+
// energyLoss is in GeV, energyToNElectrons is electrons per GeV
271+
return static_cast<int>(energyLoss * energyToNElectrons);
272272
}
273273

274274
//_______________________________________________________________________

0 commit comments

Comments
 (0)