Skip to content

Commit aa54ffa

Browse files
sevdokimsawenzel
authored andcommitted
CPV, PHS: add QC tasks to MC
1 parent e0e805d commit aa54ffa

6 files changed

Lines changed: 496 additions & 1 deletion

File tree

MC/bin/o2dpg_qc_finalization_workflow.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ def add_QC_postprocessing(taskName, qcConfigPath, needs, runSpecific, prodSpecif
9898
else:
9999
add_QC_finalization('tofPIDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/pidtofNoTRD.json')
100100
add_QC_finalization('RecPointsQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/ft0-reconstruction-config.json')
101+
add_QC_finalization('CPVDigitsQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/cpv-digits-task.json')
102+
add_QC_finalization('CPVClustersQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/cpv-clusters-task.json')
103+
add_QC_finalization('PHSCellsClustersQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/phs-cells-clusters-task.json')
101104

102105
# The list of QC Post-processing workflows
103106
add_QC_postprocessing('tofTrendingHits', 'json://${O2DPG_ROOT}/MC/config/QC/json/tof-trending-hits.json', [QC_finalize_name('tofDigitsQC')], runSpecific=False, prodSpecific=True)

MC/bin/o2dpg_sim_workflow.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,24 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
12721272
readerCommand='o2-global-track-cluster-reader --track-types "ITS" --cluster-types "ITS"',
12731273
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/its-clusters-tracks-qc.json')
12741274

1275+
### CPV
1276+
if isActive('CPV'):
1277+
addQCPerTF(taskName='CPVDigitsQC',
1278+
needs=[getDigiTaskName("CPV")],
1279+
readerCommand='o2-cpv-digit-reader-workflow',
1280+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/cpv-digits-task.json')
1281+
addQCPerTF(taskName='CPVClustersQC',
1282+
needs=[CPVRECOtask['name']],
1283+
readerCommand='o2-cpv-cluster-reader-workflow',
1284+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/cpv-clusters-task.json')
1285+
1286+
### PHS
1287+
if isActive('PHS'):
1288+
addQCPerTF(taskName='PHSCellsClustersQC',
1289+
needs=[PHSRECOtask['name']],
1290+
readerCommand='o2-phos-reco-workflow --input-type cells --output-type clusters --disable-mc --disable-root-output',
1291+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/phs-cells-clusters-task.json')
1292+
12751293
#secondary vertexer
12761294
svfinder_threads = ' --threads 1 '
12771295
svfinder_cpu = 1
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"qc": {
3+
"config": {
4+
"database": {
5+
"implementation": "CCDB",
6+
"host": "ccdb-test.cern.ch:8080",
7+
"username": "not_applicable",
8+
"password": "not_applicable",
9+
"name": "not_applicable"
10+
},
11+
"Activity": {
12+
"number": "42",
13+
"type": "2",
14+
"provenance": "qc_mc",
15+
"passName": "passMC",
16+
"periodName": "SimChallenge"
17+
},
18+
"monitoring": {
19+
"url": "infologger:///debug?qc"
20+
},
21+
"consul": {
22+
"url": ""
23+
},
24+
"conditionDB": {
25+
"url": "ccdb-test.cern.ch:8080"
26+
}
27+
},
28+
"tasks": {
29+
"Clusters": {
30+
"active": "true",
31+
"className": "o2::quality_control_modules::cpv::PhysicsTask",
32+
"moduleName": "QcCPV",
33+
"detectorName": "CPV",
34+
"cycleDurationSeconds": "30",
35+
"maxNumberCycles": "-1",
36+
"dataSource": {
37+
"type": "direct",
38+
"query": "clusters:CPV/CLUSTERS/0;ctrigrec:CPV/CLUSTERTRIGRECS/0"
39+
},
40+
"taskParameters": {
41+
"ccdbCheckInterval": "1000",
42+
"isAsyncMode": "1"
43+
}
44+
}
45+
}
46+
},
47+
"dataSamplingPolicies": []
48+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"qc": {
3+
"config": {
4+
"database": {
5+
"implementation": "CCDB",
6+
"host": "ccdb-test.cern.ch:8080",
7+
"username": "not_applicable",
8+
"password": "not_applicable",
9+
"name": "not_applicable"
10+
},
11+
"Activity": {
12+
"number": "42",
13+
"type": "2",
14+
"provenance": "qc_mc",
15+
"passName": "passMC",
16+
"periodName": "SimChallenge"
17+
},
18+
"monitoring": {
19+
"url": "infologger:///debug?qc"
20+
},
21+
"consul": {
22+
"url": ""
23+
},
24+
"conditionDB": {
25+
"url": "ccdb-test.cern.ch:8080"
26+
}
27+
},
28+
"tasks": {
29+
"Digits": {
30+
"active": "true",
31+
"className": "o2::quality_control_modules::cpv::PhysicsTask",
32+
"moduleName": "QcCPV",
33+
"detectorName": "CPV",
34+
"cycleDurationSeconds": "30",
35+
"maxNumberCycles": "-1",
36+
"dataSource": {
37+
"type": "direct",
38+
"query": "digits:CPV/DIGITS/0;dtrigrec:CPV/DIGITTRIGREC/0"
39+
},
40+
"taskParameters": {
41+
"ccdbCheckInterval": "1000",
42+
"isAsyncMode": "1"
43+
}
44+
}
45+
}
46+
},
47+
"dataSamplingPolicies": []
48+
}

0 commit comments

Comments
 (0)