@@ -1382,13 +1382,13 @@ def getDigiTaskName(det):
13821382 workflow ['stages' ].append (FT0RECOtask )
13831383
13841384 #<--------- ITS-TPC track matching task
1385- ITSTPCMATCHtask = createTask (name = 'itstpcMatch_' + str (tf ), needs = [TPCRECOtask ['name' ], ITSRECOtask ['name' ], FT0RECOtask ['name' ]], tf = tf , cwd = timeframeworkdir , lab = ["RECO" ], mem = '8000' , relative_cpu = 3 / 8 )
1385+ ITSTPCMATCHtask = createTask (name = 'itstpcMatch_' + str (tf ), needs = [TPCRECOtask ['name' ], ITSRECOtask ['name' ], FT0RECOtask ['name' ] if isActive ( "FT0" ) else None ], tf = tf , cwd = timeframeworkdir , lab = ["RECO" ], mem = '8000' , relative_cpu = 3 / 8 )
13861386 ITSTPCMATCHtask ["cmd" ] = task_finalizer ([
13871387 '${O2_ROOT}/bin/o2-tpcits-match-workflow' ,
13881388 getDPL_global_options (bigshm = True ),
13891389 ' --tpc-track-reader tpctracks.root' ,
13901390 '--tpc-native-cluster-reader \" --infile tpc-native-clusters.root\" ' ,
1391- '--use-ft0' ,
1391+ '--use-ft0' if isActive ( "FT0" ) else None ,
13921392 putConfigValues (['MFTClustererParam' ,
13931393 'ITSCATrackerParam' ,
13941394 'tpcitsMatch' ,
@@ -1468,7 +1468,7 @@ def getDigiTaskName(det):
14681468 'trackTuneParams' ], tpcLocalCFreco ),
14691469 ' --track-sources ' + toftracksrcdefault ,
14701470 (' --combine-devices' ,'' )[args .no_combine_dpl_devices ],
1471- tofusefit ,
1471+ tofusefit if isActive ( "FT0" ) else None ,
14721472 tpc_corr_scaling_options ,
14731473 tpc_corr_options_mc
14741474 ]
@@ -1493,7 +1493,8 @@ def getDigiTaskName(det):
14931493 'MFTClustererParam' ]),
14941494 ('' ,'--disable-mc' )[args .no_mc_labels ],
14951495 ('' ,'--run-assessment' )[args .mft_assessment_full ]])
1496- workflow ['stages' ].append (MFTRECOtask )
1496+ if isActive ("MFT" ):
1497+ workflow ['stages' ].append (MFTRECOtask )
14971498
14981499 # MCH reco: needing access to kinematics ... so some extra logic needed here
14991500 mchreconeeds = [getDigiTaskName ("MCH" )]
@@ -1614,7 +1615,7 @@ def getDigiTaskName(det):
16141615
16151616 #<--------- MFT-MCH forward matching
16161617 forwardmatchneeds = [MCHRECOtask ['name' ],
1617- MFTRECOtask ['name' ],
1618+ MFTRECOtask ['name' ] if isActive ( "MFT" ) else None ,
16181619 MCHMIDMATCHtask ['name' ] if isActive ("MID" ) else None ]
16191620 MFTMCHMATCHtask = createTask (name = 'mftmchMatch_' + str (tf ), needs = forwardmatchneeds , tf = tf , cwd = timeframeworkdir , lab = ["RECO" ], mem = '1500' )
16201621 MFTMCHMATCHtask ['cmd' ] = task_finalizer (
@@ -1877,21 +1878,22 @@ def remove_json_prefix(path):
18771878 ### MFT
18781879
18791880 # to be enabled once MFT Digits should run 5 times with different configurations
1880- for flp in range (5 ):
1881- addQCPerTF (taskName = 'mftDigitsQC' + str (flp ),
1882- needs = [getDigiTaskName ("MFT" )],
1883- readerCommand = 'o2-qc-mft-digits-root-file-reader --mft-digit-infile=mftdigits.root' ,
1884- configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/mft-digits-' + str (flp ) + '.json' ,
1885- objectsFile = 'mftDigitsQC.root' )
1886- addQCPerTF (taskName = 'mftClustersQC' ,
1881+ if isActive ("MFT" ):
1882+ for flp in range (5 ):
1883+ addQCPerTF (taskName = 'mftDigitsQC' + str (flp ),
1884+ needs = [getDigiTaskName ("MFT" )],
1885+ readerCommand = 'o2-qc-mft-digits-root-file-reader --mft-digit-infile=mftdigits.root' ,
1886+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/mft-digits-' + str (flp ) + '.json' ,
1887+ objectsFile = 'mftDigitsQC.root' )
1888+ addQCPerTF (taskName = 'mftClustersQC' ,
18871889 needs = [MFTRECOtask ['name' ]],
18881890 readerCommand = 'o2-global-track-cluster-reader --track-types none --cluster-types MFT' ,
18891891 configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/mft-clusters.json' )
1890- addQCPerTF (taskName = 'mftTracksQC' ,
1892+ addQCPerTF (taskName = 'mftTracksQC' ,
18911893 needs = [MFTRECOtask ['name' ]],
18921894 readerCommand = 'o2-global-track-cluster-reader --track-types MFT --cluster-types MFT' ,
18931895 configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/mft-tracks.json' )
1894- addQCPerTF (taskName = 'mftMCTracksQC' ,
1896+ addQCPerTF (taskName = 'mftMCTracksQC' ,
18951897 needs = [MFTRECOtask ['name' ]],
18961898 readerCommand = 'o2-global-track-cluster-reader --track-types MFT --cluster-types MFT' ,
18971899 configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/mft-tracks-mc.json' )
@@ -1962,22 +1964,25 @@ def remove_json_prefix(path):
19621964 readerCommand = 'o2-emcal-cell-reader-workflow --infile emccells.root | o2-ctp-digit-reader --inputfile ctpdigits.root --disable-mc' ,
19631965 configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/emc-bc-task.json' )
19641966 ### FT0
1965- addQCPerTF (taskName = 'RecPointsQC' ,
1966- needs = [FT0RECOtask ['name' ]],
1967- readerCommand = 'o2-ft0-recpoints-reader-workflow --infile o2reco_ft0.root' ,
1968- configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/ft0-reconstruction-config.json' )
1967+ if isActive ("FT0" ):
1968+ addQCPerTF (taskName = 'RecPointsQC' ,
1969+ needs = [FT0RECOtask ['name' ]],
1970+ readerCommand = 'o2-ft0-recpoints-reader-workflow --infile o2reco_ft0.root' ,
1971+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/ft0-reconstruction-config.json' )
19691972
19701973 ### FV0
1971- addQCPerTF (taskName = 'FV0DigitsQC' ,
1972- needs = [getDigiTaskName ("FV0" )],
1973- readerCommand = 'o2-fv0-digit-reader-workflow --fv0-digit-infile fv0digits.root' ,
1974- configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/fv0-digits.json' )
1974+ if isActive ("FV0" ):
1975+ addQCPerTF (taskName = 'FV0DigitsQC' ,
1976+ needs = [getDigiTaskName ("FV0" )],
1977+ readerCommand = 'o2-fv0-digit-reader-workflow --fv0-digit-infile fv0digits.root' ,
1978+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/fv0-digits.json' )
19751979
19761980 ### FDD
1977- addQCPerTF (taskName = 'FDDRecPointsQC' ,
1978- needs = [FDDRECOtask ['name' ]],
1979- readerCommand = 'o2-fdd-recpoints-reader-workflow --fdd-recpoints-infile o2reco_fdd.root' ,
1980- configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/fdd-recpoints.json' )
1981+ if isActive ("FDD" ):
1982+ addQCPerTF (taskName = 'FDDRecPointsQC' ,
1983+ needs = [FDDRECOtask ['name' ]],
1984+ readerCommand = 'o2-fdd-recpoints-reader-workflow --fdd-recpoints-infile o2reco_fdd.root' ,
1985+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/fdd-recpoints.json' )
19811986
19821987 ### GLO + RECO
19831988 addQCPerTF (taskName = 'vertexQC' ,
@@ -2079,7 +2084,9 @@ def remove_json_prefix(path):
20792084 tpctsneeds = [ TPCRECOtask ['name' ],
20802085 ITSTPCMATCHtask ['name' ],
20812086 TOFTPCMATCHERtask ['name' ],
2082- PVFINDERtask ['name' ]
2087+ FT0RECOtask ['name' ],
2088+ PVFINDERtask ['name' ],
2089+ TRDTRACKINGtask2 ['name' ]
20832090 ]
20842091 TPCTStask = createTask (name = 'tpctimeseries_' + str (tf ), needs = tpctsneeds , tf = tf , cwd = timeframeworkdir , lab = ["RECO" ], mem = '2000' , cpu = '1' )
20852092 TPCTStask ['cmd' ] = 'o2-global-track-cluster-reader --disable-mc --cluster-types "FT0,TOF,TPC" --track-types "ITS,TPC,ITS-TPC,ITS-TPC-TOF,ITS-TPC-TRD-TOF"'
0 commit comments