[Gate-users] Visualisation, Geometry and root problems.

Michal Knap michal.knap at gmail.com
Wed Oct 22 21:05:59 CEST 2014


Hi all,
 I'm using Gate V7.0, geant4.9.6.p03, root 5.34/18.
1) I'm trying to simulate a minigammacamera with point source and what i'm
trying to get is something like this
[image: Obraz w treści 1]

But all i get is this:
[image: Obraz w treści 2]
Can anybody tell me why i can't see crystal, collimator, and so on?


2)I have a problem with root as well.
I attached a prtscns with Gate response.
Can anybody tell me how to fix it?
I would like to get an energy, iontime, posZ,posY,posX graphs.
I'll be very gratefull for any help.
I attached also my .mac file in .txt.


Best Regards,
Michał Knap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minigamma1pointonsourcecollimator.png
Type: image/png
Size: 8551 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0016.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:53:18.png
Type: image/png
Size: 85952 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0017.png>
-------------- next part --------------
#	C O N F I G U R A T I O N
/control/alias ViewPointThetaPhi  		0 90
/control/alias VisuOnOff  				novisu
/control/alias SourceActivity  			1000. Bq
/control/alias CameraType  				camera_Tc
/control/alias x_placement  				20.0
/control/alias CollimatorMaterial  		Lead
/control/alias CrystalMaterial  			NaI
/control/alias PhantomMaterial  			Plexiglass
/control/alias PhanRmax  				50.0 mm
/control/alias PhanRmin  				49.5 mm
/control/alias SourceVolMaterial  		Plexiglass
/control/alias SourceType  				sources_gamma_3
/control/alias SourceEnergy  			140 keV
/control/alias RootFileName  			Gamma_Camera_111

#	V I S U A L I S A T I O N
#
/vis/open 					OGLSX
/vis/viewer/reset
/vis/drawView 				-45 -45
#/vis/viewer/zoom 				4
/vis/viewer/set/style 			surface
/vis/drawVolume
/vis/viewer/flush
/tracking/storeTrajectory 		1
/vis/scene/add/trajectories
/vis/scene/endOfEventAction 	accumulate 20
/vis/viewer/update
#/gate/geometry/enableAutoUpdate


#/Lista Materiałów
/gate/geometry/setMaterialDatabase GateMaterials.db

# W O R L D

/gate/world/geometry/setXLength 100 cm
/gate/world/geometry/setYLength 100 cm
/gate/world/geometry/setZLength 100 cm
/gate/world/setMaterial Vacuum

#	C A M E R A

#	Type: SPECThead

/gate/world/daughters/name 						SPECThead
/gate/world/daughters/insert 					box
/gate/SPECThead/geometry/setXLength  			7. cm
/gate/SPECThead/geometry/setYLength 			7. cm
/gate/SPECThead/geometry/setZLength 			7. cm
/gate/SPECThead/placement/setTranslation 		20. 0. 0. cm
/gate/SPECThead/setMaterial 					Air
/gate/SPECThead/vis/setColor 					white
/gate/SPECThead/vis/forceWireframe

# Shielding
# Create the shielding volume

/gate/SPECThead/daughters/name 			shielding
/gate/SPECThead/daughters/insert 			box
/gate/shielding/geometry/setXLength  		7. cm
/gate/shielding/geometry/setYLength 			7. cm
/gate/shielding/geometry/setZLength 			7. cm
/gate/shielding/placement/setTranslation  		0. 0. 0. cm
/gate/shielding/setMaterial 					Lead
/gate/shielding/vis/setColor 					red
/gate/shielding/vis/forceWireframe
#/gate/shielding/vis/forceSolid

# Collimator - specifications usefull for Tc-99m
# Create a full volume defining the shape of the collimator

/gate/SPECThead/daughters/name 				collimator
/gate/SPECThead/daughters/insert 				box
/gate/collimator/geometry/setXLength 			3. cm
/gate/collimator/geometry/setYLength 			3. cm
/gate/collimator/geometry/setZLength 			3. cm
/gate/collimator/placement/setTranslation  			-2. 0. 0. cm
/gate/collimator/setMaterial 						Lead
/gate/collimator/vis/setColor 					blue
/gate/collimator/vis/forceWireframe
/gate/collimator/vis/forceSolid

# Insert the first hole of air in the collimator
/gate/collimator/daughters/name 					hole
/gate/collimator/daughters/insert 					box
/gate/hole/geometry/setXLength 					3. cm
/gate/hole/geometry/setYLength 					.1 cm
/gate/hole/geometry/setZLength 					.1 cm
/gate/hole/setMaterial 							Air

# Repeat the hole in an array

/gate/hole/repeaters/insert 					        cubicArray
/gate/hole/cubicArray/setRepeatNumberX 			1
/gate/hole/cubicArray/setRepeatNumberY 			29
/gate/hole/cubicArray/setRepeatNumberZ 			29
/gate/hole/cubicArray/setRepeatVector 			0. 0.1  0.1 cm

# CRYSTAL
# Create the crystal volume

/gate/SPECThead/daughters/name 				crystal
/gate/SPECThead/daughters/insert				box
/gate/crystal/geometry/setXLength 				1. cm
/gate/crystal/geometry/setYLength  				3. cm
/gate/crystal/geometry/setZLength  				3. cm
/gate/crystal/placement/setTranslation  		        0. 0. 0. cm
/gate/crystal/setMaterial 						NaI
/gate/crystal/vis/setColor 						yellow
/gate/crystal/vis/forceWireframe
/gate/crystal/vis/forceSolid

# BACK-COMPARTMENT
# Create the back-compartment volume

/gate/SPECThead/daughters/name 				compartment
/gate/SPECThead/daughters/insert 				box
/gate/compartment/geometry/setXLength 			2.5 cm
/gate/compartment/geometry/setYLength 			3. cm
/gate/compartment/geometry/setZLength 			3. cm
/gate/compartment/placement/setTranslation   		1.75 0. 0. cm
/gate/compartment/setMaterial 					Glass
/gate/compartment/vis/setColor 					grey
/gate/compartment/vis/forceWireframe
/gate/compartment/vis/forceSolid

# TABLE
# Create the table volume

/gate/world/daughters/name 						table
/gate/world/daughters/insert 					box
/gate/table/geometry/setXLength 				0.6 cm
/gate/table/geometry/setYLength 				8. cm
/gate/table/geometry/setZLength 					34. cm
/gate/table/placement/setRotationAxis 			0 0 1
/gate/table/placement/setRotationAngle 			90 deg
/gate/table/placement/setTranslation 				0. -5.3 0. cm
/gate/table/setMaterial 							Glass
/gate/table/vis/setColor 						grey
/gate/table/vis/forceWireframe
/gate/table/vis/forceSolid

#/Podłącznie kryształu do systemu
/gate/crystal/attachCrystalSD
/gate/SPECThead/attachPhantomSD
/gate/shielding/attachPhantomSD
/gate/collimator/attachPhantomSD
/gate/hole/attachPhantomSD
/gate/compartment/attachPhantomSD
#/gate/Phantom/attachPhantomSD

#/gate/systems/SPECThead/crystal/attach 			crystal
#/gate/crystal/attachCrystalSD
#/gate/table/attachPhantomSD
#/gate/compartment/attachPhantomSD
#/gate/shielding/attachPhantomSD
#/gate/SPECThead/attachPhantomSD
#/gate/collimator/attachPhantomSD
#/gate/systems/SPECThead/describe

# 	P H A N T O M

/gate/world/daughters/name 					Phantom
/gate/world/daughters/insert 				sphere
/gate/Phantom/geometry/setRmax 			0.1  mm
/gate/Phantom/geometry/setRmin 			0. mm
/gate/Phantom/placement/setTranslation 		16.4 0. 0. cm
/gate/Phantom/setMaterial 					Water
/gate/Phantom/vis/setColor 					blue
/gate/Phantom/vis/forceWireframe
#/gate/Phantom/vis/forceSolid
/gate/Phantom/vis/setVisible				1
/gate/Phantom/attachPhantomSD

# SOURCE
# Create the source volume/phantom

/gate/world/daughters/name 					source_vol
/gate/world/daughters/insert 				cylinder
/gate/source_vol/geometry/setRmax 			10.0  mm
/gate/source_vol/geometry/setRmin 			0.0 mm
/gate/source_vol/geometry/setHeight 			150.0 mm
/gate/source_vol/placement/setTranslation 		0. 0. 0. mm
/gate/source_vol/setMaterial 				Aluminium
/gate/source_vol/vis/setColor 				white
#/gate/source_vol/vis/forceWireframe
/gate/source_vol/vis/forceSolid
/gate/source_vol/vis/setVisible				1

/gate/Phantom/attachPhantomSD
/gate/source_vol/attachPhantomSD


# 	P H Y S I C S
# Opis zjawisk fizycznych
# procesy elektromagnetyczne
#/gate/physics/gamma/selectRayleigh 		lowenergy
#/gate/physics/gamma/selectPhotoelectric 	standard
#/gate/physics/gamma/selectCompton 		standard

# Elektrony wtórne
#/gate/physics/setElectronCut 	1. m
#
# Promieniowanie X
#
#/gate/physics/setXRayCut 		1. GeV
#/gate/physics/setDeltaRayCut 	1. GeV


/gate/physics/addProcess PhotoElectric
/gate/physics/processes/PhotoElectric/setModel StandardModel

/gate/physics/addProcess Compton
/gate/physics/processes/Compton/setModel StandardModel

/gate/physics/addProcess RayleighScattering
/gate/physics/processes/RayleighScattering/setModel PenelopeModel

/gate/physics/addProcess ElectronIonisation
/gate/physics/processes/ElectronIonisation/setModel StandardModel e-
/gate/physics/processes/ElectronIonisation/setModel StandardModel e+

/gate/physics/addProcess Bremsstrahlung
/gate/physics/processes/Bremsstrahlung/setModel StandardModel e-
/gate/physics/processes/Bremsstrahlung/setModel StandardModel e+

/gate/physics/addProcess PositronAnnihilation

/gate/physics/addProcess MultipleScattering e+
/gate/physics/addProcess MultipleScattering e-

#for ion source
/gate/physics/addProcess RadioactiveDecay

/gate/physics/processList Enabled
/gate/physics/processList Initialized

#
#       C U T S
#
/gate/physics/Gamma/SetCutInRegion      	SPECThead 0.1 cm
/gate/physics/Electron/SetCutInRegion   	SPECThead 1.0 cm

#	I N I T I A L I Z A T I O N

/gate/run/initialize
#/geometry/test/recursive_test

# 	D I G I T I Z E R

/gate/digitizer/Singles/insert adder

# Rozmycie energii

/gate/digitizer/Singles/insert 						blurring
/gate/digitizer/Singles/blurring/setResolution 			0.15
/gate/digitizer/Singles/blurring/setEnergyOfReference 	140. keV

/gate/digitizer/Singles/insert 						spblurring
/gate/digitizer/Singles/spblurring/setSpresolution 		2.0 mm
/gate/digitizer/Singles/spblurring/verbose 				0

# Okno energetyczne
/gate/digitizer/Singles/insert 						thresholder
/gate/digitizer/Singles/thresholder/setThreshold 		50. keV
/gate/digitizer/Singles/insert 						upholder
/gate/digitizer/Singles/upholder/setUphold 				250. keV
/gate/random/setEngineName JamesRandom
/gate/random/setEngineSeed default
/gate/random/verbose 1
#	S O U R C E
# Definicja zrodla promieniotworczego Gamma - Technet

/gate/source/addSource 					GammaSource
/gate/source/GammaSource/gps/type			Point
#/gate/source/GammaSource/gps/shape		Cylinder
#/gate/source/GammaSource/gps/radius		4 cm
/gate/source/GammaSource/gps/centre 		16.4 0. 0. cm
/gate/source/GammaSource/gps/particle		gamma
/gate/source/GammaSource/gps/energy 		140. keV
#/gate/source/GammaSource/gps/energytype 	Mono
#/gate/source/GammaSource/gps/monoenergy 	{SourceEnergy}
/gate/source/GammaSource/setActivity 		100000. Bq
/gate/source/GammaSource/gps/angtype		iso
/gate/source/GammaSource/gps/mintheta		0. deg
/gate/source/GammaSource/gps/maxtheta 		180. deg
/gate/source/GammaSource/gps/minphi 		0. deg
/gate/source/GammaSource/gps/maxphi 		360. deg

/gate/source/list
/gate/source/GammaSource/gps/confine 		source_vol

/gate/output/verbose	2
/run/verbose			0
/event/verbose 		0
/tracking/verbose 		0

#	O U T P U T
# Okreslenie nazwy pliku wynikowego ROOT

/gate/output/root/enable
/gate/output/root/setFileName 					nowyplik
/gate/output/root/setRootHitFlag					1
/gate/output/root/setRootSinglesAdderFlag 		1
/gate/output/root/setRootSinglesBlurringFlag 		1 
/gate/output/root/setRootSinglesSpblurringFlag 	1
/gate/output/root/setRootSinglesThresholderFlag 	1
/gate/output/root/setRootSinglesUpholderFlag 		1

/gate/output/ascii/disable

# Projekcja Interfile
/gate/output/projection/pixelSizeX 				0.904 mm
/gate/output/projection/pixelSizeY 				0.904 mm
/gate/output/projection/pixelNumberX 			128
/gate/output/projection/pixelNumberY 			128
/gate/output/projection/projectionPlane 			YZ

#   R A N D O M
# JamesRandom Ranlux64 MersenneTwister
/gate/random/setEngineName 		Ranlux64
#/gate/random/setEngineSeed 		default
/gate/random/setEngineSeed 		auto
#/gate/random/setEngineSeed 		123456789
#/gate/random/resetEngineFrom 		fileName
/gate/random/verbose 				1

#	S T A R T 
/gate/application/setTimeSlice		37.5	s
/gate/application/setTimeStart		0.	s
/gate/application/setTimeStop		150. s

# Rozpoczecie akwizycji
/gate/application/startDAQ

exit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:38:24.png
Type: image/png
Size: 205809 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0018.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:39:05.png
Type: image/png
Size: 171681 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0019.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:39:23.png
Type: image/png
Size: 146370 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0020.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:39:32.png
Type: image/png
Size: 172184 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0021.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:48:07.png
Type: image/png
Size: 172918 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0022.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:48:19.png
Type: image/png
Size: 211679 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0023.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:48:43.png
Type: image/png
Size: 165733 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0024.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:51:56.png
Type: image/png
Size: 274839 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0025.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:52:06.png
Type: image/png
Size: 329645 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0026.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:52:28.png
Type: image/png
Size: 318367 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0027.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:52:43.png
Type: image/png
Size: 268142 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0028.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:52:49.png
Type: image/png
Size: 300310 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0029.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:52:56.png
Type: image/png
Size: 321055 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0030.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zrzut ekranu z 2014-10-22 16:53:03.png
Type: image/png
Size: 282200 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141022/f0abcdaa/attachment-0031.png>


More information about the Gate-users mailing list