Message: how to translate a G4RotationMatrix into the x' and y' for GeneralParticlesource Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question how to translate a G4RotationMatrix into the x' and y' for GeneralParticlesource 

Forum: Geometry
Date: 29 Mar, 2018
From: Ben Loer <Ben Loer>

Hello experts,

I'm trying to figure out how to use the transform of a physical volume to place a GeneralParticleSource volume. From the physical volume I get a G4RotationMatrix. Now the I need to call SPSPositionDistribution::SetPosRot1 and 2, which correspond to the x' and y' axes in the rotated coordinate system. Is there a simple way to extract the latter from the former?

Related to that, which of the G4VPhysicalVolume::Get*Rotation methods will give me the net total rotation of the solid into the global coordinate system?

Thanks, ~Ben

 Add Message Add Message
to: "how to translate a G4RotationMatrix into the x' and y' for GeneralParticlesource"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]