Difference between revisions of "Enabling LUT Davis Model"

From Wiki OpenGATE
Jump to: navigation, search
(Manually Modifying Geant4)
(Manually Modifying Geant4)
Line 4: Line 4:
 
In order to use the Davis LUT model Geant4 has to be extended. This documentation provides detailed step-by-step compiling instructions.   
 
In order to use the Davis LUT model Geant4 has to be extended. This documentation provides detailed step-by-step compiling instructions.   
 
   
 
   
# Follow compiling instructions here: [http://wiki.opengatecollaboration.org/index.php?title=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  5 source files + 18 LUTs to download here: ----------------  
 
# replace header files in your local Geant4 directory  
 
# replace header files in your local Geant4 directory  

Revision as of 11:02, 17 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: Compilation_Instructions_V8.0#Geant4 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 …/yourGEANT4Directory/source/materials/include
    replace the "G4SurfaceProperty.hh" file with the provided file
    replace the "G4OpticalSurface.hh" file with the provided file
    go to …/yourGEANT4Directory/source/materials/src
    replace the "G4OpticalSurface.cc" file with the provided file
    go to …/yourGEANT4Directory/source/processes/optical/include
    replace the "G4OpBoundaryProcess.hh" file with the provided file
    go to …/yourGEANT4Directory/source/processes/optical/src
    replace the "G4OpBoundaryProcess.cc" file with the provided file
  4. open "G4OpticalSurface.hh" in …/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: Installation GATE V8.0 In the ccmake process set Optical Flag AND Davis Flag to 1. (Run provided example to validate installation for LUT Davis model and compare to provided output file.)