Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (14 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/medical/DICOM/README

    r807 r1337  
    1818
    1919And it has been deeply reviewed by Pedro Arce in December 2007.
     20Very small changes by Stephane Chauvie in January 2008.
     21Stephane Chauvie, Oct 2009: changed Physics list; changes in DICOM read.
     22Stephane Chauvie and Andrea Armando; June 2010 adapted for reading  whatever DICOM file
    2023
    2124
     
    3033
    3134 - A standard Geant4 example GNUmakefile is provided           
    32  - Compile it with 'make'
     35 - Compile it with 'make'/'gmake'
    3336
    3437---> 3) Run the example:
    3538
    36  - To run the environment variable G4LEDATA needs to be set, pointing to the low energy data base, G4EMLOW4.3     
     39 - To run the environment variabmore le G4LEDATA needs to be set, pointing to the low energy data base
    3740
    3841 - batch mode:
     
    4144 - interactive mode:
    4245   - $G4INSTALL/bin/Linux-g++/dicom
    43    the file vis.mac is read in order to visualise the phantom with OpenGL
     46   the file vis.mac is read in order to visualise the phantom with OpenGL, DAWN or VRML
    4447
    4548--->4) Metadata:
    4649
    4750 The file Data.dat has the following information
    48   - A line with the compression value (used only to create the .g4dcm, not to read it)
     51  - A line with the compression value (used only to create the .g4dcm and .g4dcmb, not to read it)
    4952  - A line with the number of files
    5053  - A line for each file name (to these names it will be added the suffix .dcm to read the DICOM files in their original format, and the suffix .g4dcm to read the text files that contain the DICOM information where the Hounsfield numbers have been converted to material and densities)
     
    9497The file Colormap.dat defines the colour that will be assigned to the voxels of each material.
    9598
    96 --->8) DICOM text file format:
     99--->8) DICOM file formats:
    97100
    98101The DICOM files are converted to a simple text format. You may create your own file with the following format (see e.g. 14196616.g4dcm):
     
    109112As commented before the DICOM files (.dcm) are assumed to describe one Z slice per file, and therefore the GEANT4 text files (.g4dcm) created from them have also one unique Z slice per file. Nevertheless if you create your own .g4dcm file you may include as many Z slices as desired. In any case you have to respect the rule that the Z slices must be contiguous.
    110113
     114The same information is also used to fill a file in binary format, that contains the same information as the text format. Its name ends in .g4dcmb, instead of .g4dcm .
     115
    111116--->9) Choosing different parameterisation/navigation options:
    112117
    113118There are four possible ways in GEANT4 to treat the navigation in regular voxelised volumes:
    114119
    115 - The non-optimised way. It will be very slow because each time a track exits a voxel it has to loop to all other voxels to know which one it may enter
    116 - The optimisation with G4SmartVoxel: a 3D grid is built, so that the location of voxels is fast, but it requires a lot of memory
     120- The 1D optimisation . It will be very slow because each time a track exits a voxel it has to loop to all other voxels to know which one it may enter
     121- The 3D optimisation with G4SmartVoxel: a 3D grid is built, so that the location of voxels is fast, but it requires a lot of memory
    117122- Using G4NestedParameterisation. The search is done hierarchically in X, Y and Z. It is fast and does not require big memory
    118 - Using G4PhantomParameterisation/G4RegularNavigation: an special algorithm to navigate in regular voxelised geometries (see GEANT4 doc). This is the fastest way without any extra memory requirement (and it is the default in this example). It includes an option (default) to skip frontiers between voxels when they have the same material
     123- Using G4PhantomParameterisation/G4RegularNavigation: an special algorithm to navigate in regular voxelised geometries (see GEANT4 doc). This is the fastest way without any extra memory requirement (and it is the default in this example). It includes an option (default) to skip frontiers between voxels when they have the same material. When using this option at each step the energy is all deposited in the last voxel; for properly distribution of the dose (=energy/volume) the G4PSDoseDeposit_RegNav scorer can be used (see below)
    119124
    120125You can select amont the four options in the following way:
     
    138143- To use the third option you have to set the enviromental variable DICOM_NESTED_PARAM to 1
    139144
     145
     146--->10) Calculating dose in phantom voxels for regular navigation
     147
     148As mentioned above the regular navigation has the option to keip voxel frontiers when two voxels share the same material, what can make the CPU time several times smaller. But this option makes that all energy deposited is computed in the last voxel, instead of distributing it along the voxels traversed. To properly calculate the dose in each voxel the G4PSDoseDeposit_RegNav scorer can be used.
     149It takes into account the fact that,  when the particle travels through the voxels it looses energy and therefore the energy lost per length (dEdx) is bigger and also the effect of the multiple scattering is bigger.
     150The algorithm to make this correction is an iterative one, as the step length increase due multiple scattering (that converts the geometrical step length in what we will call the true step length) and the energy loss are correlated.
     151It works in the folloing way: first the total true step length is distributed among the voxels proportionally to their geometrical step length; with these values it is calculated one voxel after another the value of dEdx and then the value of the kinetic energy at the entrance of each voxel; with these values it is calculated the geometrical to true step corrections due to multiple scattering for each voxel; finally these new values are used to recalculate the energy lost in each voxel. It has been demonstrated for dose in a water phantom and in a real phantom that the two-step iteration described is enough to reproduce the dose calcualted when no skipping of voxel frontiers is done.
     152
     153This scorer is implemented in this examples if the regular navigation option is
     154chosen. It is triggered at the method RegularDicomDetectorConstruction::ConstructPatient() by the call
     155
     156SetScorer(voxel_logic);
     157
     158--->11) Output
     159dicom.out is produced running th macro file run.mac. It has 2 columns: the first is the number of
     160voxel (ordered in x,y,z) and the second the dose there deposited (in Gy)
     161It is produced, as an example, with a compression value of 32
Note: See TracChangeset for help on using the changeset viewer.