-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from JulienBert/mypatch2
Update the MergedVolumeActor example (with LFS)
- Loading branch information
Showing
32 changed files
with
190 additions
and
873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## MergedVolumeActor | ||
|
||
Simple example of the use of the MergedVolumeActor. The aim of this actor is to merge both voxelized and analytical geometry. In this example four analytical boxes are inserted into a voxelized water box. Something like 180s is needed to simulated this example. | ||
|
||
# Authors | ||
|
||
* Julien Bert | ||
* Didier Benoit |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ObjectType = Image | ||
NDims = 3 | ||
BinaryData = True | ||
BinaryDataByteOrderMSB = False | ||
CompressedData = False | ||
TransformMatrix = 1 0 0 0 1 0 0 0 1 | ||
Offset = 0 0 0 | ||
CenterOfRotation = 0 0 0 | ||
ElementSpacing = 10 10 10 | ||
DimSize = 9 9 9 | ||
AnatomicalOrientation = ??? | ||
ElementType = MET_UCHAR | ||
ElementDataFile = phantom_test_without_box.raw |
Git LFS file not shown
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
#VISUALIZATION | ||
##/vis/disable | ||
|
||
#INITIALIZE MATERIALS | ||
/gate/geometry/setMaterialDatabase data/GateMaterials.db | ||
|
||
#WORLD | ||
/gate/world/geometry/setXLength 200.0 mm | ||
/gate/world/geometry/setYLength 200.0 mm | ||
/gate/world/geometry/setZLength 200.0 mm | ||
/gate/world/setMaterial Air | ||
/gate/world/vis/setVisible 1 | ||
|
||
#PHANTOM | ||
|
||
#GLOBAL VOLUME | ||
/gate/world/daughters/name GlobalVol | ||
/gate/world/daughters/insert box | ||
/gate/GlobalVol/geometry/setXLength 90. mm | ||
/gate/GlobalVol/geometry/setYLength 90. mm | ||
/gate/GlobalVol/geometry/setZLength 90. mm | ||
/gate/GlobalVol/placement/setTranslation 0.0 0.0 0.0 mm | ||
/gate/GlobalVol/placement/setRotationAxis 1 0 0 | ||
/gate/GlobalVol/placement/setRotationAngle 0 deg | ||
/gate/GlobalVol/setMaterial Air | ||
/gate/GlobalVol/vis/setColor cyan | ||
/gate/GlobalVol/describe | ||
|
||
#VOXELIZED PHANTOM | ||
/gate/GlobalVol/daughters/name PhantomTest | ||
/gate/GlobalVol/daughters/insert ImageRegularParametrisedVolume | ||
/gate/PhantomTest/geometry/setImage data/phantom_test_without_box.mhd | ||
/gate/PhantomTest/geometry/setRangeToMaterialFile data/range.dat | ||
/gate/PhantomTest/placement/setTranslation 0. 0. 0. mm | ||
/gate/PhantomTest/placement/setRotationAxis 1 0 0 | ||
/gate/PhantomTest/placement/setRotationAngle 0 deg | ||
/gate/PhantomTest/setSkipEqualMaterials 0 | ||
/gate/PhantomTest/describe | ||
|
||
#ANALYTICAL PHANTOM | ||
/gate/GlobalVol/daughters/name BoxAir | ||
/gate/GlobalVol/daughters/insert box | ||
/gate/BoxAir/geometry/setXLength 10.0 mm | ||
/gate/BoxAir/geometry/setYLength 10.0 mm | ||
/gate/BoxAir/geometry/setZLength 10.0 mm | ||
/gate/BoxAir/placement/setTranslation -30.0 0.0 0.0 mm | ||
/gate/BoxAir/placement/setRotationAxis 1 0 0 | ||
/gate/BoxAir/placement/setRotationAngle 0 deg | ||
/gate/BoxAir/setMaterial Air | ||
/gate/BoxAir/vis/setColor cyan | ||
/gate/BoxAir/describe | ||
|
||
/gate/GlobalVol/daughters/name BoxLung | ||
/gate/GlobalVol/daughters/insert box | ||
/gate/BoxLung/geometry/setXLength 10.0 mm | ||
/gate/BoxLung/geometry/setYLength 10.0 mm | ||
/gate/BoxLung/geometry/setZLength 10.0 mm | ||
/gate/BoxLung/placement/setTranslation -10.0 0.0 0.0 mm | ||
/gate/BoxLung/placement/setRotationAxis 1 0 0 | ||
/gate/BoxLung/placement/setRotationAngle 0 deg | ||
/gate/BoxLung/setMaterial Lung | ||
/gate/BoxLung/vis/setColor red | ||
/gate/BoxLung/describe | ||
|
||
/gate/GlobalVol/daughters/name BoxCartilage | ||
/gate/GlobalVol/daughters/insert box | ||
/gate/BoxCartilage/geometry/setXLength 10.0 mm | ||
/gate/BoxCartilage/geometry/setYLength 10.0 mm | ||
/gate/BoxCartilage/geometry/setZLength 10.0 mm | ||
/gate/BoxCartilage/placement/setTranslation 10.0 0.0 0.0 mm | ||
/gate/BoxCartilage/placement/setRotationAxis 1 0 0 | ||
/gate/BoxCartilage/placement/setRotationAngle 0 deg | ||
/gate/BoxCartilage/setMaterial Cartilage | ||
/gate/BoxCartilage/vis/setColor white | ||
/gate/BoxCartilage/describe | ||
|
||
/gate/GlobalVol/daughters/name BoxSkull | ||
/gate/GlobalVol/daughters/insert box | ||
/gate/BoxSkull/geometry/setXLength 10.0 mm | ||
/gate/BoxSkull/geometry/setYLength 10.0 mm | ||
/gate/BoxSkull/geometry/setZLength 10.0 mm | ||
/gate/BoxSkull/placement/setTranslation 30.0 0.0 0.0 mm | ||
/gate/BoxSkull/placement/setRotationAxis 1 0 0 | ||
/gate/BoxSkull/placement/setRotationAngle 0 deg | ||
/gate/BoxSkull/setMaterial Skull | ||
/gate/BoxSkull/vis/setColor magenta | ||
/gate/BoxSkull/describe | ||
|
||
#PHYSICS | ||
/gate/physics/addPhysicsList emstandard_opt3 | ||
|
||
/gate/physics/setEMin 990 eV | ||
/gate/physics/setEMax 250 MeV | ||
|
||
/gate/physics/setDEDXBinning 300 | ||
/gate/physics/setLambdaBinning 300 | ||
|
||
/gate/physics/Electron/SetCutInRegion world 10 m | ||
/gate/physics/Gamma/SetCutInRegion world 10 m | ||
|
||
#ACTOR(S) | ||
/gate/actor/addActor MergedVolumeActor mergedVol | ||
/gate/actor/mergedVol/attachTo GlobalVol | ||
/gate/actor/mergedVol/volumeToMerge BoxAir,BoxLung,BoxCartilage,BoxSkull | ||
|
||
/gate/actor/addActor DoseActor doseMeasurement | ||
/gate/actor/doseMeasurement/attachTo GlobalVol | ||
/gate/actor/doseMeasurement/save output/merged_volume.mhd | ||
/gate/actor/doseMeasurement/stepHitType random | ||
/gate/actor/doseMeasurement/setPosition 0 0 0 mm | ||
/gate/actor/doseMeasurement/setVoxelSize 0.5 0.5 0.5 mm | ||
/gate/actor/doseMeasurement/setSize 90.5 90.5 90.5 mm | ||
/gate/actor/doseMeasurement/enableEdep true | ||
/gate/actor/doseMeasurement/enableUncertaintyEdep true | ||
/gate/actor/doseMeasurement/enableSquaredEdep true | ||
/gate/actor/doseMeasurement/enableDose false | ||
/gate/actor/doseMeasurement/enableUncertaintyDose false | ||
/gate/actor/doseMeasurement/enableSquaredDose false | ||
/gate/actor/doseMeasurement/enableNumberOfHits true | ||
|
||
#INITIALIZATION | ||
/gate/run/initialize | ||
|
||
#SOURCE | ||
/gate/source/addSource PointSrc gps | ||
/gate/source/PointSrc/gps/particle gamma | ||
/gate/source/PointSrc/setForcedUnstableFlag false | ||
/gate/source/PointSrc/gps/ene/type Mono | ||
/gate/source/PointSrc/gps/ene/mono 100 keV | ||
/gate/source/PointSrc/gps/type Point | ||
/gate/source/PointSrc/gps/pos/centre -55. 0. 0. mm | ||
/gate/source/PointSrc/gps/pos/rot1 0 0 1 | ||
/gate/source/PointSrc/gps/pos/rot2 0 1 0 | ||
/gate/source/PointSrc/gps/ang/rot1 0 0 1 | ||
/gate/source/PointSrc/gps/ang/rot2 0 1 0 | ||
/gate/source/PointSrc/gps/ang/mintheta 0.0 deg | ||
/gate/source/PointSrc/gps/ang/maxtheta 0.0 deg | ||
/gate/source/PointSrc/gps/ang/minphi 0.0 deg | ||
/gate/source/PointSrc/gps/ang/maxphi 360.0 deg | ||
/gate/source/PointSrc/gps/ang/type iso | ||
/gate/source/PointSrc/dump 1 | ||
|
||
#VERBOSE | ||
/gate/verbose Physic 0 | ||
/gate/verbose Cuts 0 | ||
/gate/verbose Actor 0 | ||
/gate/verbose SD 0 | ||
/gate/verbose Actions 0 | ||
/gate/verbose Step 0 | ||
/gate/verbose Error 0 | ||
/gate/verbose Warning 0 | ||
/gate/verbose Output 0 | ||
/gate/verbose Core 0 | ||
/gate/verbose Volume 0 | ||
|
||
/run/verbose 1 | ||
/event/verbose 0 | ||
/tracking/verbose 0 | ||
|
||
#RANDOM | ||
/gate/random/setEngineName MersenneTwister | ||
/gate/random/setEngineSeed 123456789 | ||
|
||
#START | ||
/gate/application/setTotalNumberOfPrimaries 2000000 | ||
/gate/application/start |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
misc/hybrid_volume_navigator/MergedVolume/dose_measurement_actor.mac
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
misc/hybrid_volume_navigator/MergedVolume/global_volume.mac
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
misc/hybrid_volume_navigator/MergedVolume/merged_volume_actor.mac
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
misc/hybrid_volume_navigator/MergedVolume/phantom_test_without_box.h33
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
misc/hybrid_volume_navigator/MergedVolume/phantom_test_without_box.i33
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
misc/hybrid_volume_navigator/MergedVolume/phantom_test_without_box.mac
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
misc/hybrid_volume_navigator/MergedVolume/point_source.mac
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.