Skip to content
Snippets Groups Projects
Commit 8cea11e5 authored by Cyril Lenain's avatar Cyril Lenain :surfer_tone3:
Browse files

Correcting the double Rand.Shoot in G4DETransport and add commented option for Minos

parent b4e2746d
No related branches found
No related tags found
No related merge requests found
Pipeline #45611 passed
......@@ -160,8 +160,10 @@ G4DETransport::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
d_drift = step_length+d_long;
}
G4ThreeVector trans(G4RandGauss::shoot(0,d_trans),0,0);
G4ThreeVector trans(d_trans,0,0);
/* G4ThreeVector trans(G4RandGauss::shoot(0,d_trans),0,0); */
trans.rotateY(twopi*G4UniformRand());
/* trans.rotateZ(twopi*G4UniformRand()); // Change for Minos */
G4ThreeVector d_Pos = (d_drift)*driftDir+trans;
// Should be equal to delta length
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment