Skip to content

Commit ebc4d27

Browse files
Benedikt Volkelsawenzel
authored andcommitted
Update analysis testing
* introduce dedicated DPL configuration for analysis testing to not interfer with the QC JSON used before * add O2mult table to TPC analysis
1 parent e067bdc commit ebc4d27

File tree

2 files changed

+153
-7
lines changed

2 files changed

+153
-7
lines changed

MC/analysis_testing/o2dpg_analysis_test_workflow.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env python3
22

33
#
4-
# A script producing a consistent MC->RECO->AOD workflow
5-
# It aims to handle the different MC possible configurations
4+
# A script producing a consistent MC->RECO->AOD workflow
5+
# It aims to handle the different MC possible configurations
66
# It just creates a workflow.json txt file, to execute the workflow one must execute right after
7-
# ${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json
7+
# ${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json
88
#
99
# Execution examples:
1010
# - pp PYTHIA jets, 2 events, triggered on high pT decay photons on all barrel calorimeters acceptance, eCMS 13 TeV
@@ -15,7 +15,7 @@
1515
# - pp PYTHIA ccbar events embedded into heavy-ion environment, 2 PYTHIA events into 1 bkg event, beams energy 2.510
1616
# ./o2dpg_sim_workflow.py -e TGeant3 -nb 1 -ns 2 -j 8 -tf 1 -mod "--skipModules ZDC" \
1717
# -col pp -eA 2.510 -proc "ccbar" --embedding
18-
#
18+
#
1919

2020
import sys
2121
import importlib.util
@@ -62,10 +62,10 @@ def run(args):
6262
workflow = []
6363

6464
# Efficiency
65-
workflow.append(create_ana_task("Efficiency", "o2-analysis-timestamp --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-trackextension --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-trackselection --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-event-selection --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-qa-efficiency --eff-mc 1 --eff-mc-pos 1 --eff-mc-neg 1 --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json ", output_dir, input_file))
65+
workflow.append(create_ana_task("Efficiency", "o2-analysis-timestamp --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json | o2-analysis-trackextension --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json | o2-analysis-trackselection --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json | o2-analysis-event-selection --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-qa-efficiency --eff-mc 1 --eff-mc-pos 1 --eff-mc-neg 1 --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json ", output_dir, input_file))
6666

6767
# Event and track QA
68-
workflow.append(create_ana_task("EventTrackQA", 'o2-analysis-timestamp --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-event-selection --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-trackextension --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-trackselection --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-qa-event-track --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json', output_dir, input_file))
68+
workflow.append(create_ana_task("EventTrackQA", 'o2-analysis-timestamp --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json | o2-analysis-event-selection --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json | o2-analysis-trackextension --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json | o2-analysis-trackselection --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-qa-event-track --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json', output_dir, input_file))
6969

7070
# MCHistograms (no complex workflow / piping required atm)
7171
workflow.append(create_ana_task("MCHistograms", 'o2-analysistutorial-mc-histograms', output_dir, input_file))
@@ -77,7 +77,7 @@ def run(args):
7777
workflow.append(create_ana_task("PIDTOF", 'o2-analysis-pid-tof', output_dir, input_file))
7878

7979
# PID TPC (no complex workflow / piping required atm), NOTE: produces no output
80-
workflow.append(create_ana_task("PIDTPC", 'o2-analysis-timestamp --configuration json://${O2DPG_ROOT}/MC/config/QC/json/event-track-qa.json | o2-analysis-pid-tpc', output_dir, input_file))
80+
workflow.append(create_ana_task("PIDTPC", 'o2-analysis-timestamp --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json | o2-analysis-event-selection --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json | o2-analysis-multiplicity-table --configuration json://${O2DPG_ROOT}/MC/config/analysis_testing/json/analysis-testing.json | o2-analysis-pid-tpc', output_dir, input_file))
8181

8282
# weak decay tutorial task (no complex workflow / piping required atm), NOTE: produces no output
8383
workflow.append(create_ana_task("WeakDecayTutorial", 'o2-analysistutorial-weak-decay-iteration', output_dir, input_file))
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
{
2+
"bc-selection-task": {
3+
"processRun2": "false",
4+
"processRun3": "true"
5+
},
6+
"qa-tracking-efficiency-data": {
7+
"eta-min": "-0.8",
8+
"eta-max": "0.8",
9+
"pt-min": "0.1",
10+
"pt-max": "10",
11+
"track-sel": "true",
12+
"pt-bins": "500",
13+
"log-pt": "1",
14+
"eta-bins": "500",
15+
"phi-bins": "500",
16+
"make-eff": "true"
17+
},
18+
"qa-tracking-efficiency-muon": {
19+
"eta-min": "-0.8",
20+
"eta-max": "0.8",
21+
"pt-min": "0.1",
22+
"pt-max": "10",
23+
"track-sel": "true",
24+
"pt-bins": "500",
25+
"log-pt": "1",
26+
"eta-bins": "500",
27+
"phi-bins": "500",
28+
"make-eff": "true",
29+
"sel-prim": "true"
30+
},
31+
"qa-tracking-efficiency-pion": {
32+
"eta-min": "-0.8",
33+
"eta-max": "0.8",
34+
"pt-min": "0.1",
35+
"pt-max": "10",
36+
"track-sel": "true",
37+
"pt-bins": "500",
38+
"log-pt": "1",
39+
"eta-bins": "500",
40+
"phi-bins": "500",
41+
"make-eff": "true",
42+
"sel-prim": "true"
43+
},
44+
"qa-tracking-efficiency-electron": {
45+
"eta-min": "-0.8",
46+
"eta-max": "0.8",
47+
"pt-min": "0.1",
48+
"pt-max": "10",
49+
"track-sel": "true",
50+
"pt-bins": "500",
51+
"log-pt": "1",
52+
"eta-bins": "500",
53+
"phi-bins": "500",
54+
"make-eff": "true",
55+
"sel-prim": "true"
56+
},
57+
"qa-tracking-efficiency-kaon": {
58+
"eta-min": "-0.8",
59+
"eta-max": "0.8",
60+
"pt-min": "0.1",
61+
"pt-max": "10",
62+
"track-sel": "true",
63+
"pt-bins": "500",
64+
"log-pt": "1",
65+
"eta-bins": "500",
66+
"phi-bins": "500",
67+
"make-eff": "true",
68+
"sel-prim": "true"
69+
},
70+
"qa-tracking-efficiency-proton": {
71+
"eta-min": "-0.8",
72+
"eta-max": "0.8",
73+
"pt-min": "0.1",
74+
"pt-max": "10",
75+
"track-sel": "true",
76+
"pt-bins": "500",
77+
"log-pt": "1",
78+
"eta-bins": "500",
79+
"phi-bins": "500",
80+
"make-eff": "true",
81+
"sel-prim": "true"
82+
},
83+
"qa-tracking-efficiency-deuteron": {
84+
"eta-min": "-0.8",
85+
"eta-max": "0.8",
86+
"pt-min": "0.1",
87+
"pt-max": "10",
88+
"track-sel": "true",
89+
"pt-bins": "500",
90+
"log-pt": "1",
91+
"eta-bins": "500",
92+
"phi-bins": "500",
93+
"make-eff": "true",
94+
"sel-prim": "true"
95+
},
96+
"qa-tracking-efficiency-triton": {
97+
"eta-min": "-0.8",
98+
"eta-max": "0.8",
99+
"pt-min": "0.1",
100+
"pt-max": "10",
101+
"track-sel": "true",
102+
"pt-bins": "500",
103+
"log-pt": "1",
104+
"eta-bins": "500",
105+
"phi-bins": "500",
106+
"make-eff": "true",
107+
"sel-prim": "true"
108+
},
109+
"qa-tracking-efficiency-helium3": {
110+
"eta-min": "-0.8",
111+
"eta-max": "0.8",
112+
"pt-min": "0.1",
113+
"pt-max": "10",
114+
"track-sel": "true",
115+
"pt-bins": "500",
116+
"log-pt": "1",
117+
"eta-bins": "500",
118+
"phi-bins": "500",
119+
"make-eff": "true",
120+
"sel-prim": "true"
121+
},
122+
"event-selection-task": {
123+
"syst": "pp",
124+
"muonSelection": "0",
125+
"isMC": "true",
126+
"processRun2": "false",
127+
"processRun3": "true"
128+
},
129+
"track-extension": {
130+
"processRun2": "false",
131+
"processRun3": "true"
132+
},
133+
"multiplicity-table": {
134+
"processRun2": "false",
135+
"processRun3": "true"
136+
},
137+
"track-selection": {
138+
"isRun3": "true"
139+
},
140+
"qa-event-track": {
141+
"isMC": "true",
142+
"isRun3": "true",
143+
"processData": "false",
144+
"processMC": "true"
145+
}
146+
}

0 commit comments

Comments
 (0)