Rotation in Geant-4

Two main ways in the Geant-4 to apply the rotation: G4Rotation matrix and the HepRotation. Here the G4RotationMatrix.hh will be used.

Main reference

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  )