18.1.2012 Kamil Sedlak
Changes needed for the upgrade of Geant to version 4.9.5.
This commit is contained in:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user