Energy Deposition Histogram Boundary Effects

Issue #90 on hold
Laurie Nevay created an issue

The energy deposition histogram shows boundary effects under several particle types and physics lists. Around the boundary of similar material, greater energy is seen before the boundary and less afterwards.

Screen Shot 2015-10-01 at 15.25.34.png

Comments (9)

  1. Laurie Nevay reporter

    From the track information we use the pre and post step points. We typically assign the energy deposit to the post step point as this empirically gave the energy deposition histogram with the least artefacts. Obviously, some still remain depending on the length scale of the histogram bins, the ranges and energy of the particles.

    Geant4 does not explain clearly where the energy deposition should be attributed (ie which point, or the mean). After discussing with Jochem, we will always experience boundary effects when the histogram bin width is smaller than the typically step lengths involved. Therefore, if a very long track is found, we should split it and evenly divide the energy according to the histogram bin widths.

    Jochem will implement a new fill method in BDSHistogram to achieve this. Also, we identified a series of significant and easy optimisations for the histogram class that will be implemented.

  2. Laurie Nevay reporter

    Step length has been added to the precision output to allow easier debugging. This lead to a fix for user limits step length in the collimator base class.

    Screen Shot 2015-10-01 at 19.19.15.png

  3. Laurie Nevay reporter

    Long steps that could potentially appear to cross boundaries are fixed with user limits. Steps can't cross boundaries in Geant4 so it was long transverse steps. Still, this should be fixed in the collimators. This small issue fixed in commit #7808096.

    Screen Shot 2015-10-03 at 09.57.12.png

  4. Jochem Snuverink

    Range filling has been implemented, and the effect is much reduced but not gone. Shown is the Energy loss from the 250 GeV electron copper collimator example:

    Screen Shot 2015-10-03 at 22.15.22.png

  5. Laurie Nevay reporter

    4TeV Proton, em_standard physics into 1m closed collimator. Used precision output. Definitely some edge effect with s coordinate as can be seen from graphs - investigating.

    Screen Shot 2015-10-25 at 23.30.21.png

    Screen Shot 2015-10-25 at 23.30.13.png

  6. Laurie Nevay reporter

    Further investigations with:

    proton, 4TeV, 1m Cu x 2 one after the other with no gap, closed collimators with different ranges showed no correlation with range. 1mm, 1m, 10m, 100m, 10km were tried and no effect was seen. The 'old' (non-modular physics lists QGSP_BERT was used.

    There is a slight boundary effect with S and (global) Z coordinates. This was tested previously in detailed when this was developed and was as accurate as can be. With histogram bins not much smaller than the length of the object, these are not seen on average.

    sz_comparison.png

    sz_eloss_comparison_20bins.png

    sz_eloss_comparison_1000bins.png

    sz_eloss_comparison_1000bins_boundary.png

    sz_e_difference.png

    sz_energy.png

  7. Laurie Nevay reporter

    This is mostly solved. If you create histogram bins much narrower than the range cut lengths, you will inevitably start to see boundary effects by construction. The key is to have your range less than the histogram bin width.

    Additionally, the energy deposition is now attributed to a randomly chosen distance along the step with uniform probability. With sufficient statistics, this should give more accurate results.

    Furthermore, the new rootevent output format has histogram error bars correctly calculated (as opposed to the old root format).

  8. Log in to comment