-
Notifications
You must be signed in to change notification settings - Fork 13
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
remove overwriting of input parameters in TVSurface::CalcXingPointWith #7
base: master
Are you sure you want to change the base?
Conversation
Hi @danieljeans, I agree overwriting arguments seems a bit strange. A minor concern that I have here, is that the default value for KalTest/src/geomlib/TVSurface.h Line 44 in 45a72f3
Adapting that to the previously hardcoded value of For |
Hi @danieljeans, I checked where this shows up throughout the stack. As you can see in the overview below there are a few cases, where the value of
|
if(!hel.IsInB() || !TBField::IsUsingUniformBfield()) return TVSurface::CalcXingPointWith(hel, xx, phi, mode, eps); |
KalTest/src/kaltracklib/TKalDetCradle.cxx
Line 263 in 45a72f3
if (static_cast<TVSurface *>(At(ito))->CalcXingPointWith(hel, xx, fid, mode, eps)) { // if we have a crossing point at this surface, note di specifies if we are moving forwards or backwards |
KalTest/src/kaltracklib/TKalDetCradle.cxx
Line 404 in 45a72f3
dynamic_cast<TVSurface *>(At(ito))->CalcXingPointWith(hel, xx, fid, mode); |
KalTest/src/kaltracklib/TKalDetCradle.cxx
Line 414 in 45a72f3
dynamic_cast<TVSurface *>(At(ito))->CalcXingPointWith(rk, rkxx, step, mode); |
TCutCone
that inherits from TVSurface
)mode != 0
explicitly set at calling site
- https://github.com/iLCSoft/KalDet/blob/a667b1799f185e3ed201eaec5d40ce9e685d95e5/gen/EXEventGen.cxx#L117
- https://github.com/iLCSoft/MarlinTrk/blob/c53d868979ef6db26077746ce264633819ffcf4f/src/MarlinDDKalTest.cc#L400 (set in line 382, to either
+1
or-1
)
mode == 0
at calling site
KalTest/src/kaltracklib/TKalDetCradle.cxx
Line 220 in 45a72f3
sfp->CalcXingPointWith(hel, xto, fito, 0, eps); - https://github.com/iLCSoft/DDKalTest/blob/81e946b08c3d244c762714e707b640dae0b8152d/src/DDPlanarMeasLayer.cc#L272
- https://github.com/iLCSoft/KalDet/blob/a667b1799f185e3ed201eaec5d40ce9e685d95e5/ild/common/ILDConeMeasLayer.h#L75
- https://github.com/iLCSoft/KalDet/blob/a667b1799f185e3ed201eaec5d40ce9e685d95e5/ild/common/ILDRotatedTrapMeaslayer.h#L75
calling the "no mode" version (i.e. mode == 0
by definition)
KalTest/src/kaltracklib/TKalTrackSite.cxx
Line 109 in 45a72f3
return ms.CalcXingPointWith(*hel,xx,phi,eps); KalTest/src/kaltracklib/TKalTrackSite.cxx
Line 112 in 45a72f3
return ms.CalcXingPointWith(*hel,xx,phi); - https://github.com/iLCSoft/MarlinTrk/blob/c53d868979ef6db26077746ce264633819ffcf4f/src/MarlinDDKalTestTrack.cc#L485
changed default eps to 1e-5 which should preserve current behaviour. |
@tmadlener thanks for checking where "mode" is used. |
after some more checks, Keisuke recommends to remove the "mode=0" line. |
OK. In that case I would leave this out of the current patch release to let that move forward. We can then make another one once we have a solution for this.
I agree. I am not sure if there is someone who routinely makes them at the moment. In principle the necessary scripts should all be somewhere. I will try to find out. |
BEGINRELEASENOTES
ENDRELEASENOTES