Skip to content

Commit 66709b8

Browse files
karabowidennisklein
authored andcommitted
chore(fastsim) Replace deprecated Geant4 APIs
Geant4 (geant4-11.2) deprecates functions G4FastStep::Set...(), and advices usage of corresponding G4FastStep::Propose...(). Replaced them all in FairFastSimModel.cxx.
1 parent b8cd9d3 commit 66709b8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

fairroot/fastsim/FairFastSimModel.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ void FairFastSimModel::DoIt(const G4FastTrack& fastTrack, G4FastStep& fastStep)
126126
G4double len = 0.;
127127
G4double ek = particle->Ek() * 1000.;
128128

129-
fastStep.SetPrimaryTrackFinalPosition(pos, false);
130-
fastStep.SetPrimaryTrackFinalTime(tim);
131-
fastStep.SetPrimaryTrackFinalProperTime(tim);
132-
fastStep.SetPrimaryTrackFinalMomentum(mom, false);
133-
fastStep.SetPrimaryTrackFinalKineticEnergy(ek);
129+
fastStep.ProposePrimaryTrackFinalPosition(pos, false);
130+
fastStep.ProposePrimaryTrackFinalTime(tim);
131+
fastStep.ProposePrimaryTrackFinalProperTime(tim);
132+
fastStep.ProposePrimaryTrackFinalMomentumDirection(mom, false);
133+
fastStep.ProposePrimaryTrackFinalKineticEnergy(ek);
134134
// fastStep.SetPrimaryTrackFinalKineticEnergyAndDirection (G4double, const G4ThreeVector &, G4bool
135135
// localCoordinates=true);
136-
fastStep.SetPrimaryTrackFinalPolarization(pol, false);
137-
fastStep.SetPrimaryTrackPathLength(len);
136+
fastStep.ProposePrimaryTrackFinalPolarization(pol, false);
137+
fastStep.ProposePrimaryTrackPathLength(len);
138138

139139
if (FairTrajFilter::Instance()->IsAccepted(particle)) {
140140
FairTrajFilter::Instance()->GetCurrentTrk()->AddPoint(

0 commit comments

Comments
 (0)