Enabling LUT Davis Model

From Wiki OpenGATE
Revision as of 12:03, 17 March 2017 by Albertine.Dubois (Talk | contribs) (Manually Modifying Geant4)

Jump to: navigation, search

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 …/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.)