Skip to content

Commit ae8f18e

Browse files
ercolessichiarazampolli
authored andcommitted
Add PID task to workflows + json
change name
1 parent 2e0ae76 commit ae8f18e

File tree

6 files changed

+330
-0
lines changed

6 files changed

+330
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
},
15+
"monitoring": {
16+
"url": "infologger:///debug?qc"
17+
},
18+
"consul": {
19+
"url": ""
20+
},
21+
"conditionDB": {
22+
"url": "ccdb-test.cern.ch:8080"
23+
},
24+
"infologger": {
25+
"": "Configuration of the Infologger (optional).",
26+
"filterDiscardDebug": "false",
27+
"": "Set to true to discard debug and trace messages (default: false)",
28+
"filterDiscardLevel": "21",
29+
"": "Message at this level or above are discarded (default: 21 - Trace)"
30+
}
31+
},
32+
"tasks": {
33+
"TaskFT0TOF": {
34+
"active": "true",
35+
"className": "o2::quality_control_modules::pid::TaskFT0TOF",
36+
"moduleName": "QcTOF",
37+
"detectorName": "TOF",
38+
"cycleDurationSeconds": "10",
39+
"maxNumberCycles": "-1",
40+
"dataSource": {
41+
"type": "direct",
42+
"query_comment": "checking every matched track",
43+
"query": "matchITSTPCTOF:TOF/MTC_ITSTPC/0;trackITSTPC:GLO/TPCITS/0;trackITSTPCABREFS:GLO/TPCITSAB_REFS/0;trackITSTPCABCLID:GLO/TPCITSAB_CLID/0;tofcluster:TOF/CLUSTERS/0;trackTPC:TPC/TRACKS/0;trackTPCClRefs:TPC/CLUSREFS/0;recpoints:FT0/RECPOINTS/0"
44+
},
45+
"taskParameters": {
46+
"GID": "ITS-TPC,TPC,ITS-TPC-TOF",
47+
"verbose": "false",
48+
"minPtCut": "0.3f",
49+
"etaCut": "0.8f",
50+
"minNTPCClustersCut": "60",
51+
"minDCACut": "100.f",
52+
"minDCACutY": "10.f",
53+
"grpFileName": "o2sim_grp.root",
54+
"geomFileName": "o2sim_geometry.root"
55+
},
56+
"location": "remote",
57+
"saveObjectsToFile": "tofft0PIDQC.root",
58+
"": "For debugging, path to the file where to save. If empty or missing it won't save."
59+
}
60+
},
61+
"checks": {
62+
"QcCheck": {
63+
"active": "false",
64+
"className": "o2::quality_control_modules::skeleton::SkeletonCheck",
65+
"moduleName": "QcSkeleton",
66+
"policy": "OnAny",
67+
"detectorName": "TOF",
68+
"dataSource": [{
69+
"type": "Task",
70+
"name": "QcTask",
71+
"MOs": ["example"]
72+
}]
73+
}
74+
}
75+
},
76+
"dataSamplingPolicies": []
77+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
},
15+
"monitoring": {
16+
"url": "infologger:///debug?qc"
17+
},
18+
"consul": {
19+
"url": ""
20+
},
21+
"conditionDB": {
22+
"url": "ccdb-test.cern.ch:8080"
23+
},
24+
"infologger": {
25+
"": "Configuration of the Infologger (optional).",
26+
"filterDiscardDebug": "false",
27+
"": "Set to true to discard debug and trace messages (default: false)",
28+
"filterDiscardLevel": "21",
29+
"": "Message at this level or above are discarded (default: 21 - Trace)"
30+
}
31+
},
32+
"tasks": {
33+
"TaskFT0TOF": {
34+
"active": "true",
35+
"className": "o2::quality_control_modules::pid::TaskFT0TOF",
36+
"moduleName": "QcTOF",
37+
"detectorName": "TOF",
38+
"cycleDurationSeconds": "10",
39+
"maxNumberCycles": "-1",
40+
"dataSource": {
41+
"type": "direct",
42+
"query_comment": "checking every matched track",
43+
"query": "matchITSTPCTOF:TOF/MTC_ITSTPC/0;trackITSTPC:GLO/TPCITS/0;trackITSTPCABREFS:GLO/TPCITSAB_REFS/0;trackITSTPCABCLID:GLO/TPCITSAB_CLID/0;tofcluster:TOF/CLUSTERS/0;trackTPC:TPC/TRACKS/0;trackTPCClRefs:TPC/CLUSREFS/0"
44+
},
45+
"taskParameters": {
46+
"GID": "ITS-TPC,TPC,ITS-TPC-TOF",
47+
"verbose": "false",
48+
"minPtCut": "0.3f",
49+
"etaCut": "0.8f",
50+
"minNTPCClustersCut": "60",
51+
"minDCACut": "100.f",
52+
"minDCACutY": "10.f",
53+
"grpFileName": "o2sim_grp.root",
54+
"geomFileName": "o2sim_geometry.root"
55+
},
56+
"location": "remote",
57+
"saveObjectsToFile": "TOFPID.root",
58+
"": "For debugging, path to the file where to save. If empty or missing it won't save."
59+
}
60+
},
61+
"checks": {
62+
"QcCheck": {
63+
"active": "false",
64+
"className": "o2::quality_control_modules::skeleton::SkeletonCheck",
65+
"moduleName": "QcSkeleton",
66+
"policy": "OnAny",
67+
"detectorName": "TOF",
68+
"dataSource": [{
69+
"type": "Task",
70+
"name": "QcTask",
71+
"MOs": ["example"]
72+
}]
73+
}
74+
}
75+
},
76+
"dataSamplingPolicies": []
77+
}

MC/bin/o2dpg_qc_finalization_workflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def add_QC_finalization(taskName, qcConfigPath, needs=None):
6262
add_QC_finalization('tofDigitsQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/tofdigits.json')
6363
add_QC_finalization('TOFMatchWithTRDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_AllTypes_direct_MC.json')
6464
add_QC_finalization('ITSTrackSimTask', 'json://${O2DPG_ROOT}/MC/config/QC/json/its-mc-tracks-qc.json')
65+
add_QC_finalization('tofft0PIDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tof.json')
66+
add_QC_finalization('tofPIDQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/pidtof.json')
6567
add_QC_finalization('RecPointsQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/ft0-reconstruction-config.json')
6668

6769
return stages

MC/bin/o2dpg_sim_workflow.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,20 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
912912
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/tofdigits.json',
913913
objectsFile='tofDigitsQC.root')
914914

915+
if isActive('TOF'):
916+
if isActive('FT0'):
917+
addQCPerTF(taskName='tofft0PIDQC',
918+
needs=[ITSTPCMATCHtask['name']],
919+
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC,TPC,ITS-TPC-TOF,TPC-TOF" --cluster-types FT0',
920+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tof.json',
921+
objectsFile='tofft0PIDQC.root')
922+
else:
923+
addQCPerTF(taskName='tofPIDQC',
924+
needs=[ITSTPCMATCHtask['name']],
925+
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC,TPC,ITS-TPC-TOF,TPC-TOF" --cluster-types none',
926+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidtof.json',
927+
objectsFile='tofPIDQC.root')
928+
915929
### EMCAL
916930
if isActive('EMC'):
917931
addQCPerTF(taskName='emcDigitsQC',

MC/config/QC/json/pidft0tof.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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;trackITSTPC:GLO/TPCITS/0;trackITSTPCABREFS:GLO/TPCITSAB_REFS/0;trackITSTPCABCLID:GLO/TPCITSAB_CLID/0;tofcluster:TOF/CLUSTERS/0;trackTPC:TPC/TRACKS/0;trackTPCClRefs:TPC/CLUSREFS/0;recpoints:FT0/RECPOINTS/0"
47+
},
48+
"taskParameters": {
49+
"GID": "ITS-TPC,TPC,ITS-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.root"
58+
},
59+
"location": "remote",
60+
"saveObjectsToFile": "tofft0PIDQC.root",
61+
"": "For debugging, path to the file where to save. If empty or missing it won't save."
62+
}
63+
},
64+
"checks": {
65+
"QcCheck": {
66+
"active": "false",
67+
"className": "o2::quality_control_modules::skeleton::SkeletonCheck",
68+
"moduleName": "QcSkeleton",
69+
"policy": "OnAny",
70+
"detectorName": "TOF",
71+
"dataSource": [{
72+
"type": "Task",
73+
"name": "QcTask",
74+
"MOs": ["example"]
75+
}]
76+
}
77+
}
78+
},
79+
"dataSamplingPolicies": []
80+
}

MC/config/QC/json/pidtof.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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;trackITSTPC:GLO/TPCITS/0;trackITSTPCABREFS:GLO/TPCITSAB_REFS/0;trackITSTPCABCLID:GLO/TPCITSAB_CLID/0;tofcluster:TOF/CLUSTERS/0;trackTPC:TPC/TRACKS/0;trackTPCClRefs:TPC/CLUSREFS/0"
47+
},
48+
"taskParameters": {
49+
"GID": "ITS-TPC,TPC,ITS-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.root"
58+
},
59+
"location": "remote",
60+
"saveObjectsToFile": "tofPIDQC.root",
61+
"": "For debugging, path to the file where to save. If empty or missing it won't save."
62+
}
63+
},
64+
"checks": {
65+
"QcCheck": {
66+
"active": "false",
67+
"className": "o2::quality_control_modules::skeleton::SkeletonCheck",
68+
"moduleName": "QcSkeleton",
69+
"policy": "OnAny",
70+
"detectorName": "TOF",
71+
"dataSource": [{
72+
"type": "Task",
73+
"name": "QcTask",
74+
"MOs": ["example"]
75+
}]
76+
}
77+
}
78+
},
79+
"dataSamplingPolicies": []
80+
}

0 commit comments

Comments
 (0)