Skip to content
Snippets Groups Projects
Verified Commit 6303719b authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Minor tweak

parent 64f1d93e
No related branches found
No related tags found
1 merge request!4Muonscanfit tuning
......@@ -553,7 +553,7 @@ function (m::Match1D)(hit1, hit2)
y = hit1.pos.y - hit2.pos.y
d = (x^2 + y^2)
if d <= 0.5 * m.roadwidth
if d <= m.roadwidth/2
return m.t <= d * KM3io.Constants.TAN_THETA_C_WATER * KM3io.Constants.C_INVERSE + m.tmaxextra
elseif d <= m.roadwidth
return m.t <= (m.roadwidth - d) * KM3io.Constants.TAN_THETA_C_WATER * KM3io.Constants.C_INVERSE + m.tmaxextra
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment