Computed tomography
From UCL HEP PBT Wiki
m |
m |
||
Line 62: | Line 62: | ||
</pre> | </pre> | ||
- | ; | + | ; Before running the code you can chose among several voxelisation algorithms. |
+ | |||
+ | * Using '''G4RegularNavigation''' | ||
+ | |||
+ | Special algorithm to navigate in regular voxelised geometries. It includes an option to skip frontiers between voxels when they have the same material i.e. replacing group of voxels with a smaller number of larger voxels. '''G4RegularNavigation''' is the default version of this tutorial. To run with the default settings simply run macro run.mac. | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | ./DICOM run.mac | ||
+ | </pre> | ||
+ | |||
+ | * Using '''G4NestedParameterization''' | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | export DICOM_NESTED_PARAM=1 | ||
+ | </pre> | ||
+ | |||
+ | You can check if you set this environment variable correctly by typing in the command line | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | env | ||
+ | </pre> | ||
+ | |||
+ | Then, run the code: | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | ./DICOM run.mac | ||
+ | </pre> | ||
+ | |||
+ | * Usinging '''G4VoxelNavigation''' | ||
+ | |||
+ | Using smart voxels required a huge amount of memory. At /home/username/DICOMFolder/DICOM_source/src/DicomRegularDetectorConstruction.cc set | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | patient_phys->SetRegularStructureId(0); | ||
+ | </pre> | ||
+ | |||
+ | and run the code: | ||
<pre style="color: #800000; background-color: #dcdcdc"> | <pre style="color: #800000; background-color: #dcdcdc"> |