Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

porting of MID aQC workflow to MC #1531

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions MC/bin/o2dpg_qc_finalization_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down
7 changes: 7 additions & 0 deletions MC/bin/o2dpg_sim_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down
124 changes: 124 additions & 0 deletions MC/config/QC/json/mid-task.json
Original file line number Diff line number Diff line change
@@ -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": []
}