Skip to content

Commit df71dae

Browse files
Set the analysisQC axis range depending on the coll system (#1696)
(cherry picked from commit ee5483b)
1 parent b4ce1b7 commit df71dae

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

MC/analysis_testing/o2dpg_analysis_test_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
def adjust_configuration_line(line, data_or_mc, collision_system):
3131
line = line.replace('!ANALYSIS_QC_is_mc!', str(data_or_mc == ANALYSIS_VALID_MC).lower())
3232
line = line.replace('!ANALYSIS_QC_is_data!', str(data_or_mc == ANALYSIS_VALID_DATA).lower())
33+
if collision_system == "pp":
34+
line = line.replace('!OVERWRITEAXISRANGEFORPBPBVALUE!', "false")
35+
else:
36+
line = line.replace('!OVERWRITEAXISRANGEFORPBPBVALUE!', "true")
3337
return line
3438

3539

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"qa-event-track": {
33
"checkOnlyPVContributor": "true",
4-
"overwriteAxisRangeForPbPb": "true",
4+
"overwriteAxisRangeForPbPb": "!OVERWRITEAXISRANGEFORPBPBVALUE!",
55
"processData": "!ANALYSIS_QC_is_data!",
66
"processDataIU": "false",
77
"processDataIUFiltered": "false",

0 commit comments

Comments
 (0)