-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
control maximum segment length #14
Comments
You can see here on page 63 / figure 4.20 how this modifies the geant step size For module 0, I used 0.001 1mm to make sure that the steps are always about 1mm for muons with an energy less than ~300MeV I looked at 5mm, 1mm, 0.1mm, and 0.01mm, and honestly didn't see much of a difference between 1mm and 0.1mm. At 5mm and 0.01mm, the dQ/dx width visibly decreases, so I would say that you need to set it somewhere between these two bounds. That said, we do get about a 10% smaller width of the dQ/dx peak in larndsim than what we see in module 0 data at the 1mm step size. |
I wanted to add to this discussion an alternative option to control the step size. It allows for a firm upper limit on the segment size in edep-sim, which can eliminate, if we want, the O(cm) segment sizes that we've been seeing.
These are parsed from the GDML in this script
Making hitlength very small to ensure no combining. I first tested this configuration with low energy electrons in module0 (because it was the easiest and quickest for me to do) where I tried 0.1 mm and 0.01 mm for step limit (note that the electron track lengths are O(1 mm) ) and with the hitLength parameter above. I get a strict upper bound now on the segment lengths of 0.1 mm and 0.01 mm respectively. With the hitLength set to default (2 mm) and no step limit, I get segment lengths up to 1 mm. Here’s an example with some small 2x2 spill samples I made. I plotted the edep-sim segments within the active LAr only, not including the other segment detectors since I only applied StepLimit and hitLength to the active LAr and not the other segment detectors. Avg segments per event in active LAr with No StepLimit / Default hitlength: ~160 So it looks like this is a suitable option for limiting the step size. We should consider then how small of step sizes we really need. An important consideration is how it affects file sizes and requirements on computing resources. Additionally we should consider what benefits we would gain, if any, w.r.t data-MC comparisons by reducing the step size. |
@cuddandr 's plot of segment lengths shows we have some pretty long hit segments inside the 2x2.
We should put in something into https://github.com/DUNE/2x2_sim/blob/main/run-edep-sim/macros/2x2_beam.mac like:
@peter-madigan has studied different settings in the past and should be able to advise us on what was used to get good data/mc agreement out of module0,1.
The text was updated successfully, but these errors were encountered: