Message: Modifying geometry between runs Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Modifying geometry between runs 

Forum: Geometry
Date: 27 Jun, 2018
From: Lara Mason <Lara Mason>

Dear experts,

I am trying to move a source between runs. I have tried to replicate the methodology used in example B5 where the arm angle is rotated between runs. I have attached my code (BrachyDetectorConstructionGammaMed.cc) and the corresponding example B5 code here, as well as the macro I'm using. To start, I have just defined a simple function BrachyDetectorConstructionGammaMed::MoveSourceX(G4double x) to move one piece of my geometry (physical_steel_shell) between runs (I'll expand this to all the pieces later). I'm not getting errors, but I'm just getting the message "Detector has not yet been constructed." whenever I try to run the simulation. This means, I guess, that the function can't find the physical volume in question in order to move it. This is my issue - why can't it find the volume? What am I missing here, and how do I fix this?

Thank you very much in advance for your help

Lara

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/04.24-58851-e_GammaMedSourceMacro.mac
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/04.24-15486-orConstructionGammaMed.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/04.24-9766-B5DetectorConstruction.cc

 Add Message Add Message
to: "Modifying geometry between runs"

 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 ]