fcs-proj / FastCaloSim

An experiment-independent library for fast calorimeter simulation
Apache License 2.0
3 stars 1 forks source link

Add capability to make simulation animations #22

Closed jbeirer closed 4 months ago

jbeirer commented 4 months ago

This pull request adds the capability to make on-the-fly animations of the cell energy simulation of the Atlas calorimeter in AtlasSimTests. A gif file is automatically produced for each simulated event that displays the track transport as well as the simulated cell energies. For the currently activated simulation of photons this looks as follows:

simulated_cell_energy1 simulated_cell_energy2 simulated_cell_energy3

In principle, multi track animations are also possible. In this case, the tracks will be drawn after each other and the cell energies are summed. For instance, the top three tracks in a single event look as follows (they are all overlapping as they have the same eta): simulated_cell_energy_combined.

As expected, the cell energies are the sum of all three single tracks. Note that the scales are different.