Skip to content

Commit 58a7688

Browse files
committed
Update README for TPC SCD calib
1 parent 05f221a commit 58a7688

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

  • Detectors/TPC/calibration/SpacePoints

Detectors/TPC/calibration/SpacePoints/README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,55 @@ The workflow running on the aggregator is at the moment causing backpressure on
1919
ARGS_EXTRA_PROCESS_o2_calibration_residual_aggregator="--compression 0"
2020
```
2121
Note, that currently writing to EOS is disabled. Once the workflow is validated it should be enabled in `aggregator-workflow.sh`: https://github.com/AliceO2Group/AliceO2/blob/cb98b7e5f036024dfce73abf2b6bdb3ad432d1b4/prodtests/full-system-test/aggregator-workflow.sh#L177-L181
22+
23+
24+
## Running the calibration offline from ROOT file input
25+
26+
For running the track interpolation offline which creates the unbinned residuals one needs to have the following inputs in the local directory as ROOT files:
27+
28+
- clusters, tracks, track matches for all barrell detectors ITS, TPC, TRD and TOF
29+
- the TF ID information typically stored in o2_tfidinfo.root
30+
31+
Now, one can rerun the interpolation workflow piping its output directly into the residual aggregator which creates the o2tpc_residuals*.root files with the specified output (residuals binned/unbinned, track information):
32+
33+
```
34+
o2-tpc-scdcalib-interpolation-workflow -b --send-track-data --disable-mc --hbfutils-config o2_tfidinfo.root | \
35+
o2-calibration-residual-aggregator -b --enable-track-input --output-type unbinnedResid,binnedResid,trackParams --output-dir $PWD --disable-root-input
36+
```
37+
38+
Since the workflow loads also the TPC native clusters which are rather large, you will most likely need to increase the SHM size via adding `--shm-segment-size 32000000000` to both workflows.
39+
40+
#### Track selection
41+
42+
Track selections are applied at the interpolation stage. This can be steered via configurable parameters. For example add
43+
44+
```
45+
--configKeyValues "scdcalib.maxTracksPerCalibSlot=-1;scdcalib.minTPCNCls=70"
46+
```
47+
in order to process all global tracks which are available per TF and have at least 70 TPC clusters.
48+
For all options please have a look at `Detectors/TPC/calibration/SpacePoints/include/SpacePoints/SpacePointsCalibConfParam.h`
49+
50+
### Creating the distortion map from unbinned residuals
51+
52+
When the unbinned residuals are available it is possible to create the distortion map directly from those and on-the-fly change the track selection, e.g. taking into account only ITS-TPC-TRD tracks or only tracks with a very high quality. Use the `Detectors/TPC/calibration/SpacePoints/macro/staticMapCreator.C` macro in compiled mode. You will need to specify the input file (single ROOT file or list of files) and the run number. Optionally you can specify the output file name or the track type to be used (default is ALL which are available as input, use e.g. "ITS-TPC-TRD" for only this type).
53+
54+
The track selection is steered via configurable param. Before running the macro it's best to create a configuration file which can then be adapted to ones needs:
55+
```
56+
const o2::tpc::SpacePointsCalibConfParam& params = o2::tpc::SpacePointsCalibConfParam::Instance();
57+
params.writeINI("scdconfig.ini", "scdcalib"); // to write default parameters to a file
58+
```
59+
For example to request only tracks with 5 ITS clusters, 2 TRD tracklets and a DCA < 10 cm set
60+
```
61+
minITSNCls=5
62+
minTRDNTrklts=2
63+
writeBinnedResiduals=true
64+
useTrackData=true
65+
cutOnDCA=true
66+
maxDCA=10
67+
```
68+
It is also possible to select only TFs from a specific time range. The time range needs to be provided in ms. The epoch time in seconds for a given date can be determined e.g. via `date -d "Nov 22 2022 16:00" +%s`. Don't forget to multiply by 1000 to get ms.
69+
```
70+
timeFilter=true
71+
startTimeMS=1666669765254
72+
endTimeMS=1666670365241
73+
```

0 commit comments

Comments
 (0)