Skip to content

Commit 4b753ef

Browse files
noferinisawenzel
authored andcommitted
select proper json depending on sources TOFPID
1 parent aee5e59 commit 4b753ef

4 files changed

Lines changed: 159 additions & 11 deletions

File tree

MC/bin/o2dpg_qc_finalization_workflow.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,16 @@ def add_QC_postprocessing(taskName, qcConfigPath, needs, runSpecific, prodSpecif
8888
add_QC_finalization('tofDigitsQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/tofdigits.json')
8989
add_QC_finalization('TOFMatchWithTRDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_AllTypes_direct_MC.json')
9090
add_QC_finalization('ITSTrackSimTask', 'json://${O2DPG_ROOT}/MC/config/QC/json/its-mc-tracks-qc.json')
91-
add_QC_finalization('tofft0PIDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tof.json')
92-
add_QC_finalization('tofPIDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/pidtof.json')
91+
if isActive('FT0') and isActive('TRD'):
92+
add_QC_finalization('tofft0PIDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tof.json')
93+
elif isActive('FT0'):
94+
add_QC_finalization('tofft0PIDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tofNoTRD.json')
95+
elif isActive('TRD'):
96+
add_QC_finalization('tofPIDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/pidtof.json')
97+
else:
98+
add_QC_finalization('tofPIDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/pidtofNoTRD.json')
9399
add_QC_finalization('RecPointsQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/ft0-reconstruction-config.json')
94-
100+
95101
# The list of QC Post-processing workflows
96102
add_QC_postprocessing('tofTrendingHits', 'json://${O2DPG_ROOT}/MC/config/QC/json/tof-trending-hits.json', [QC_finalize_name('tofDigitsQC')], runSpecific=False, prodSpecific=True)
97103

MC/bin/o2dpg_sim_workflow.py

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,14 +1024,27 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
10241024
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/tofdigits.json',
10251025
objectsFile='tofDigitsQC.root')
10261026

1027-
addQCPerTF(taskName='tofft0PIDQC',
1028-
needs=[TOFTPCMATCHERtask['name'], FT0RECOtask['name']],
1029-
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC,ITS-TPC-TRD,ITS-TPC-TRD-TOF,TPC-TRD,TPC-TRD-TOF" --cluster-types FT0',
1030-
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tof.json')
1031-
addQCPerTF(taskName='tofPIDQC',
1032-
needs=[TOFTPCMATCHERtask['name']],
1033-
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC,ITS-TPC-TRD,ITS-TPC-TRD-TOF,TPC-TRD,TPC-TRD-TOF" --cluster-types none',
1034-
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidtof.json')
1027+
# depending if TRD and FT0 are available
1028+
if isActive('FT0') and isActive('TRD'):
1029+
addQCPerTF(taskName='tofft0PIDQC',
1030+
needs=[TOFTPCMATCHERtask['name'], FT0RECOtask['name']],
1031+
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC,ITS-TPC-TRD,ITS-TPC-TRD-TOF,TPC-TRD,TPC-TRD-TOF" --cluster-types FT0',
1032+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tof.json')
1033+
elif isActive('FT0'):
1034+
addQCPerTF(taskName='tofft0PIDQC',
1035+
needs=[TOFTPCMATCHERtask['name']],
1036+
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC" --cluster-types FT0',
1037+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tofNoTRD.json')
1038+
elif isActive('TRD'):
1039+
addQCPerTF(taskName='tofPIDQC',
1040+
needs=[TOFTPCMATCHERtask['name']],
1041+
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC,ITS-TPC-TRD,ITS-TPC-TRD-TOF,TPC-TRD,TPC-TRD-TOF" --cluster-types none',
1042+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidtof.json')
1043+
else:
1044+
addQCPerTF(taskName='tofPIDQC',
1045+
needs=[TOFTPCMATCHERtask['name']],
1046+
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC" --cluster-types none',
1047+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidtofNoTRD.json')
10351048

10361049
### EMCAL
10371050
if isActive('EMC'):
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
"infologger": {
28+
"": "Configuration of the Infologger (optional).",
29+
"filterDiscardDebug": "false",
30+
"": "Set to true to discard debug and trace messages (default: false)",
31+
"filterDiscardLevel": "21",
32+
"": "Message at this level or above are discarded (default: 21 - Trace)"
33+
}
34+
},
35+
"tasks": {
36+
"TaskFT0TOF": {
37+
"active": "true",
38+
"className": "o2::quality_control_modules::pid::TaskFT0TOF",
39+
"moduleName": "QcTOF",
40+
"detectorName": "TOF",
41+
"cycleDurationSeconds": "10",
42+
"maxNumberCycles": "-1",
43+
"dataSource": {
44+
"type": "direct",
45+
"query_comment": "checking every matched track",
46+
"query" : "matchITSTPCTOF:TOF/MTC_ITSTPC/0;matchTPCTOF:TOF/MTC_TPC/0;trackTPCTOF:TOF/TOFTRACKS_TPC/0;trackITSTPC:GLO/TPCITS/0;trackITSTPCABREFS:GLO/TPCITSAB_REFS/0;trackITSTPCABCLID:GLO/TPCITSAB_CLID/0;trackTPC:TPC/TRACKS/0;trackTPCClRefs:TPC/CLUSREFS/0;tofcluster:TOF/CLUSTERS/0;trackTPCMCTR:TPC/TRACKSMCLBL;trackITSTPCMCTR:GLO/TPCITS_MC;trackITSTPCABMCTR:GLO/TPCITSAB_MC;clsTOF_TPC_MCTR:TOF/MCMTC_TPC;clsTOF_GLO_MCTR:TOF/MCMTC_ITSTPC;recpoints:FT0/RECPOINTS/0"
47+
},
48+
"taskParameters": {
49+
"GID" : "ITS-TPC,TPC,ITS-TPC-TOF,TPC-TOF",
50+
"verbose": "false",
51+
"minPtCut": "0.3f",
52+
"etaCut": "0.8f",
53+
"useFT0": "true",
54+
"minNTPCClustersCut": "60",
55+
"minDCACut": "100.f",
56+
"minDCACutY": "10.f",
57+
"grpFileName": "o2sim_grp.root",
58+
"geomFileName": "o2sim_geometry-aligned.root"
59+
},
60+
"": "For debugging, path to the file where to save. If empty or missing it won't save."
61+
}
62+
}
63+
},
64+
"dataSamplingPolicies": []
65+
}

MC/config/QC/json/pidtofNoTRD.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
"infologger": {
28+
"": "Configuration of the Infologger (optional).",
29+
"filterDiscardDebug": "false",
30+
"": "Set to true to discard debug and trace messages (default: false)",
31+
"filterDiscardLevel": "21",
32+
"": "Message at this level or above are discarded (default: 21 - Trace)"
33+
}
34+
},
35+
"tasks": {
36+
"TaskFT0TOF": {
37+
"active": "true",
38+
"className": "o2::quality_control_modules::pid::TaskFT0TOF",
39+
"moduleName": "QcTOF",
40+
"detectorName": "TOF",
41+
"cycleDurationSeconds": "10",
42+
"maxNumberCycles": "-1",
43+
"dataSource": {
44+
"type": "direct",
45+
"query_comment": "checking every matched track",
46+
"query" : "matchITSTPCTOF:TOF/MTC_ITSTPC/0;matchTPCTOF:TOF/MTC_TPC/0;trackTPCTOF:TOF/TOFTRACKS_TPC/0;trackITSTPC:GLO/TPCITS/0;trackITSTPCABREFS:GLO/TPCITSAB_REFS/0;trackITSTPCABCLID:GLO/TPCITSAB_CLID/0;trackTPC:TPC/TRACKS/0;trackTPCClRefs:TPC/CLUSREFS/0;tofcluster:TOF/CLUSTERS/0;trackTPCMCTR:TPC/TRACKSMCLBL;trackITSTPCMCTR:GLO/TPCITS_MC;trackITSTPCABMCTR:GLO/TPCITSAB_MC;clsTOF_TPC_MCTR:TOF/MCMTC_TPC;clsTOF_GLO_MCTR:TOF/MCMTC_ITSTPC"
47+
},
48+
"taskParameters": {
49+
"GID" : "ITS-TPC,TPC,ITS-TPC-TOF,TPC-TOF",
50+
"verbose": "false",
51+
"minPtCut": "0.3f",
52+
"etaCut": "0.8f",
53+
"minNTPCClustersCut": "60",
54+
"minDCACut": "100.f",
55+
"minDCACutY": "10.f",
56+
"grpFileName": "o2sim_grp.root",
57+
"geomFileName": "o2sim_geometry-aligned.root"
58+
},
59+
"": "For debugging, path to the file where to save. If empty or missing it won't save."
60+
}
61+
}
62+
},
63+
"dataSamplingPolicies": []
64+
}

0 commit comments

Comments
 (0)