Closed EinarElen closed 1 year ago
The docker PR isn't merged, but I've tested with the dev branch and TrigScint now compiles just fine without any issues :)
This PR does the following
ClassDef
macro has virtual functions even if we don't declare any. If you are deleting an object through a pointer to base, which ROOT does underneath the hood, and the destructor isn't virtual, we can run into some annoying (although most likely just leaks and occasional crashes) undefined behavior (see 225b9b38d2062ac2495d0c543046ec3d30edbd8d)Right, i was thinking the test/PR validation would be sufficient but if there's no checks for the TB code I'll give that part an extra review.
The changes should not change anything, but it's worth making sure
I forgot to tag @GNiramay as one of the reviewers here. I'm not sure who the 3rd reviewer here in the TS module usually is. Who would you suggest @bryngemark?
i would suggest bypassing a 3rd reviewer, i don't know who that would be (andrew has often had a hard time keeping up, you could pull in Lauren if you want to, otherwise i typically enlist tom) -- i'm not sure 3 reviewers is a good number when we are typically only 3 current TS developers in total.
That sounds reasonable to me, although I don't think that I can do the actual PR merge then (don't think I have permissions)
I do. Let's give @GNiramay another day to chime in first.
madeTrack and skipDn variables are new to me; but the new initialization of vector of Expo looks good to me.
I think they are leftover variables from development that are still around
kind of -- they are useful in other geometries than the commonly used one. but i haven't gotten round to introducing those to shared code. so i'd rather not clean it up. @GNiramay could you review and approve just so i know you're fine with these changes?
They are still in there just commented, I could add a comment referencing this issue if you want. Other than this, is this ready to be merged? I would like to be able to try some things with clang in our CI that depends on this being merged
This resolves #53 by switching from variable length arrays to either arrays with static length or a corresponding vector.
Should wait with merging until https://github.com/LDMX-Software/docker/issues/64 so we can confirm that it fixes what it tries to fix.