Requirements around depicting dose rainbow colours in egs_view #1348
-
|
In the past I have had great success depicting colour dose maps for EGS_XYZGEOMETRY structures in egs_view using the 3ddose functionality. I have noticed though that the colour range doesn't seem to autonormalize to the range of doses in the input file, I have had to present doses in the region of e-13 or e-14 or so to see the full range of colours. 3ddose files with doses less than these tend to be represented as several shades of blue. I am using egs_chamber in the 2025 release. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Are there large uncertainties in the dose? Sometimes a single region with a large uncertainty can result a single hot spot voxel, that is then reported as the dose maximum and used for normalization. Scaling all the doses will then also scale that single hot spot proportionately, thus not solving the issue. For your reference, here's the bit of code in egs++/view/viewcontrol.cpp that controls the normalization: If you have qt5 installed and can compile egs_view, you could consider adding some debugging lines, or zeroing the first maximum you find and searching again for the second largest, etc. Alternatively, try using VICTORIA: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.




Thanks for the explanation. The INF dose values are of course because vacuum has zero mass, so there's a division by zero happening to convert the energy deposited to dose. For a quick fix, just do a search replace of "inf" in your 3ddose file and replace it with 0. I will consider adding a guard against infinite dose into egs_view, though we should also likely adjust the dose output to always output zero in vacuum regions.