Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Detectors/TPC/base/include/TPCBase/ParameterGas.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ struct ParameterGas : public o2::conf::ConfigurableParamHelper<ParameterGas> {
float Pressure = 1013.25f; ///< Pressure [mbar]
float Temperature = 20.0f; ///< Temperature [°C]
float BetheBlochParam[5] = {0.820172e-1f, 9.94795f, 8.97292e-05f, 2.05873f, 1.65272f}; ///< Parametrization of Bethe-Bloch
int MaxElePerStep = 300; ///< maximum number of electron allowed per step, default is 300 ~10keV

O2ParamDef(ParameterGas, "TPCGasParam");
};
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/simulation/src/Detector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Bool_t Detector::ProcessHits(FairVolume* vol)
const double rndm = fMC->GetRandom()->Rndm();
const double eDep = TMath::Power((kMax - kMin) * rndm + kMin, oneOverAlpha_p1);
int nel_step = static_cast<int>(((eDep - eMin) / wIon) + 1);
nel_step = TMath::Min(nel_step, 300); // 300 electrons corresponds to 10 keV
nel_step = TMath::Min(nel_step, gasParam.MaxElePerStep); // 300 electrons corresponds to 10 keV
numberOfElectrons += nel_step;
}

Expand Down
Loading