-
Notifications
You must be signed in to change notification settings - Fork 7
Creating input data from simulation
ehellbar edited this page Mar 10, 2023
·
4 revisions
The input data is generated using the scripts and macros in the alice-tpc-offline code repository (link). The code and data are documented in the corresponding JIRA ticket ATO-518. The code is run on the GSI batch farm.
The following steps are performed to obtain the input data used for training and validation:
- MC simulation of Pb-Pb or pp events, requiring storage of TPC hits
- Choosing randomly events from the simulation pool to obtain position and charge of TPC hits
- N events are chosen to achieve the desired number of ion pile-up events
- Events are rotated in phi
- Hits and charge are converted into positive ions
- Random ion drift time is chosen for position of primary ions and IBF
- Detailed procedure described in this presentation
- Obtain n (e.g. n=1000) space-charge density and 3D, 1D IDC maps with random density saved as TH3 histograms (density) and CalPads and vectors (3D, 1D IDCs)
- Obtain mean space-charge density and 3D, 1D IDC map averaging over all random maps
- Eventually, scale nominal mean density map by +-3%, +-6% (2 sigma, 4 sigma of the expected relative density fluctuations) to obtain larger distortion fluctuation values when pairing a random with a mean map
- Calculation of potentials, E-fields, distortions and corrections for all random and mean maps from the density histograms
- Calculation done with O2 space-charge framework
- Storing final calculations as TTrees in root files (several maps in one root file)
- For ML studies, data from TTrees is exported into numpy arrays
- One numpy file per variable per map
- Eventually, full map data from numpy files is downsampled (in number of TPC points) and stored as TTrees in root files (called cached training data in the framework)