Message: Re: Changing geometry rotation between runs with user commands Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Changing geometry rotation between runs with user commands 

Forum: Geometry
Re: Question Changing geometry rotation between runs with user commands
Date: 26 Jan, 2017
From: Michael H. Kelsey <Michael H. Kelsey>

On Wed, 25 Jan 2017 21:21:27 GMT, aodhanmci wrote:
> I am working on the 'Hadron Therapy' example and have successfully
> created commands to change the position of my detectors. It is also
> required to change the rotation of these detectors with User Commands
> between runs. I am having problems creating a newRotationMatrix for the
> Physical Volume (and subsequent G4Transform3D) as creating new values
> can only be done in terms of doubles or vectors from commands (I have
> used the DetectorConstructionMessenger.cc, .hh, and
> DetectorConstruction.cc, .hh)

You could make use of the existing G4UIcmdWith3Vector command, and have the user input the three Euler angles. Or you can write your own UI command to take whatever is the most appropriate input for your job to define a rotation matrix.

  -- Michael Kelsey

 Add Message Add Message
to: "Re: Changing geometry rotation between runs with user commands"

 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 ]