Repository navigation
Conversation
There was a problem hiding this comment.
Hi @Fuligno, the PR looks fine to me! I have a couple of suggestions:
- maybe it is worth adding a README in
ZDC/simulationexplaining how the fast simulation works and how to turn it on - did you test this code in a simulation with also the other detectors (and not only the ZDC)? This would be nice to check
Generate ZN and ZP photon counts from primary nucleons using an ONNX model packaged with its configuration in a ROOT/CCDB object. Add an end-of-event detector hook and integrate the generated hits with the existing ZDC simulation interface. The code was written with assistance from Claude Fable 5.2.
46cc56e to
5dc7622
Compare
…sim: register hits in the stack
…ide tower numbering, robust output checks
|
Thanks, this is a clear improvement over the old fast simulation. I have one point about reproducibility. First, some background. O2 has a mode in which the random numbers of each track are independent of everything else in the event. It is switched on with AliceO2/Detectors/Base/src/Stack.cxx Lines 343 to 364 in 3f1e2da AliceO2/Steer/src/O2MCApplication.cxx Lines 195 to 215 in 3f1e2da As a result, a given particle gives the same hits no matter which other particles are in the event, and no matter how the event is split into sub-events for the workers. The fast simulation does not follow this rule yet. The noise for the model is drawn from The fix is small and only needed when |
Generate ZN and ZP photon counts from primary nucleons using an ONNX model packaged with its configuration in a ROOT/CCDB object. Add an end-of-event detector hook and integrate the generated hits with the existing ZDC simulation interface.
The code was written with assistance from Claude Fable 5.2.