![]() |
Project
|
The TPC digitization handles the transformation from the simulated GEANT hits to the output of the front-end electronics. The workflow and the validation of the corresponding output is described in detail in the PhD thesis of Andi Mathis. In the following, a concise overview is presented. For the digitization as conducted by the TPC digitizer the following physics processes are considered:
The digitization is conducted for each TPC sector individually in order to ensure maximal parallelization. The workflow is implemented in the DPL and the o2-sim-digitizer-workflow
.
The input can be created by running the simulation o2-sim
, which produces the file o2sim.root
with the hits stored in separated branches for all sectors. It should be noted that due to diffusion and the space-charge distortions, charge leakage between sectors can occur. In order to avoid the unnecessary processing of individual hits, several measures are taken
Hits passing that requirement are further processed by the TPC digitizer and undergo the above described physics processes.
In particular in the case of large track densities, the hits from different tracks can contribute to an individual digit (pad, row, time bin). Therefore, an intermediate buffering of the digits is necessary. This is accomplished by an intermediate container structure. The DigitContainer is a circular buffer of time bins, in order to enable continuous readout of the detector as explained below. The DigitTime is then a flat contained of DigitGlobalPad, where the latter correspond to one pad on the pad plane. Accordingly, the buffering of the actual ADC values is conducted using this object. Similarly, the MC labels are passed throughout the chain, and finally sorted by the number of occurrences, i.e. the track with the largest contribution to the digit is mentioned first etc.
Correlations among digits from different events can only occur within the integration time of the detector (plus additional 50% contigiency), and therefore the digits are written to disk when the processed event is more than 750 time bins after. This means, that saturation effects are applied to the ADC values stored in the DigitGlobalPad and the relevant information is transformed in a Digit which is written to disk.
The digitizer workflow produces the file tpcdigits.root
by default, data is stored in separated branches for all sectors.