Skip to content

Commit 1c4641e

Browse files
committed
also disable TOF QC tasks when TOF not present
1 parent 0ed0a86 commit 1c4641e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,27 +1805,27 @@ def remove_json_prefix(path):
18051805
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/tofdigits.json',
18061806
objectsFile='tofDigitsQC.root')
18071807

1808-
# depending if TRD and FT0 are available
1809-
if isActive('FT0') and isActive('TRD'):
1810-
addQCPerTF(taskName='tofft0PIDQC',
1808+
# depending if TRD and FT0 are available
1809+
if isActive('FT0') and isActive('TRD'):
1810+
addQCPerTF(taskName='tofft0PIDQC',
18111811
needs=[TOFTPCMATCHERtask['name'], FT0RECOtask['name']],
18121812
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',
18131813
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tof.json')
1814-
elif isActive('FT0'):
1815-
addQCPerTF(taskName='tofft0PIDQC',
1814+
elif isActive('FT0'):
1815+
addQCPerTF(taskName='tofft0PIDQC',
18161816
needs=[TOFTPCMATCHERtask['name']],
18171817
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC" --cluster-types FT0',
1818-
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tofNoTRD.json')
1819-
elif isActive('TRD'):
1820-
addQCPerTF(taskName='tofPIDQC',
1818+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidft0tofNoTRD.json')
1819+
elif isActive('TRD'):
1820+
addQCPerTF(taskName='tofPIDQC',
18211821
needs=[TOFTPCMATCHERtask['name']],
18221822
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',
1823-
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidtof.json')
1824-
else:
1825-
addQCPerTF(taskName='tofPIDQC',
1823+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidtof.json')
1824+
else:
1825+
addQCPerTF(taskName='tofPIDQC',
18261826
needs=[TOFTPCMATCHERtask['name']],
18271827
readerCommand='o2-global-track-cluster-reader --track-types "ITS-TPC-TOF,TPC-TOF,TPC" --cluster-types none',
1828-
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidtofNoTRD.json')
1828+
configFilePath='json://${O2DPG_ROOT}/MC/config/QC/json/pidtofNoTRD.json')
18291829

18301830
### EMCAL
18311831
if isActive('EMC'):

0 commit comments

Comments
 (0)