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/06 11:24] – [Software Upgrade] himusersoftware:g4simulation:radiation_studies [2022/03/14 14:53] (current) himuser
Line 54: Line 54:
   * ''PRIMARadDosisStudies.{hh,cc}''   * ''PRIMARadDosisStudies.{hh,cc}''
     * ''class PRIMARadSudiesParallelWorld''     * ''class PRIMARadSudiesParallelWorld''
-    * ''class PRIMARadStudiesSD'' +      * derives from ''G4VUserParallelWorld'' 
-  * ''rad_studies.C''+      * takes the pointer to the world volume of the parallel geometry and places a box of the dimensions of the hall inside of it 
 +      * instantiates a sensitive detector and assigns it to the full hall 
 +    * ''class PRIMARadStudiesSD''\\ sensitive detector (derives from ''G4VSensitiveDetector'') holding the radiation map (''PRIMARadStudiesMap'' object).  
 +      The ''ProcessHit'' functioning: 
 +        * finds the voxel corresponding to the mid point of the step 
 +        * calculates the energy deposit to density ratio  
 +        * creates/updates map entry for that voxels 
 +      * A method ''WriteTextFile'' is provided to dump the map into a ASCII file for testing purposesActivation and output file name are hard coded so far. Dynamical settings could be added to ''PRIMASimulationConfig'' if needed.
  
  
  
 ==== First example ==== ==== First example ====
 +In the example a geometry containing only the target, the vacuum volume and parts of the beam pipe downstream of the scattering chamber is defined. The radiation dose is scored over the full hall subdivided in voxels of 1 cm side length.
 +
 +== Geometry ==
 +  * Two new materials (TGeoMedium) have been defined:
 +    * Tantalum for the target
 +    * Iron for the octagonal pipe. The density of the pure iron "Armco-Eisen" has been used.
 +
 +  * Two support functions are defined and implemented in ''geometry/PRIMABeamPipe.{hh,cc}''
 +    * ''TGeoVolume* ConstructVacuumVolume()''\\ defines the vacuum volume, i.e. inner scattering chamber and inner beam pipe, as a single ''TGeoVolume'' from a composite shape. This is important to ensure that the beam electrons inside the vacuum can travel until the end of the hall without unwanted material layers.
 +    * ''TGeoVolumeAssembly* ConstructBeamPipe()''\\ places the vacuum volume, the aluminium flange at the target chamber exit, and a simplified "octagonal" pipe (defined as a cone) inside a ''TGeoVolumeAssembly''
 +
 +  * A new main is implemented in ''geometry/build_beam_pipe.cxx'' for generating the root file with the geometry, containing the assembly described above and the tantalum target inside the hall.
 +
 +
 +
 +== 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 ==
 +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.1594027462.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki