Difference between revisions of "Enabling LUT Davis Model"

From Wiki OpenGATE
Jump to: navigation, search
(Manually Modifying Geant4)
(Manually Modifying Geant4)
Line 5: Line 5:
 
   
 
   
 
# Follow compiling instructions here: [[Compilation_Instructions_V8.0#Geant4 | Geant4 Installation]]  stop before running ccmake, proceed with step 2.
 
# Follow compiling instructions here: [[Compilation_Instructions_V8.0#Geant4 | Geant4 Installation]]  stop before running ccmake, proceed with step 2.
# Get the modified code and Look-up-Tables: 5 source files + 18 LUTs to download here: ----------------  
+
# Get the modified code and Look-up-Tables: [https://github.com/OpenGATE/GateContrib/tree/master/misc/ModifiedG4Classes 5 source files] + 18 LUTs to download here: ----------------  
 
# Replace header files in your local Geant4 directory  
 
# Replace header files in your local Geant4 directory  
 
#:: Go to /PATH_TO_yourGEANT4Directory/source/materials/include  
 
#:: Go to /PATH_TO_yourGEANT4Directory/source/materials/include  

Revision as of 14:02, 31 March 2017

Manually Modifying Geant4

(Necessary before Geant4 release Summer 2017)

In order to use the Davis LUT model Geant4 has to be extended. This documentation provides detailed step-by-step compiling instructions.

  1. Follow compiling instructions here: Geant4 Installation stop before running ccmake, proceed with step 2.
  2. Get the modified code and Look-up-Tables: 5 source files + 18 LUTs to download here: ----------------
  3. Replace header files in your local Geant4 directory
    Go to /PATH_TO_yourGEANT4Directory/source/materials/include
    Replace the "G4SurfaceProperty.hh" file with the provided file
    Replace the "G4OpticalSurface.hh" file with the provided file
    Go to /PATH_TO_yourGEANT4Directory/source/materials/src
    Replace the "G4OpticalSurface.cc" file with the provided file
    Go to /PATH_TO_yourGEANT4Directory/source/processes/optical/include
    Replace the "G4OpBoundaryProcess.hh" file with the provided file
    Go to /PATH_TO_yourGEANT4Directory/source/processes/optical/src
    Replace the "G4OpBoundaryProcess.cc" file with the provided file
  4. Open "G4OpticalSurface.hh" in /PATH_TO_yourGEANT4Directory/source/materials/include
    In line 270 set the path of the Davis_LUTs-folder that was downloaded in step 1
    G4String PathToLUT="/home/…/Davis_LUTs";
  5. Go on with ccmake process in of step 1. and finish as documented.
  6. To enable modifications of Geant4 in GATE: Follow compiling instructions: GATE V8.0 Installation
    In the ccmake process set CMake options GATE_USE_OPTICAL and GATE_USE_DAVIS to ON. (Run provided example to validate installation for LUT Davis model and compare to provided output file.)