software:g4simulation:radiation_studies
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:g4simulation:radiation_studies [2020/07/06 10:48] – [Software Upgrade] himuser | software:g4simulation:radiation_studies [2022/03/14 14:53] (current) – himuser | ||
---|---|---|---|
Line 23: | Line 23: | ||
* PRIMASimulationConfig\\ new command '' | * PRIMASimulationConfig\\ new command '' | ||
+ | |||
+ | * PRIMASimInfo: | ||
* PRIMAPostDetConstruction in method Initialize(), | * PRIMAPostDetConstruction in method Initialize(), | ||
Line 29: | Line 31: | ||
* A step limit without restriction is defined for the vacuum in order to subside the 1 mm limit. | * A step limit without restriction is defined for the vacuum in order to subside the 1 mm limit. | ||
- | * PRIMAPhysicsList: | + | * PRIMAPhysicsList: |
- | * geant4/ | + | * PRIMARunAction |
- | * geant4/ | + | |
- | * geant4/ | + | |
- | * geant4/src/PRIMARunAction.cc | + | |
* PRIMAPrimaryGeneratorAction: | * PRIMAPrimaryGeneratorAction: | ||
+ | |||
+ | * primag4simLinkDef.h: | ||
+ | |||
+ | |||
== New files and classes == | == New files and classes == | ||
- | * geant4/ | + | * '' |
- | * geant4/ | + | * '' |
- | * geant4/ | + | * '' |
- | * | + | * '' |
+ | |||
+ | class PRIMARadStudiesMap: | ||
+ | public std:: | ||
+ | public TNamed | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * derives from '' | ||
+ | * 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 | ||
+ | * '' | ||
+ | * The '' | ||
+ | * finds the voxel corresponding to the mid point of the step | ||
+ | * calculates the energy deposit to density ratio | ||
+ | * creates/ | ||
+ | * A method '' | ||
==== 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 " | ||
+ | |||
+ | * Two support functions are defined and implemented in '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | * A new main is implemented in '' | ||
+ | |||
+ | |||
+ | |||
+ | == 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< | ||
+ | |||
+ | |||
+ | == Results == | ||
+ | In order to analyse the output map from the geant4 simulation the example macro '' | ||
+ | * 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). | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | == FLUKA simulations == | ||
+ | A guide to the FLUKA simulations using Flair can be found [[FLUKA# | ||
software/g4simulation/radiation_studies.1594025294.txt.gz · Last modified: (external edit)