@@ -242,9 +242,15 @@ def load_external_config(configfile):
242242 merge_dicts (anchorConfig , config_overwrite )
243243
244244async_envfile = 'env_async.env' if environ .get ('ALIEN_JDL_O2DPG_ASYNC_RECO_TAG' ) is not None else None
245- # Check if either ITS or MFT are in the staggered mode (either from the async reco workflow or imposed externally)
245+
246+ # Check if either ITS or MFT are in the staggered mode (either from the async reco workflow or imposed externally).
247+ # Note thas some QC tracks at the moment need to be suppressed in this mode
246248staggITS = ' --enable-its-staggering ' if environ .get ('ALIEN_JDL_ITS_STAGGERED' ) == '1' and option_if_available ('o2-its-reco-workflow' , '--enable-its-staggering' , envfile = async_envfile ) != '' else ''
247- staggMFT = ' --enable-mft-staggering ' if environ .get ('ALIEN_JDL_MFT_STAGGERED' ) == '1' and option_if_available ('o2-mft-reco-workflow' , '--enable-mft-staggering' , envfile = async_envfile ) != '' else ''
249+ # MFT still needs to update its reconstruction to account for per-layer input, uncomment line below whtb it is ready and remove "Ignoring ..." stuff.
250+ #staggMFT = ' --enable-mft-staggering ' if environ.get('ALIEN_JDL_MFT_STAGGERED') == '1' and option_if_available('o2-mft-reco-workflow', '--enable-mft-staggering', envfile=async_envfile) != '' else ''
251+ #if environ.get('ALIEN_JDL_MFT_STAGGERED') == '1':
252+ # print ("Ignoring ALIEN_JDL_MFT_STAGGERED as the MFT reconstruction is not yet ready to take it")
253+ staggMFT = ''
248254
249255# We still may need adjust configurations manually for consistency:
250256#
@@ -1954,13 +1960,14 @@ def remove_json_prefix(path):
19541960 ### MFT
19551961
19561962 # to be enabled once MFT Digits should run 5 times with different configurations
1957- if isActive ("MFT" ):
1963+ # At the moment QC does not support per-layer digits/clusters, disable these tasks if staggering is requested
1964+ if isActive ("MFT" ) and not staggMFT :
19581965 for flp in range (5 ):
19591966 addQCPerTF (taskName = 'mftDigitsQC' + str (flp ),
1960- needs = [getDigiTaskName ("MFT" )],
1961- readerCommand = 'o2-qc-mft-digits-root-file-reader --mft-digit-infile=mftdigits.root' ,
1962- configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/mft-digits-' + str (flp ) + '.json' ,
1963- objectsFile = 'mftDigitsQC.root' )
1967+ needs = [getDigiTaskName ("MFT" )],
1968+ readerCommand = 'o2-qc-mft-digits-root-file-reader --mft-digit-infile=mftdigits.root' + staggMFT ,
1969+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/mft-digits-' + str (flp ) + '.json' ,
1970+ objectsFile = 'mftDigitsQC.root' )
19641971 addQCPerTF (taskName = 'mftClustersQC' ,
19651972 needs = [MFTRECOtask ['name' ]],
19661973 readerCommand = 'o2-global-track-cluster-reader --track-types none --cluster-types MFT' + staggMFT ,
@@ -2085,10 +2092,12 @@ def remove_json_prefix(path):
20852092 readerCommand = 'o2-global-track-cluster-reader --track-types "ITS" --cluster-types "ITS"' + staggITS ,
20862093 configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/its-mc-tracks-qc.json' )
20872094
2088- addQCPerTF (taskName = 'ITSTracksClustersQC' ,
2089- needs = [ITSRECOtask ['name' ]],
2090- readerCommand = 'o2-global-track-cluster-reader --track-types "ITS" --cluster-types "ITS"' + staggITS ,
2091- configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/its-clusters-tracks-qc.json' )
2095+ # At the moment QC does not support per-layer digits/clusters, disable these tasks if staggering is requested
2096+ if not staggITS :
2097+ addQCPerTF (taskName = 'ITSTracksClustersQC' ,
2098+ needs = [ITSRECOtask ['name' ]],
2099+ readerCommand = 'o2-global-track-cluster-reader --track-types "ITS" --cluster-types "ITS"' + staggITS ,
2100+ configFilePath = 'json://${O2DPG_ROOT}/MC/config/QC/json/its-clusters-tracks-qc.json' )
20922101
20932102 ### CPV
20942103 if isActive ('CPV' ):
0 commit comments