@@ -918,14 +918,16 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
918918 needs = [ITSTPCMATCHtask ['name' ]],
919919 readerCommand = 'o2-global-track-cluster-reader --track-types "TPC,ITS-TPC"' ,
920920 configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/ITSTPCmatchedTracks_direct_MC.json' )
921- addQCPerTF (taskName = 'TOFMatchQC' ,
922- needs = [TOFTPCMATCHERtask ['name' ]],
923- readerCommand = 'o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC" --cluster-types none' ,
924- configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_ITSTPCTOF_TPCTOF_direct_MC.json' )
925- addQCPerTF (taskName = 'TOFMatchWithTRDQC' ,
926- needs = [TOFTPCMATCHERtask ['name' ]],
927- 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' ,
928- configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_AllTypes_direct_MC.json' )
921+ if isActive ('TOF' ):
922+ addQCPerTF (taskName = 'TOFMatchQC' ,
923+ needs = [TOFTPCMATCHERtask ['name' ]],
924+ readerCommand = 'o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC" --cluster-types none' ,
925+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_ITSTPCTOF_TPCTOF_direct_MC.json' )
926+ if isActive ('TOF' ) and isActive ('TRD' ):
927+ addQCPerTF (taskName = 'TOFMatchWithTRDQC' ,
928+ needs = [TOFTPCMATCHERtask ['name' ]],
929+ 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' ,
930+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/tofMatchedTracks_AllTypes_direct_MC.json' )
929931
930932 #secondary vertexer
931933 svfinder_threads = ' --threads 1 '
0 commit comments