Skip to content

Commit 043a97b

Browse files
authored
Automatic isLowFlux setting in event selection QA config (#1814)
1 parent 2da42d9 commit 043a97b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

MC/analysis_testing/o2dpg_analysis_test_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ def adjust_configuration_line(line, data_or_mc, collision_system):
3434
line = line.replace('!OVERWRITEAXISRANGEFORPBPBVALUE!', "false")
3535
else:
3636
line = line.replace('!OVERWRITEAXISRANGEFORPBPBVALUE!', "true")
37+
if collision_system == "pbpb":
38+
line = line.replace('!ISLOWFLUX!', "false")
39+
else:
40+
line = line.replace('!ISLOWFLUX!', "true")
3741
return line
3842

3943

MC/config/analysis_testing/json/dpl/o2-analysis-event-selection-qa.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"event-selection-qa-task": {
33
"isMC": "!ANALYSIS_QC_is_mc!",
44
"processMCRun3": "!ANALYSIS_QC_is_mc!",
5+
"isLowFlux": "!ISLOWFLUX!",
56
"processRun2": "false",
67
"processRun3": "true"
78
}

0 commit comments

Comments
 (0)