|
| 1 | +# ALICE 3 full simulation |
| 2 | + |
| 3 | +## Simulation |
| 4 | +### Simulation software for Run 5 |
| 5 | +Current simulation approach for ALICE 3 is a specification of what it is used in the main O2 simulation package. |
| 6 | +It shares the same structure and possibly inherits all the features in place already. |
| 7 | +For all of the features that are not really Run-5 specific please refer to the official [O2 Simulation Documentation](https://aliceo2group.github.io/simulation/docs/). |
| 8 | + |
| 9 | +### Rationale for the "Upgrades" codebase |
| 10 | +Run 5 code for the detectors is stored in the `Detectors/Upgrades/ALICE3` directory and its suboflder strucure mimicks the same we have in `Detectors`. |
| 11 | +For specific data formats the plan is to keep the same approach in `DataFormats/Upgrades`. |
| 12 | + |
| 13 | +### Available modules |
| 14 | +Run 5 executable is called `o2-sim-run5` and accepts the same syntax as `o2-sim`. |
| 15 | +There is also the serial vertsion `o2-sim-serial-run5` that is the serial implementation. |
| 16 | +The specific modules for Run 5 are enabled by passing their their IDs to the `-m` parameter of the `o2-sim`. |
| 17 | +A list of the available DetIDs is reproted in the table below: |
| 18 | + |
| 19 | +| Detector ID | Detector description | |
| 20 | +|-------------|----------------------------------| |
| 21 | +| `A3IP` | Beam pipe | |
| 22 | +| `TRK` | Barrel Tracker | |
| 23 | +| `TF3` | Time Of Flight detectors | |
| 24 | +| `FT3` | Forward endcaps | |
| 25 | +| `RCH` | Ring Imaging Cherenkov detectors | |
| 26 | +| `ECL` | Electromagnetic Calorimeter | |
| 27 | +| `MI3` | Muon Identification | |
| 28 | +| `FCT` | Forward Conversion Tracker | |
| 29 | +| `A3ABSO` | Absorber | |
| 30 | +| `A3MAG` | Magnet | |
| 31 | + |
| 32 | +Names are arbitrarily chosen and are such as to be orthogonal to any Run 3+ other DetID. |
| 33 | +The detector IDs of sensitive modules are mapped to the corresponding `o2::detector::DetID` class definition for convenience, so to be consistent with output names of the hit files. |
| 34 | + |
| 35 | +### Use the ALICE 3 magnetic field |
| 36 | +By definition the `o2-sim-run5` will use the Run 3 magnetic field configurations. |
| 37 | +Field description can be overridden with a custom macro with a path exported in the `ALICE3_MAGFIELD_MACRO` environment variable. |
| 38 | +The env var `ALICE3_SIM_FIELD` needs also to be set to `ON`. |
| 39 | +Example: |
| 40 | + |
| 41 | +```bash |
| 42 | +export ALICE3_SIM_FIELD=ON |
| 43 | +export ALICE3_MAGFIELD_MACRO=../ALICE3Field.C |
| 44 | +``` |
| 45 | + |
| 46 | +An exampling macro for a custom magnetic field is stored in `Detectors/Upgrades/macros/ALICE3Field.C`. |
| 47 | + |
| 48 | +### Run a simple simulation for run 5 |
| 49 | +The simplest command to be run to test the simulation is working is: |
| 50 | + |
| 51 | +```bash |
| 52 | +o2-sim-run5 -n 0 |
| 53 | +``` |
| 54 | +This will not produce any events but will spin the machinery and will produce the `o2sim_geometry.root` file with the whole geometry description. |
| 55 | +To enable a specific set of modules, e.g. the beampipe and the TOFs one can specify which modules to enable, e.g.: |
| 56 | + |
| 57 | +```bash |
| 58 | +o2-sim-run5 -n 10 -m A3IP TF3 |
| 59 | +``` |
| 60 | +### Output of the simulation |
| 61 | +The simulation will produce a `o2sim_Hits<DetID>.root` file with a tree with the hits related to that detector. |
| 62 | +Currently, hits are produced for: `TRK`, `FT3`, and `TF3`. |
| 63 | +More detectors will be included. |
| 64 | + |
| 65 | +## Reconstruction |
| 66 | +WIP |
| 67 | + |
| 68 | +## Analysis |
| 69 | +WIP |
0 commit comments