This is an old revision of the document!


Rotation in Geant-4

In the Geometry.cc, the target is set by

SetPhysVol(name,solid,material,fPVolWorld,G4ThreeVector(0,ypos,zpos)) // line 915

add the rotation matrix as the paramter

#include "G4RotationMatrix.hh"

Geometry::SetPhysVol( const G4String& name, G4VSolid* solid,
		      G4Material* material, G4VPhysicalVolume* mtrVol,
		      const G4ThreeVector& transVec, G4RotationMatrix* rotm  )