Skip to content

Commit 5517dab

Browse files
authored
Update and clean up configuration. Set defaults to Run 3 real pp data. (#516)
1 parent 6f4e722 commit 5517dab

21 files changed

+2761
-1642
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The validation framework is a general configurable platform that gives user the
3838
Its flexibility is enabled by strict separation of its specialised components into a system of Bash scripts.
3939
Configuration is separate from execution code, input configuration is separate from task configuration, execution steps are separate from the main steering code.
4040

41-
* The steering script [`runtest.sh`](exec/runtest.sh) provides control parameters and interface to the machinery for task execution.
41+
* The steering script [`run_analysis.sh`](exec/run_analysis.sh) provides control parameters and interface to the machinery for task execution.
4242
* User provides configuration Bash scripts which:
4343
* modify control parameters,
4444
* produce modified configuration files,
@@ -50,7 +50,7 @@ Execution code can be found in the [`exec`](exec) directory.
5050

5151
**The user should not touch anything in this directory!**
5252

53-
The steering script [`runtest.sh`](exec/runtest.sh) performs the following execution steps:
53+
The steering script [`run_analysis.sh`](exec/run_analysis.sh) performs the following execution steps:
5454

5555
* Load input specification.
5656
* Load tasks configuration.
@@ -85,10 +85,10 @@ All steps are activated by default and some can be disabled individually by sett
8585

8686
## Configuration
8787

88-
The steering script [`runtest.sh`](exec/runtest.sh) can be executed with the following optional arguments:
88+
The steering script [`run_analysis.sh`](exec/run_analysis.sh) can be executed with the following optional arguments:
8989

9090
```bash
91-
bash [<path>/]runtest.sh [-h] [-i <input-configuration>] [-t <task-configuration>] [-d]
91+
[<path>/]run_analysis.sh [-h] [-i <input-configuration>] [-t <task-configuration>] [-d]
9292
```
9393

9494
`<input-configuration>` Input specification script. See [Input specification](#input-specification).
@@ -227,7 +227,7 @@ Now you are ready to run the validation code.
227227
**Make sure that your Bash environment is clean!
228228
Do not load ROOT, AliPhysics, O<sup>2</sup>, O<sup>2</sup>Physics or any other aliBuild package environment before running the framework!**
229229

230-
Enter any directory and execute the steering script `runtest.sh`.
230+
Enter any directory and execute the steering script `run_analysis.sh`.
231231
(You can create a symlink for convenience.)
232232
All the processing will take place in the current directory.
233233

@@ -264,7 +264,7 @@ which can help you figure out what went wrong, where and why.
264264
You can execute the script from the current working directory using the following syntax (options can be combined):
265265

266266
```bash
267-
bash [<path>/]debug.sh [-h] [-t TYPE] [-b [-u]] [-f] [-w] [-e]
267+
[<path>/]debug.sh [-h] [-t TYPE] [-b [-u]] [-f] [-w] [-e]
268268
```
269269
270270
`-h` Print out the usage help.
@@ -306,7 +306,7 @@ as well as re-building your AliPhysics and O<sup>2</sup>(Physics) installations
306306
You can execute the script from any directory on your system using the following syntax:
307307
308308
```bash
309-
python [<path>/]exec/update_packages.py [-h] [-d] [-l] [-c] database
309+
[<path>/]exec/update_packages.py [-h] [-d] [-l] [-c] database
310310
```
311311
312312
optional arguments:
@@ -353,7 +353,7 @@ It is possible to check your code locally (before even committing or pushing):
353353
### Space checker
354354
355355
```bash
356-
bash [<path>/]exec/check_spaces.sh
356+
[<path>/]exec/check_spaces.sh
357357
```
358358
359359
### [ClangFormat](https://clang.llvm.org/docs/ClangFormat.html)

codeHF/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ You can use the [`download_from_grid.sh`](../exec/download_from_grid.sh) script
4545
Enter the `codeHF` directory and execute the steering script:
4646

4747
```bash
48-
bash runtest.sh
48+
./run_analysis.sh
4949
```
5050

51-
Running all the steps with `INPUT_CASE=2` takes about 40 seconds in total.
52-
5351
The postprocessing step produces several plots `comparison_histos_(...).pdf`, `MC_(...).pdf`.

codeHF/clean.sh

100644100755
File mode changed.

codeHF/config_input.sh

Lines changed: 28 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22
# shellcheck disable=SC2034 # Ignore unused parameters.
33

4-
# Input specification for runtest.sh
4+
# Input specification for run_analysis.sh
55
# (Modifies input parameters.)
66

7-
INPUT_CASE=2 # Input case
7+
INPUT_CASE=7 # Input case
88

99
NFILESMAX=1 # Maximum number of processed input files. (Set to -0 to process all; to -N to process all but the last N files.)
1010

@@ -19,144 +19,127 @@ NJOBSPARALLEL_O2=$(python3 -c "print(min(10, round($(nproc) / 2)))")
1919
# Default settings:
2020
# INPUT_LABEL="nothing" # Input description
2121
# INPUT_DIR="$PWD" # Input directory
22-
# INPUT_FILES="AliESDs.root" # Input file pattern
22+
# INPUT_FILES="AO2D.root" # Input file pattern
2323
# INPUT_SYS="pp" # Collision system ("pp", "PbPb")
24-
# INPUT_RUN=2 # LHC Run (2, 3, 5)
25-
# INPUT_IS_O2=0 # Input files are in O2 format.
24+
# INPUT_RUN=3 # LHC Run (2, 3, 5)
25+
# INPUT_IS_O2=1 # Input files are in O2 format.
2626
# INPUT_IS_MC=0 # Input files are MC data.
2727
# INPUT_PARENT_MASK="" # Path replacement mask for the input directory of parent files in case of linked derived O2 input. Set to ";" if no replacement needed. Syntax: "alien:///path/in/alien;/local/path"
2828
# INPUT_TASK_CONFIG="" # Input-specific task configuration (e.g. enabling converters), overriding the task configuration in CONFIG_TASKS. String of space-separated commands.
2929
# JSON="dpl-config.json" # O2 device configuration
3030

31-
# O2 device configuration
32-
JSONRUN3="dpl-config_run3.json" # Run 3
33-
# JSONRUN5_HF="dpl-config_run5_hf.json" # Run 5, open HF
34-
# JSONRUN5_ONIAX="dpl-config_run5_oniaX.json" # Run 5, onia (J/psi and X), (higher pt cut on 2-prong decay tracks and no DCA cut on single track)
35-
JSON="$JSONRUN3"
36-
3731
INPUT_BASE="/data2/data" # alicecerno2
3832

3933
case $INPUT_CASE in
4034
1)
4135
INPUT_LABEL="Run 2, p-p 5.02 TeV LHC17p, real"
4236
INPUT_DIR="$INPUT_BASE/Run2/pp_5.02TeV/real/LHC17p_pass1_CENT_woSDD"
37+
INPUT_FILES="AliESDs.root"
38+
INPUT_RUN=2
39+
INPUT_IS_O2=0
4340
;;
4441
2) # reference
4542
INPUT_LABEL="Run 2, p-p 5.02 TeV LHC17p, MC LHC18a4a2_cent"
4643
INPUT_DIR="$INPUT_BASE/Run2/pp_5.02TeV/sim/LHC18a4a2_cent/282099"
44+
INPUT_FILES="AliESDs.root"
45+
INPUT_RUN=2
46+
INPUT_IS_O2=0
4747
INPUT_IS_MC=1
4848
;;
4949
3)
5050
INPUT_LABEL="Run 2, p-p 5.02 TeV LHC17p, MC LHC18a4a2_cent"
5151
INPUT_DIR="$INPUT_BASE/Run2/pp_5.02TeV/sim/LHC18a4a2_cent/282341"
52+
INPUT_FILES="AliESDs.root"
53+
INPUT_RUN=2
54+
INPUT_IS_O2=0
5255
INPUT_IS_MC=1
5356
;;
5457
4)
5558
INPUT_LABEL="Run 2, Pb-Pb 5.02 TeV LHC15o, real"
5659
INPUT_DIR="$INPUT_BASE/Run2/PbPb_5.02TeV/real/LHC15o"
60+
INPUT_FILES="AliESDs.root"
5761
INPUT_SYS="PbPb"
62+
INPUT_RUN=2
63+
INPUT_IS_O2=0
5864
INPUT_TASK_CONFIG="DOO2_CONV_BC=1"
5965
;;
6066
5)
6167
INPUT_LABEL="Run 2, Pb-Pb 5.02 TeV LHC15o, MC LHC15k1a3"
6268
INPUT_DIR="$INPUT_BASE/Run2/PbPb_5.02TeV/sim/LHC15k1a3"
69+
INPUT_FILES="AliESDs.root"
6370
INPUT_SYS="PbPb"
71+
INPUT_RUN=2
72+
INPUT_IS_O2=0
6473
INPUT_IS_MC=1
6574
INPUT_TASK_CONFIG="DOO2_CONV_BC=1"
6675
;;
6776
6)
6877
INPUT_LABEL="Run 2, p-p 13 TeV LHC16p, MC LHC19g6f3, dedicated Ξc"
6978
INPUT_DIR="$INPUT_BASE/Run2/pp_13TeV/sim/LHC19g6f3"
79+
INPUT_FILES="AliESDs.root"
80+
INPUT_RUN=2
81+
INPUT_IS_O2=0
7082
INPUT_IS_MC=1
7183
;;
7284
7)
7385
INPUT_LABEL="Run 3, p-p 13.6 TeV, LHC22o_pass4, real"
7486
INPUT_DIR="$INPUT_BASE/Run3/pp_13.6TeV/real/LHC22o_pass4_minBias_small"
75-
INPUT_FILES="AO2D.root"
76-
INPUT_RUN=3
77-
INPUT_IS_O2=1
7887
INPUT_TASK_CONFIG="DOO2_CONV_BC=1 DOO2_CONV_MCCOLL=1 DOO2_CONV_TRKEX_0_2=1 DOO2_CONV_V0=1 DOO2_CONV_MFT=1"
7988
;;
8089
8)
8190
INPUT_LABEL="Run 3, p-p 13.6 TeV, LHC22r, real, low interaction rate (100 kHz)"
8291
INPUT_DIR="$INPUT_BASE/Run3/pp_13.6TeV/real/LHC22r"
83-
INPUT_FILES="AO2D.root"
84-
INPUT_RUN=3
85-
INPUT_IS_O2=1
8692
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_MCCOLL=1 DOO2_CONV_TRKEX_0_2=1 DOO2_CONV_COLL=1 DOO2_CONV_V0=1"
8793
;;
8894
9)
8995
INPUT_LABEL="Run 3, p-p 13.6 TeV, MC LHC21k6, general purpose"
9096
INPUT_DIR="$INPUT_BASE/Run3/pp_13.6TeV/sim/LHC21k6"
91-
INPUT_FILES="AO2D.root"
92-
INPUT_RUN=3
93-
INPUT_IS_O2=1
9497
INPUT_IS_MC=1
9598
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_MCCOLL=1 DOO2_CONV_TRKEX_0_2=1 DOO2_CONV_COLL=1 DOO2_CONV_V0=1"
9699
;;
97100
10)
98101
INPUT_LABEL="Run 2, p-p 13 TeV LHC18f, MC LHC20f4a (ESD)"
99102
INPUT_DIR="$INPUT_BASE/Run2/pp_13TeV/sim/LHC20f4a"
103+
INPUT_FILES="AliESDs.root"
104+
INPUT_RUN=2
105+
INPUT_IS_O2=0
100106
INPUT_IS_MC=1
101107
;;
102108
11)
103109
INPUT_LABEL="Run 2, p-p 13 TeV LHC18f, MC LHC20f4a (AO2D)"
104110
INPUT_DIR="$INPUT_BASE/Run2/pp_13TeV/sim_converted/LHC20f4a"
105-
INPUT_FILES="AO2D.root"
106-
INPUT_IS_O2=1
111+
INPUT_RUN=2
107112
INPUT_IS_MC=1
108113
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_BCINFO=1 DOO2_CONV_MCCOLL=1 DOO2_CONV_TRKEX_0_2=1 DOO2_CONV_COLL=1 DOO2_CONV_V0=1"
109114
;;
110115
12)
111116
INPUT_LABEL="Run 2, p-p 13 TeV, LHC17j (AO2D)"
112117
INPUT_DIR="$INPUT_BASE/Run2/pp_13TeV/real_converted/LHC17j_20220601" # converted good AO2Ds
113-
INPUT_FILES="AO2D.root"
114-
INPUT_IS_O2=1
118+
INPUT_RUN=2
115119
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_BCINFO=1 DOO2_CONV_TRKEX_0_2=1 DOO2_CONV_COLL=1 DOO2_CONV_V0=1"
116120
;;
117121
13)
118122
INPUT_LABEL="Run 3, p-p 13.6 TeV, MC LHC22b1b, D2H enriched"
119123
INPUT_DIR="$INPUT_BASE/Run3/pp_13.6TeV/sim/LHC22b1b"
120-
INPUT_FILES="AO2D.root"
121-
INPUT_RUN=3
122-
INPUT_IS_O2=1
123124
INPUT_IS_MC=1
124125
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_MCCOLL=1 DOO2_CONV_TRKEX_0_2=1 DOO2_CONV_V0=1"
125126
;;
126127
14)
127128
INPUT_LABEL="Run 3, p-p 13.6 TeV, MC LHC23f4b2, general purpose"
128129
INPUT_DIR="$INPUT_BASE/Run3/pp_13.6TeV/sim/LHC23f4b2"
129-
INPUT_FILES="AO2D.root"
130-
INPUT_RUN=3
131-
INPUT_IS_O2=1
132130
INPUT_IS_MC=1
133131
INPUT_TASK_CONFIG="DOO2_CONV_BC=1 DOO2_CONV_MCCOLL=1 DOO2_CONV_TRKEX_0_2=1 DOO2_CONV_V0=1"
134132
;;
135133
15)
136134
INPUT_LABEL="Run 3, Pb-Pb 5.36 TeV LHC23zzi_pass2"
137135
INPUT_DIR="$INPUT_BASE/Run3/PbPb_5.36TeV/real/LHC23zzi"
138-
INPUT_FILES="AO2D.root"
139136
INPUT_SYS="PbPb"
140-
INPUT_RUN=3
141-
INPUT_IS_O2=1
142137
INPUT_TASK_CONFIG="DOO2_CONV_TRKEX_1_2=1"
143138
;;
144139
16)
145140
INPUT_LABEL="Run 3, p-p 13.6 TeV, MC LHC24d3, anchored"
146141
INPUT_DIR="$INPUT_BASE/Run3/pp_13.6TeV/sim/LHC24d3"
147-
INPUT_FILES="AO2D.root"
148-
INPUT_RUN=3
149-
INPUT_IS_O2=1
150142
INPUT_IS_MC=1
151143
INPUT_TASK_CONFIG="DOO2_CONV_MCCOLL=1 DOO2_CONV_TRKEX_1_2=1"
152144
;;
153-
17)
154-
INPUT_LABEL="Run 3, p-p 13.6 TeV, LHC22o_pass4_minBias_small"
155-
INPUT_DIR="$INPUT_BASE/Run3/pp_13.6TeV/real/LHC22o_pass4_minBias_small"
156-
INPUT_FILES="AO2D.root"
157-
INPUT_RUN=3
158-
INPUT_IS_O2=1
159-
INPUT_IS_MC=0
160-
INPUT_TASK_CONFIG="DOO2_CONV_MCCOLL=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX_0_2=1 DOO2_CONV_V0=1"
161-
;;
162145
esac

0 commit comments

Comments
 (0)