User Tools

Site Tools


software:g4simulation:radiation_studies

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:g4simulation:radiation_studies [2020/07/07 10:50] – [First example] himusersoftware:g4simulation:radiation_studies [2022/03/14 13:53] (current) himuser
Line 58: Line 58:
       * instantiates a sensitive detector and assigns it to the full hall       * instantiates a sensitive detector and assigns it to the full hall
     * ''class PRIMARadStudiesSD''\\ sensitive detector (derives from ''G4VSensitiveDetector'') holding the radiation map (''PRIMARadStudiesMap'' object).      * ''class PRIMARadStudiesSD''\\ sensitive detector (derives from ''G4VSensitiveDetector'') holding the radiation map (''PRIMARadStudiesMap'' object). 
-      * The ''ProcessHit'' functioning is:+      * The ''ProcessHit'' functioning:
         * finds the voxel corresponding to the mid point of the step         * finds the voxel corresponding to the mid point of the step
         * calculates the energy deposit to density ratio          * calculates the energy deposit to density ratio 
         * creates/updates map entry for that voxels         * creates/updates map entry for that voxels
       * A method ''WriteTextFile'' is provided to dump the map into a ASCII file for testing purposes. Activation and output file name are hard coded so far. Dynamical settings could be added to ''PRIMASimulationConfig'' if needed.       * A method ''WriteTextFile'' is provided to dump the map into a ASCII file for testing purposes. Activation and output file name are hard coded so far. Dynamical settings could be added to ''PRIMASimulationConfig'' if needed.
- 
-  * ''rootmacros/rad_studies.C''\\ example macro for reading and handling the radiation map. The example loops over the map entries and makes a 2d map for the region around the yz-plane (vertical plane containing the beam direction). 
  
  
Line 84: Line 82:
  
  
-== Settings ==+== Geant4 Settings == 
 +  * Geometry: as just described. 
 +  * Primary generator: the particle gun shooting electrons  
 +    * from the beam axis upstream of the target 
 +    * in the beam direction (positive z direction) 
 +    * with an energy of 1.5 GeV 
 +  * Simulated events: 10<sup>6</sup>
  
  
 == Results == == Results ==
 +In order to analyse the output map from the geant4 simulation the example macro ''rootmacros/rad_studies.C'' has been introduced. It shows:
 +  * how to read and handle the radiation map,
 +  * how to loop over the map entries, and
 +  * make a 2d map for the region around the yz-plane (vertical plane containing the beam direction).
 +
 +{{ :software:g4simulation:rad_map_x0_example.png?nolink&500 |}}
 +
 +
 +== FLUKA simulations ==
 +A guide to the FLUKA simulations using Flair can be found [[FLUKA#Simulations|here]]
 +
software/g4simulation/radiation_studies.1594119050.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki