Skip to content

Commit e633298

Browse files
committed
Update docs
1 parent 7899f24 commit e633298

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

Tutorials/PWGHF/README.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,49 @@
44

55
Welcome to the heavy-flavour analysis tutorial!
66

7-
This directory contains the code and configuration for running a minimalistic version of the D<sup>0</sup> analysis on Run 3 real data.
7+
This directory contains the code and configuration for running a minimalistic version of the D<sup>0</sup> analysis on Run 3 data.
88

99
See the [official PWG-HF O<sup>2</sup> documentation](https://aliceo2group.github.io/analysis-framework/docs/advanced-specifics/pwghf.html) for the overview of the full heavy-flavour analysis framework.
1010

1111
## Setup
1212

13-
1. Create a dedicated working directory on your device.
14-
This is the directory, where you will put your input files, run the code and produce the output files, so it is a good idea to have it outside the O2Physics repository.
15-
2. Put the input file(s) `AO2D.root` (and `AnalysisResults_trees.root`) in the working directory.
16-
3. Load the O2Physics environment.
13+
1. Create and enter a dedicated working directory on your device.
14+
This is the directory, where you will put your input files, run the code, and produce the output files, so it is a good idea to have it outside the O2Physics repository.
15+
1. Put the input file(s) `AO2D.root` (and `AnalysisResults_trees.root`) in the working directory (or in a dedicated directory for input data).
16+
1. Copy the [`input_skim.txt`](input_skim.txt) and [`input_task.txt`](input_task.txt) files into the working directory and adjust the paths inside if needed.
17+
1. Load the O2Physics environment.
1718

1819
## Skim production
1920

20-
The file `AnalysisResults_trees.root` contains a derived table with track index skims of 2-prong decay candidates.
21-
This table contains paired track indices which point to the track table in the parent `AO2D.root` file.
22-
It is produced from the `AO2D.root` file by a dedicated workflow `o2-analysistutorial-hf-skim-creator-mini` (implemented in [`skimCreatorMini.cxx`](skimCreatorMini.cxx)).
21+
The mini skim creator workflow `o2-analysistutorial-hf-skim-creator-mini` (implemented in [`skimCreatorMini.cxx`](skimCreatorMini.cxx)) is a simplified version of the `o2-analysis-hf-track-index-skim-creator` workflow (implemented in [`trackIndexSkimCreator.cxx`](https://github.com/AliceO2Group/O2Physics/blob/master/PWGHF/TableProducer/trackIndexSkimCreator.cxx)) which is used for the central production of linked derived data for all HF analyses and which performs:
2322

24-
If you need to produce these derived skims, you can do that by executing the [`run_skim.sh`](run_skim.sh) bash script in the working directory:
23+
- the HF event selection,
24+
- the HF secondary-track selection,
25+
- the HF secondary-vertex reconstruction and loose selection of found HF decay candidates.
26+
27+
The mini skim creator processes the `AO2D.root` file(s) and produces a derived table [`HfT2Prongs`](DataModelMini.h) with track index skims of 2-prong decay candidates.
28+
This table contains paired track indices which point to tracks in the track table in the parent `AO2D.root` file.
29+
30+
These derived skims are produced by executing the [`run_skim.sh`](run_skim.sh) bash script in the working directory:
2531

2632
```bash
2733
bash ~/alice/O2Physics/Tutorials/PWGHF/run_skim.sh
2834
```
2935

30-
It will use the configuration from [`dpl-config_skim.json`](dpl-config_skim.json).
36+
It will use the configuration from [`dpl-config_skim.json`](dpl-config_skim.json) and produce the `AnalysisResults_trees.root` file with the derived table and the `AnalysisResults.root` file with control histograms in the working directory.
3137

3238
## Mini task
3339

3440
The mini task workflow `o2-analysistutorial-hf-task-mini` (implemented in [`taskMini.cxx`](taskMini.cxx)) is a simplified version of the D<sup>0</sup> analysis chain part which includes:
3541

36-
- the 2-prong candidate creator,
37-
- the D<sup>0</sup> candidate selector,
38-
- the D<sup>0</sup> analysis task.
42+
- the 2-prong candidate creator (for the full candidate reconstruction),
43+
- the D<sup>0</sup> candidate selector (for the candidate selection),
44+
- the D<sup>0</sup> analysis task (for the analysis of selected candidates and filling of output histograms).
3945

4046
The first step (candidate creator) consumes the track index skim table and therefore needs the derived `AnalysisResults_trees.root` file as input.
4147

4248
Processing the derived file requires access to the parent `AO2D.root` file.
43-
The absolute path to the parent file is stored in the derived file but it can be overridden with the parameter `aod-parent-base-path-replacement` in the JSON configuration,
44-
where one has to provide a replacement mask in the format `"old-path-to-parent;new-path-to-parent"`.
49+
The absolute path to the parent file is stored in the derived file but it can be overridden with the command line parameter `--aod-parent-base-path-replacement "old-path-to-parent;new-path-to-parent"`.
4550
(If the parent and the derived files are both in the same directory, `new-path-to-parent` can be empty.)
4651

4752
Run the mini task by executing the [`run_task.sh`](run_task.sh) bash script in the working directory:
@@ -52,7 +57,7 @@ bash ~/alice/O2Physics/Tutorials/PWGHF/run_task.sh
5257

5358
It will use the configuration from [`dpl-config_task.json`](dpl-config_task.json) and produce the output file `AnalysisResults.root` with histograms in the working directory.
5459

55-
### Exercise tips
60+
## Exercise tips
5661

5762
Organise your working environment so that you can easily switch between running the code in the working directory and modifying the code in the O2Physics repository.
5863

@@ -61,6 +66,8 @@ If an error occurs, the script will report the non-zero exit code and ask you to
6166

6267
The full O<sup>2</sup> configuration is dumped at the end of processing into the `dpl-config.json` file in the working directory.
6368

64-
See the [rebuilding instructions](https://aliceo2group.github.io/analysis-framework/docs/gettingstarted/installing.html#building-partially-for-development-using-ninja) in the official O<sup>2</sup> analysis framework documentation for advice on compiling your code changes.
69+
See the [rebuilding instructions](https://aliceo2group.github.io/analysis-framework/docs/gettingstarted/installing.html#building-partially-for-development-using-ninja) in the analysis framework documentation for advice on compiling your code changes.
70+
71+
See the [Troubleshooting](https://aliceo2group.github.io/analysis-framework/docs/troubleshooting/) section of the analysis framework documentation for debugging advice.
6572

66-
See the [Troubleshooting](https://aliceo2group.github.io/analysis-framework/docs/troubleshooting/) section of the official O<sup>2</sup> analysis framework documentation for debugging advice.
73+
Consider using the [Shell rc utilities](https://aliceo2group.github.io/analysis-framework/docs/tools/#shell-rc-utilities) for easier recompilation and debugging.

0 commit comments

Comments
 (0)