Skip to content

Commit 5b2ae64

Browse files
IsakovADJianLIUhep
andauthored
New ITS MC Track task (#299)
* Added ITS MC Track task * Added forgotten files * Cleared .json file, global-track-reader instead of o2-its-reco * Returned QC task parameters in accordance to new ITS QC PR Co-authored-by: JianLIUhep <jian.liu@cern.ch>
1 parent c9d6db5 commit 5b2ae64

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

MC/bin/o2dpg_qc_finalization_workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def add_QC_finalization(taskName, qcConfigPath, needs=None):
6161
add_QC_finalization('TOFMatchQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_ITSTPCTOF_TPCTOF_direct_MC.json')
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')
64+
add_QC_finalization('ITSTrackSimTask', 'json://${O2DPG_ROOT}/MC/config/QC/json/its-mc-tracks-qc.json')
6465
add_QC_finalization('RecPointsQC', 'json://${O2DPG_ROOT}/MC/config/QC/json/ft0-reconstruction-config.json')
6566

6667
return stages

MC/bin/o2dpg_sim_workflow.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,11 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
933933
needs=[TOFTPCMATCHERtask['name']],
934934
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',
935935
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_AllTypes_direct_MC.json')
936+
### ITS
937+
addQCPerTF(taskName='ITSTrackSimTask',
938+
needs=[ITSRECOtask['name']],
939+
readerCommand='o2-global-track-cluster-reader --track-types "ITS" --cluster-types "ITS"',
940+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/its-mc-tracks-qc.json')
936941

937942
#secondary vertexer
938943
svfinder_threads = ' --threads 1 '
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
"ITSTrackSimTask" : {
30+
"active" : "true",
31+
"className" : "o2::quality_control_modules::its::ITSTrackSimTask",
32+
"moduleName" : "QcITS",
33+
"detectorName" : "ITS",
34+
"cycleDurationSeconds" : "30",
35+
"maxNumberCycles" : "-1",
36+
"dataSource_comment" : "The other type of dataSource is \"direct\", see basic-no-sampling.json.",
37+
"dataSource" : {
38+
"type" : "direct",
39+
"query" : "tracks:ITS/TRACKS/0;mstruth:ITS/TRACKSMCTR/0;compclus:ITS/COMPCLUSTERS/0;mcclustruth:ITS/CLUSTERSMCTR/0"
40+
},
41+
"taskParameters" : {
42+
"O2GrpPath" : "./o2sim_grp.root",
43+
"collisionsContextPath": "./collisioncontext.root"
44+
}
45+
46+
}
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)