Skip to content

Commit

Permalink
TRD: add tracking QC task for mc workflow (#1467)
Browse files Browse the repository at this point in the history
* TRD;) tracking task  in mc workflow

* rmove digit query from tracklet task

* removed not maxNumberCycles, applicable items

* trd-digit-task name change to trd-standalone-task

* Update MC/config/QC/json/trd-tracking-task.json

Co-authored-by: Ole Schmidt <[email protected]>

* Update MC/config/QC/json/trd-tracking-task.json

* readerCommand configured with TPC_TRD

---------

Co-authored-by: Ole Schmidt <[email protected]>
  • Loading branch information
nasirmehdimalik and martenole authored Mar 7, 2024
1 parent 73fe052 commit 10b933c
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 10 deletions.
3 changes: 2 additions & 1 deletion MC/bin/o2dpg_qc_finalization_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def add_QC_postprocessing(taskName, qcConfigPath, needs, runSpecific, prodSpecif
add_QC_finalization('emcBCQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/emc-reco-tasks.json')
#add_QC_finalization('tpcTrackingQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/tpc-qc-tracking-direct.json')
add_QC_finalization('tpcStandardQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/tpc-qc-standard-direct.json')
add_QC_finalization('trdDigitsQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/trd-digits-task.json')
add_QC_finalization('trdDigitsQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/trd-standalone-task.json')
add_QC_finalization('trdTrackingQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/trd-tracking-task.json')
add_QC_finalization('vertexQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/vertexing-qc-direct-mc.json')
add_QC_finalization('ITSTPCmatchQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/ITSTPCmatchedTracks_direct_MC.json')
add_QC_finalization('TOFMatchQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_ITSTPCTOF_TPCTOF_direct_MC.json')
Expand Down
7 changes: 6 additions & 1 deletion MC/bin/o2dpg_sim_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,12 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
addQCPerTF(taskName='trdDigitsQC',
needs=[TRDDigitask['name']],
readerCommand='o2-trd-trap-sim',
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/trd-digits-task.json')
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/trd-standalone-task.json')

addQCPerTF(taskName='trdTrackingQC',
needs=[TRDTRACKINGtask2['name']],
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC-TRD,TPC-TRD" --cluster-types none',
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/trd-tracking-task.json')

### TOF
addQCPerTF(taskName='tofDigitsQC',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
"config": {
"database": {
"implementation": "CCDB",
"host": "ccdb-test.cern.ch:8080",
"username": "not_applicable",
"password": "not_applicable",
"name": "not_applicable"
},
"host": "ccdb-test.cern.ch:8080"
},
"Activity": {
"number": "42",
"type": "2",
Expand All @@ -31,8 +28,7 @@
"className": "o2::quality_control_modules::trd::DigitsTask",
"moduleName": "QcTRD",
"detectorName": "TRD",
"cycleDurationSeconds": "60",
"maxNumberCycles": "-1",
"cycleDurationSeconds": "60",
"dataSource": {
"type": "direct",
"query": "digits:TRD/DIGITS;tracklets:TRD/TRACKLETS;triggers:TRD/TRKTRGRD;noiseMap:TRD/NOISEMAP/0?lifetime=condition&ccdb-path=TRD/Calib/NoiseMapMCM;chamberStatus:TRD/CHSTATUS/0?lifetime=condition&ccdb-path=TRD/Calib/HalfChamberStatusQC;fedChamberStatus:TRD/FCHSTATUS/0?lifetime=condition&ccdb-path=TRD/Calib/DCSDPsFedChamberStatus"
Expand All @@ -43,7 +39,18 @@
"pulseheightpeaklower": "1.0",
"pulseheightpeakupper": "5.0"
}
}
},
"Tracklets": {
"active": "true",
"className": "o2::quality_control_modules::trd::TrackletsTask",
"moduleName": "QcTRD",
"detectorName": "TRD",
"cycleDurationSeconds": "60",
"dataSource": {
"type": "direct",
"query": "tracklets:TRD/TRACKLETS;triggers:TRD/TRKTRGRD;noiseMap:TRD/NOISEMAP/0?lifetime=condition&ccdb-path=TRD/Calib/NoiseMapMCM;chamberStatus:TRD/CHSTATUS/0?lifetime=condition&ccdb-path=TRD/Calib/HalfChamberStatusQC;fedChamberStatus:TRD/FCHSTATUS/0?lifetime=condition&ccdb-path=TRD/Calib/DCSDPsFedChamberStatus"
}
}
},
"dataSamplingPolicies": []
}
Expand Down
44 changes: 44 additions & 0 deletions MC/config/QC/json/trd-tracking-task.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"qc": {
"config": {
"database": {
"implementation": "CCDB",
"host": "ccdb-test.cern.ch:8080"
},
"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": {
"Tracking": {
"active": "true",
"className": "o2::quality_control_modules::trd::TrackingTask",
"moduleName": "QcTRD",
"detectorName": "TRD",
"cycleDurationSeconds": "60",
"dataSource": {
"type": "direct",
"query": "trackITSTPCTRD:TRD/MATCH_ITSTPC;trigITSTPCTRD:TRD/TRGREC_ITSTPC;trackTPCTRD:TRD/MATCH_TPC;trigTPCTRD:TRD/TRGREC_TPC"
},
"taskParameters": {
"detailedQC": "false",
"trackSources": "ITS-TPC-TRD,TPC-TRD"
}
}
},
"dataSamplingPolicies": []
}
}

0 comments on commit 10b933c

Please sign in to comment.