18.1.2012 Kamil Sedlak

Changes needed for the upgrade of Geant to version 4.9.5.
This commit is contained in:
2012-01-18 14:57:59 +00:00
parent 1b6ebb06c0
commit ba31e1f8a1
3 changed files with 39 additions and 40 deletions

View File

@@ -285,7 +285,7 @@ void musrPrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
// with an angle of acos(hat{z} dot hat{n}) - dot product
// i.e. R is a rotation around (-n_y, n_x, 0) with angle acos(n_z).
if (xDirection == 0 & yDirection == 0) {
if ((xDirection == 0) && (yDirection == 0)) {
// Rotation does not work for beam direction along z.
pz = zDirection * pz;
// No change to the beam spot...