|Message: Re: Changing geometry rotation between runs with user commands||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
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