Skip to content

Commit 99e82b2

Browse files
chiarazampollisawenzel
authored andcommitted
Adding TOF matching QC
1 parent a969da0 commit 99e82b2

File tree

2 files changed

+83
-1
lines changed

2 files changed

+83
-1
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,20 @@ def createRestDigiTask(name, det='ALLSMALLER'):
664664
workflow['stages'].append(TRDDigitsQCtask)
665665

666666
### RECO
667+
### Primary vertex
667668
vertexQCneeds = [PVFINDERtask['name']]
668669
vertexQCtask = createTask(name='vertexQC_local'+str(tf), needs=vertexQCneeds, tf=tf, cwd=timeframeworkdir, lab=["QC"], cpu=1, mem='2000')
669670
vertexQCtask['cmd'] = 'o2-primary-vertex-reader-workflow | o2-qc --config json://${O2DPG_ROOT}/MC/config/QC/json/vertexing-qc-direct-mc.json --local-batch ../' + qcdir + '/vertexQC.root ' + getDPL_global_options()
670671
vertexQCtask['semaphore'] = 'vertexQC'
671672
workflow['stages'].append(vertexQCtask)
672-
673+
674+
### TOF matching
675+
TOFMatchQCneeds = [TOFTPCMATCHERtask['name']]
676+
TOFMatchQCtask = createTask(name='TOFMatchQC_local'+str(tf), needs=TOFMatchQCneeds, tf=tf, cwd=timeframeworkdir, lab=["QC"], cpu=1, mem='2000')
677+
TOFMatchQCtask['cmd'] = 'o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC" --cluster-types none | o2-qc --config json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_ITSTPCTOF_TPCTOF.json --local-batch ../' + qcdir + '/TOFMatchQC.root ' + getDPL_global_options()
678+
TOFMatchQCtask['semaphore'] = 'TOFMatchQC'
679+
workflow['stages'].append(TOFMatchQCtask)
680+
673681

674682
#secondary vertexer
675683
SVFINDERtask = createTask(name='svfinder_'+str(tf), needs=[PVFINDERtask['name']], tf=tf, cwd=timeframeworkdir, lab=["RECO"], cpu=1, mem='5000')
@@ -749,6 +757,11 @@ def createRestDigiTask(name, det='ALLSMALLER'):
749757
vertexQCtask['cmd'] = 'o2-qc --config json://${O2DPG_ROOT}/MC/config/QC/json/vertexing-qc-direct-mc.json --remote-batch vertexQC.root ' + getDPL_global_options()
750758
workflow['stages'].append(vertexQCtask)
751759

760+
TOFMatchQCneeds = ['TOFMatchQC_local'+str(tf) for tf in range(1, NTIMEFRAMES + 1)]
761+
TOFMatchQCtask = createTask(name='TOFMatchQC_finalize', needs=TOFMatchQCneeds, cwd=qcdir, lab=["QC"], cpu=1, mem='2000')
762+
TOFMatchQCtask['cmd'] = 'o2-qc --config json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_ITSTPCTOF_TPCTOF.json --remote-batch TOFMatchQC.root ' + getDPL_global_options()
763+
workflow['stages'].append(TOFMatchQCtask)
764+
752765

753766
dump_workflow(workflow["stages"], args.o)
754767

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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" : { "" : "Configuration of the Infologger (optional).",
25+
"filterDiscardDebug" : "false",
26+
"" : "Set to true to discard debug and trace messages (default: false)",
27+
"filterDiscardLevel" : "21",
28+
"" : "Message at this level or above are discarded (default: 21 - Trace)" }
29+
},
30+
"tasks" : {
31+
"MatchedTracksITSTPCTOF_TPCTOF" : {
32+
"active" : "true",
33+
"className" : "o2::quality_control_modules::tof::TOFMatchedTracks",
34+
"moduleName" : "QcTOF",
35+
"detectorName" : "TOF",
36+
"cycleDurationSeconds" : "10",
37+
"maxNumberCycles" : "-1",
38+
"dataSource" : {
39+
"type" : "direct",
40+
"query_comment" : "checking every matched track",
41+
"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"
42+
},
43+
"taskParameters" : {
44+
"GID" : "ITS-TPC,TPC,ITS-TPC-TOF,TPC-TOF",
45+
"verbose" : "false"
46+
},
47+
"location" : "remote",
48+
"saveObjectsToFile" : "TOFmatchedITSTPCTOF_TPCTOF.root",
49+
"" : "For debugging, path to the file where to save. If empty or missing it won't save."
50+
}
51+
},
52+
"checks" : {
53+
"QcCheck" : {
54+
"active" : "false",
55+
"className" : "o2::quality_control_modules::skeleton::SkeletonCheck",
56+
"moduleName" : "QcSkeleton",
57+
"policy" : "OnAny",
58+
"detectorName" : "TOF",
59+
"dataSource" : [ {
60+
"type" : "Task",
61+
"name" : "QcTask",
62+
"MOs" : ["example"]
63+
} ]
64+
}
65+
}
66+
},
67+
"dataSamplingPolicies" : [
68+
]
69+
}

0 commit comments

Comments
 (0)