Skip to content

Commit

Permalink
Adding TOF matching QC
Browse files Browse the repository at this point in the history
  • Loading branch information
chiarazampolli authored and sawenzel committed Sep 21, 2021
1 parent a969da0 commit 99e82b2
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 1 deletion.
15 changes: 14 additions & 1 deletion MC/bin/o2dpg_sim_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,12 +664,20 @@ def createRestDigiTask(name, det='ALLSMALLER'):
workflow['stages'].append(TRDDigitsQCtask)

### RECO
### Primary vertex
vertexQCneeds = [PVFINDERtask['name']]
vertexQCtask = createTask(name='vertexQC_local'+str(tf), needs=vertexQCneeds, tf=tf, cwd=timeframeworkdir, lab=["QC"], cpu=1, mem='2000')
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()
vertexQCtask['semaphore'] = 'vertexQC'
workflow['stages'].append(vertexQCtask)


### TOF matching
TOFMatchQCneeds = [TOFTPCMATCHERtask['name']]
TOFMatchQCtask = createTask(name='TOFMatchQC_local'+str(tf), needs=TOFMatchQCneeds, tf=tf, cwd=timeframeworkdir, lab=["QC"], cpu=1, mem='2000')
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()
TOFMatchQCtask['semaphore'] = 'TOFMatchQC'
workflow['stages'].append(TOFMatchQCtask)


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

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


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

Expand Down
69 changes: 69 additions & 0 deletions MC/config/QC/json/tofMatchedTracks_ITSTPCTOF_TPCTOF.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"qc" : {
"config" : {
"database" : {
"implementation" : "CCDB",
"host" : "ccdb-test.cern.ch:8080",
"username" : "not_applicable",
"password" : "not_applicable",
"name" : "not_applicable"
},
"Activity" : {
"number" : "42",
"type" : "2"
},
"monitoring" : {
"url" : "infologger:///debug?qc"
},
"consul" : {
"url" : ""
},
"conditionDB" : {
"url" : "ccdb-test.cern.ch:8080"
},
"infologger" : { "" : "Configuration of the Infologger (optional).",
"filterDiscardDebug" : "false",
"" : "Set to true to discard debug and trace messages (default: false)",
"filterDiscardLevel" : "21",
"" : "Message at this level or above are discarded (default: 21 - Trace)" }
},
"tasks" : {
"MatchedTracksITSTPCTOF_TPCTOF" : {
"active" : "true",
"className" : "o2::quality_control_modules::tof::TOFMatchedTracks",
"moduleName" : "QcTOF",
"detectorName" : "TOF",
"cycleDurationSeconds" : "10",
"maxNumberCycles" : "-1",
"dataSource" : {
"type" : "direct",
"query_comment" : "checking every matched track",
"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"
},
"taskParameters" : {
"GID" : "ITS-TPC,TPC,ITS-TPC-TOF,TPC-TOF",
"verbose" : "false"
},
"location" : "remote",
"saveObjectsToFile" : "TOFmatchedITSTPCTOF_TPCTOF.root",
"" : "For debugging, path to the file where to save. If empty or missing it won't save."
}
},
"checks" : {
"QcCheck" : {
"active" : "false",
"className" : "o2::quality_control_modules::skeleton::SkeletonCheck",
"moduleName" : "QcSkeleton",
"policy" : "OnAny",
"detectorName" : "TOF",
"dataSource" : [ {
"type" : "Task",
"name" : "QcTask",
"MOs" : ["example"]
} ]
}
}
},
"dataSamplingPolicies" : [
]
}

0 comments on commit 99e82b2

Please sign in to comment.