Skip to content

Commit

Permalink
Set the analysisQC axis range depending on the coll system
Browse files Browse the repository at this point in the history
  • Loading branch information
chiarazampolli committed Jul 11, 2024
1 parent ea7ddc7 commit b88de2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions MC/analysis_testing/o2dpg_analysis_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
def adjust_configuration_line(line, data_or_mc, collision_system):
line = line.replace('!ANALYSIS_QC_is_mc!', str(data_or_mc == ANALYSIS_VALID_MC).lower())
line = line.replace('!ANALYSIS_QC_is_data!', str(data_or_mc == ANALYSIS_VALID_DATA).lower())
if collision_system == "pp":
line = line.replace('!OVERWRITEAXISRANGEFORPBPBVALUE!', "false")
else:
line = line.replace('!OVERWRITEAXISRANGEFORPBPBVALUE!', "true")
return line


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"qa-event-track": {
"checkOnlyPVContributor": "true",
"overwriteAxisRangeForPbPb": "true",
"overwriteAxisRangeForPbPb": "!OVERWRITEAXISRANGEFORPBPBVALUE!",
"processData": "!ANALYSIS_QC_is_data!",
"processDataIU": "false",
"processDataIUFiltered": "false",
Expand Down

0 comments on commit b88de2a

Please sign in to comment.