[Gate-users] source definition for a Derenzo-like resolution phantom created with quadrant repeaters
Simon Stute
gate.stute at gmail.com
Thu Sep 17 11:22:20 CEST 2009
Hi Sebnem,
The message "Illegal application state blablabla" is send by Geant4 while a
command can not be executed in the current G4State.
Before the command /run/initialize, you HAVE TO define geometry stuff and
physics stuff.
After this command, and only after it, you can define the sources, else it
rises an "illegal state of application".
And you CAN NOT define geometry stuff after this command.
Hope it solves your problem !
Cheers,
Simon
On Wed, Sep 16, 2009 at 6:12 PM, sebnem erturk <sebnem.erturk at gmail.com>wrote:
> Hi All,
>
> Is there anybody know how to define the sources for a Derenzo-like
> resolution phantom created with quadrant repeaters by using GATE?
>
> I used macro below, but it gives error messages like
>
> volume you originally specified in /vis/scene/add/.
> ***** Illegal application state </gate/source/addSource rods1> *****
>
> ***** Batch is interupted!! *****
>
> What is wrong with this?
>
> How should I define the sources in a correct way ?
>
> Thank you for any kind of help and information in advance.
>
> Regards,
>
>
> #Mini_Derenzo Phantom
>
> #-------------- next part --------------
> /gate/world/daughters/name Derenzo
> /gate/world/daughters/insert cylinder
> /gate/Derenzo/geometry/setRmax 3.6 cm
> /gate/Derenzo/geometry/setHeight 2. cm
> /gate/Derenzo/setMaterial Air
> /gate/Derenzo/vis/forceWireframe
>
> /vis/viewer/set/viewpointThetaPhi 0 0 deg
>
> /gate/Derenzo/daughters/name rods1
> /gate/Derenzo/daughters/insert cylinder
> /gate/rods1/geometry/setRmax 0.75 mm
> /gate/rods1/geometry/setHeight 2. cm
> /gate/Derenzo/setMaterial Air
> /gate/rods1/placement/setTranslation 7.5 0. 0. mm
> /gate/rods1/placement/setPhiOfTranslation 30. deg
> /gate/rods1/repeaters/insert quadrant
> /gate/rods1/quadrant/setCopySpacing 3. mm
> /gate/rods1/quadrant/setOrientation 30. deg
> /gate/rods1/quadrant/setLineNumber 10
> /gate/rods1/quadrant/setMaxRange 26.5 mm
>
> /gate/Derenzo/daughters/name rods2
> /gate/Derenzo/daughters/insert cylinder
> /gate/rods2/geometry/setRmax 1.0 mm
> /gate/rods2/geometry/setHeight 2. cm
> /gate/Derenzo/setMaterial Air
> /gate/rods2/placement/setTranslation 7.5 0. 0. mm
> /gate/rods2/placement/setPhiOfTranslation 90. deg
> /gate/rods2/repeaters/insert quadrant
> /gate/rods2/quadrant/setCopySpacing 4. mm
> /gate/rods2/quadrant/setOrientation 90. deg
> /gate/rods2/quadrant/setLineNumber 8
> /gate/rods2/quadrant/setMaxRange 26.5 mm
>
> /gate/Derenzo/daughters/name rods3
> /gate/Derenzo/daughters/insert cylinder
> /gate/rods3/geometry/setRmax 1.25 mm
> /gate/rods3/geometry/setHeight 2. cm
> /gate/Derenzo/setMaterial Air
> /gate/rods3/placement/setTranslation 7.5 0. 0. mm
> /gate/rods3/placement/setPhiOfTranslation 150. deg
> /gate/rods3/repeaters/insert quadrant
> /gate/rods3/quadrant/setCopySpacing 5. mm
> /gate/rods3/quadrant/setOrientation 150. deg
> /gate/rods3/quadrant/setLineNumber 6
> #/gate/rods3/quadrant/setMaxRange 26.5 mm
>
> /gate/Derenzo/daughters/name rods4
> /gate/Derenzo/daughters/insert cylinder
> /gate/rods4/geometry/setRmax 1.5 mm
> /gate/rods4/geometry/setHeight 2. cm
> /gate/Derenzo/setMaterial Air
> /gate/rods4/placement/setTranslation 7.5 0. 0. mm
> /gate/rods4/placement/setPhiOfTranslation 210. deg
> /gate/rods4/repeaters/insert quadrant
> /gate/rods4/quadrant/setCopySpacing 6. mm
> /gate/rods4/quadrant/setOrientation 210. deg
> /gate/rods4/quadrant/setLineNumber 5
> /gate/rods4/quadrant/setMaxRange 26.5 mm
>
> /gate/Derenzo/daughters/name rods5
> /gate/Derenzo/daughters/insert cylinder
> /gate/rods5/geometry/setRmax 1.75 mm
> /gate/rods5/geometry/setHeight 2. cm
> /gate/Derenzo/setMaterial Air
> /gate/rods5/placement/setTranslation 7.5 0. 0. mm
> /gate/rods5/placement/setPhiOfTranslation 270. deg
> /gate/rods5/repeaters/insert quadrant
> /gate/rods5/quadrant/setCopySpacing 7. mm
> /gate/rods5/quadrant/setOrientation 270. deg
> /gate/rods5/quadrant/setLineNumber 5
> /gate/rods5/quadrant/setMaxRange 26.5 mm
>
> /gate/Derenzo/daughters/name rods6
> /gate/Derenzo/daughters/insert cylinder
> /gate/rods6/geometry/setRmax 2. mm
> /gate/rods6/geometry/setHeight 2. cm
> /gate/Derenzo/setMaterial Air
> /gate/rods6/placement/setTranslation 7.5 0. 0. mm
> /gate/rods6/placement/setPhiOfTranslation 330. deg
> /gate/rods6/repeaters/insert quadrant
> /gate/rods6/quadrant/setCopySpacing 8. mm
> /gate/rods6/quadrant/setOrientation 330. deg
> /gate/rods6/quadrant/setLineNumber 4
> #/gate/rods6/quadrant/setMaxRange 23. mm
>
> #-------------- next part --------------
>
> /gate/source/addSource rods1
> /gate/source/rods1/setActivity 50000000. Bq
> /gate/source/rods1/gps/particle gamma
> /gate/source/rods1/gps/energy 140 keV
> /gate/source/rods1/gps/angtype iso
> /gate/source/rods1/gps/type Volume
> /gate/source/rods1/gps/shape Cylinder
> /gate/source/rods1/gps/radius 3.6 cm
> /gate/source/rods1/gps/halfz 1.0 cm
> /gate/source/rods1/gps/centre 0. 0. 0. mm
> /gate/source/rods1/gps/confine rods1_P
> /gate/source/rods1/gps/mintheta 79. deg
> /gate/source/rods1/gps/maxtheta 101. deg
> /gate/source/rods1/gps/minphi 0 deg
> /gate/source/rods1/gps/maxphi 360. deg
> /gate/source/list
>
> /gate/source/addSource rods2
> /gate/source/rods2/setActivity 50000000. Bq
> /gate/source/rods2/gps/particle gamma
> /gate/source/rods2/gps/energy 140 keV
> /gate/source/rods2/gps/angtype iso
> /gate/source/rods2/gps/type Volume
> /gate/source/rods2/gps/shape Cylinder
> /gate/source/rods2/gps/radius 3.6 cm
> /gate/source/rods2/gps/halfz 1.0 cm
> /gate/source/rods2/gps/centre 0. 0. 0. mm
> /gate/source/rods2/gps/confine rods2_P
> /gate/source/rods2/gps/mintheta 79. deg
> /gate/source/rods2/gps/maxtheta 101. deg
> /gate/source/rods2/gps/minphi 0 deg
> /gate/source/rods2/gps/maxphi 360. deg
> /gate/source/list
>
> /gate/source/addSource rods3
> /gate/source/rods3/setActivity 50000000. Bq
> /gate/source/rods3/gps/particle gamma
> /gate/source/rods3/gps/energy 140 keV
> /gate/source/rods3/gps/angtype iso
> /gate/source/rods3/gps/type Volume
> /gate/source/rods3/gps/shape Cylinder
> /gate/source/rods3/gps/radius 3.6 cm
> /gate/source/rods3/gps/halfz 1.0 cm
> /gate/source/rods3/gps/centre 0. 0. 0. mm
> /gate/source/rods3/gps/confine rods3_P
> /gate/source/rods3/gps/mintheta 79. deg
> /gate/source/rods3/gps/maxtheta 101. deg
> /gate/source/rods3/gps/minphi 0 deg
> /gate/source/rods3/gps/maxphi 360. deg
> /gate/source/list
>
> /gate/source/addSource rods4
> /gate/source/rods4/setActivity 50000000. Bq
> /gate/source/rods4/gps/particle gamma
> /gate/source/rods4/gps/energy 140 keV
> /gate/source/rods4/gps/angtype iso
> /gate/source/rods4/gps/type Volume
> /gate/source/rods4/gps/shape Cylinder
> /gate/source/rods4/gps/radius 3.6 cm
> /gate/source/rods4/gps/halfz 1.0 cm
> /gate/source/rods4/gps/centre 0. 0. 0. mm
> /gate/source/rods4/gps/confine rods4_P
> /gate/source/rods4/gps/mintheta 79. deg
> /gate/source/rods4/gps/maxtheta 101. deg
> /gate/source/rods4/gps/minphi 0 deg
> /gate/source/rods4/gps/maxphi 360. deg
> /gate/source/list
>
>
> /gate/source/addSource rods5
> /gate/source/rods5/setActivity 50000000. Bq
> /gate/source/rods5/gps/particle gamma
> /gate/source/rods5/gps/energy 140 keV
> /gate/source/rods5/gps/angtype iso
> /gate/source/rods5/gps/type Volume
> /gate/source/rods5/gps/shape Cylinder
> /gate/source/rods5/gps/radius 3.6 cm
> /gate/source/rods5/gps/halfz 1.0 cm
> /gate/source/rods5/gps/centre 0. 0. 0. mm
> /gate/source/rods5/gps/confine rods5_P
> /gate/source/rods5/gps/mintheta 79. deg
> /gate/source/rods5/gps/maxtheta 101. deg
> /gate/source/rods5/gps/minphi 0 deg
> /gate/source/rods5/gps/maxphi 360. deg
> /gate/source/list
>
> /gate/source/addSource rods6
> /gate/source/rods6/setActivity 50000000. Bq
> /gate/source/rods6/gps/particle gamma
> /gate/source/rods6/gps/energy 140 keV
> /gate/source/rods6/gps/angtype iso
> /gate/source/rods6/gps/type Volume
> /gate/source/rods6/gps/shape Cylinder
> /gate/source/rods6/gps/radius 3.6 cm
> /gate/source/rods6/gps/halfz 1.0 cm
> /gate/source/rods6/gps/centre 0. 0. 0. mm
> /gate/source/rods6/gps/confine rods6_P
> /gate/source/rods6/gps/mintheta 79. deg
> /gate/source/rods6/gps/maxtheta 101. deg
> /gate/source/rods6/gps/minphi 0 deg
> /gate/source/rods6/gps/maxphi 360. deg
> /gate/source/list
>
> /vis/viewer/zoom 2
>
>
>
> --
> Sebnem Erturk
> University of Pisa
> Applied Physics Dpt.
> Largo Pontecorvo
> 56127 Pisa-Italy
> Office :0039 050 2214346
> Mobile :0039 345 3331440
> http://www.df.unipi.it/~fiig/ <http://www.df.unipi.it/%7Efiig/>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.healthgrid.org
> http://lists.healthgrid.org/mailman/listinfo/gate-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20090917/5b5a95a0/attachment.htm>
More information about the Gate-users
mailing list