@@ -1024,14 +1024,27 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
10241024 configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/tofdigits.json' ,
10251025 objectsFile = 'tofDigitsQC.root' )
10261026
1027- addQCPerTF (taskName = 'tofft0PIDQC' ,
1028- needs = [TOFTPCMATCHERtask ['name' ], FT0RECOtask ['name' ]],
1029- 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 FT0' ,
1030- configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tof.json' )
1031- addQCPerTF (taskName = 'tofPIDQC' ,
1032- needs = [TOFTPCMATCHERtask ['name' ]],
1033- 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' ,
1034- configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/pidtof.json' )
1027+ # depending if TRD and FT0 are available
1028+ if isActive ('FT0' ) and isActive ('TRD' ):
1029+ addQCPerTF (taskName = 'tofft0PIDQC' ,
1030+ needs = [TOFTPCMATCHERtask ['name' ], FT0RECOtask ['name' ]],
1031+ 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 FT0' ,
1032+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tof.json' )
1033+ elif isActive ('FT0' ):
1034+ addQCPerTF (taskName = 'tofft0PIDQC' ,
1035+ needs = [TOFTPCMATCHERtask ['name' ]],
1036+ readerCommand = 'o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC" --cluster-types FT0' ,
1037+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tofNoTRD.json' )
1038+ elif isActive ('TRD' ):
1039+ addQCPerTF (taskName = 'tofPIDQC' ,
1040+ needs = [TOFTPCMATCHERtask ['name' ]],
1041+ 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' ,
1042+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/pidtof.json' )
1043+ else :
1044+ addQCPerTF (taskName = 'tofPIDQC' ,
1045+ needs = [TOFTPCMATCHERtask ['name' ]],
1046+ readerCommand = 'o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC" --cluster-types none' ,
1047+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/pidtofNoTRD.json' )
10351048
10361049 ### EMCAL
10371050 if isActive ('EMC' ):
0 commit comments