Skip to content

Commit 69dbb7a

Browse files
committed
[14_0_X SIM] Replace deprecated method
1 parent 23517a3 commit 69dbb7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SimG4Core/Application/src/LowEnergyFastSimModel.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ LowEnergyFastSimModel::LowEnergyFastSimModel(const G4String& name, G4Region* reg
2828
fPositron = G4Positron::Positron();
2929
fMaterial = nullptr;
3030
auto table = G4Material::GetMaterialTable();
31-
for (auto& mat : *table) {
31+
for (auto const & mat : *table) {
3232
G4String nam = mat->GetName();
3333
size_t n = nam.size();
3434
if (n > 4) {
@@ -72,7 +72,7 @@ G4bool LowEnergyFastSimModel::ModelTrigger(const G4FastTrack& fastTrack) {
7272

7373
void LowEnergyFastSimModel::DoIt(const G4FastTrack& fastTrack, G4FastStep& fastStep) {
7474
fastStep.KillPrimaryTrack();
75-
fastStep.SetPrimaryTrackPathLength(0.0);
75+
fastStep.ProposePrimaryTrackPathLength(0.0);
7676
auto track = fastTrack.GetPrimaryTrack();
7777
G4double energy = track->GetKineticEnergy() * scaleFactor;
7878

0 commit comments

Comments
 (0)