diff --git a/MC/bin/o2dpg_qc_finalization_workflow.py b/MC/bin/o2dpg_qc_finalization_workflow.py index 593f7a280..58c26bd44 100755 --- a/MC/bin/o2dpg_qc_finalization_workflow.py +++ b/MC/bin/o2dpg_qc_finalization_workflow.py @@ -93,6 +93,8 @@ def add_QC_postprocessing(taskName, qcConfigPath, needs, runSpecific, prodSpecif add_QC_finalization('TOFMatchWithTRDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_AllTypes_direct_MC.json') add_QC_finalization('ITSTrackSimTask', 'json://${O2DPG_ROOT}/MC/config/QC/json/its-mc-tracks-qc.json') add_QC_finalization('ITSTracksClusters', 'json://${O2DPG_ROOT}/MC/config/QC/json/its-clusters-tracks-qc.json') + if isActive('MID'): + add_QC_finalization('MIDTaskQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/mid-task.json') if isActive('FT0') and isActive('TRD'): add_QC_finalization('tofft0PIDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tof.json') elif isActive('FT0'): diff --git a/MC/bin/o2dpg_sim_workflow.py b/MC/bin/o2dpg_sim_workflow.py index b97c94da3..6fa1ac776 100755 --- a/MC/bin/o2dpg_sim_workflow.py +++ b/MC/bin/o2dpg_sim_workflow.py @@ -1300,6 +1300,13 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''): needs=[PHSRECOtask['name']], readerCommand='o2-phos-reco-workflow --input-type cells --output-type clusters --disable-mc --disable-root-output', configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/phs-cells-clusters-task.json') + + ### MID + if isActive('MID'): + addQCPerTF(taskName='MIDTaskQC', + needs=[MIDRECOtask['name']], + readerCommand='o2-mid-digits-reader-workflow | o2-mid-tracks-reader-workflow', + configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/mid-task.json') #secondary vertexer svfinder_threads = ' --threads 1 ' diff --git a/MC/config/QC/json/mid-task.json b/MC/config/QC/json/mid-task.json new file mode 100644 index 000000000..1f76d7ef2 --- /dev/null +++ b/MC/config/QC/json/mid-task.json @@ -0,0 +1,124 @@ +{ + "qc": { + "config": { + "database": { + "implementation": "CCDB", + "host": "ccdb-test.cern.ch:8080", + "username": "not_applicable", + "password": "not_applicable", + "name": "not_applicable" + }, + "Activity": { + "number": "42", + "type": "2", + "provenance": "qc_mc", + "passName": "passMC", + "periodName": "SimChallenge" + }, + "monitoring": { + "url": "no-op://" + }, + "consul": { + "url": "" + }, + "conditionDB": { + "url": "alice-ccdb.cern.ch" + } + }, + "tasks": { + "MIDDigits": { + "active": "true", + "taskName": "Digits", + "className": "o2::quality_control_modules::mid::DigitsQcTask", + "moduleName": "QcMID", + "detectorName": "MID", + "cycleDurationSeconds": "60", + "dataSource": { + "type": "direct", + "query": "digits:MID/DATA;digits_rof:MID/DATAROF" + } + }, + "MIDClusters": { + "active": "true", + "taskName": "Clusters", + "className": "o2::quality_control_modules::mid::ClustQcTask", + "moduleName": "QcMID", + "detectorName": "MID", + "cycleDurationSeconds": "60", + "dataSource": { + "type": "direct", + "query": "clusters:MID/TRACKCLUSTERS;clusterrofs:MID/TRCLUSROFS" + } + }, + "MIDTracks": { + "active": "true", + "taskName": "Tracks", + "className": "o2::quality_control_modules::mid::TracksQcTask", + "moduleName": "QcMID", + "detectorName": "MID", + "cycleDurationSeconds": "60", + "dataSource": { + "type": "direct", + "query": "tracks:MID/TRACKS;trackrofs:MID/TRACKROFS" + } + } + }, + "checks": { + "MIDDigits": { + "active": "true", + "checkName": "Digits", + "className": "o2::quality_control_modules::mid::DigitsQcCheck", + "moduleName": "QcMID", + "detectorName": "MID", + "policy": "OnAny", + "checkParameters": { + "MeanMultThreshold": "100.", + "MinMultThreshold": "0.0", + "NbOrbitPerTF": "32.", + "LocalBoardScale": "200.0", + "LocalBoardThreshold": "800.0", + "NbBadLocalBoard": "10.", + "NbEmptyLocalBoard": "117." + }, + "dataSource": [ + { + "type": "Task", + "name": "MIDDigits" + } + ] + }, + "MIDClusters": { + "active": "true", + "checkName": "Clusters", + "className": "o2::quality_control_modules::mid::ClustQcCheck", + "moduleName": "QcMID", + "detectorName": "MID", + "policy": "OnAny", + "dataSource": [ + { + "type": "Task", + "name": "MIDClusters" + } + ] + }, + "MIDTracks": { + "active": "true", + "checkName": "Tracks", + "className": "o2::quality_control_modules::mid::TracksQcCheck", + "moduleName": "QcMID", + "detectorName": "MID", + "policy": "OnAny", + "checkParameters": { + "Ratio44Threshold": "0.1" + }, + "dataSource": [ + { + "type": "Task", + "name": "MIDTracks" + } + ] + } + } + }, + "dataSamplingPolicies": [] +}