From 6cd5e64c90a505e01466cf4dac77fedb52d99ad5 Mon Sep 17 00:00:00 2001 From: jaimenorman Date: Tue, 24 Dec 2024 11:55:18 +0000 Subject: [PATCH] add option to set EMC busy time to 0 --- MC/bin/o2dpg_sim_workflow.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/MC/bin/o2dpg_sim_workflow.py b/MC/bin/o2dpg_sim_workflow.py index 3fbf78e26..6d493539e 100755 --- a/MC/bin/o2dpg_sim_workflow.py +++ b/MC/bin/o2dpg_sim_workflow.py @@ -151,6 +151,9 @@ # Matching training for machine learning parser.add_argument('--fwdmatching-save-trainingdata', action='store_true', help='enables saving parameters at plane for matching training with machine learning') +# EMC options +parser.add_argument('--emc-remove-busy', action='store_true', help='disables EMC busy time') + args = parser.parse_args() print (args) @@ -894,6 +897,11 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True): if (args.sor != -1): globalTFConfigValues["HBFUtils.startTime"] = args.sor + # set the EMC busy time as zero if option enabled for EMC digitizer + emcBusyCF=dict() + if(args.emc_remove_busy == True): + emcBusyCF['EMCSimParam.mBusyTime'] = '0' + def putConfigValues(localCF = {}): """ Creates the final --configValues string to be passed to the workflows. @@ -1073,7 +1081,7 @@ def createRestDigiTask(name, det='ALLSMALLER'): FT0FV0EMCCTPDIGItask['cmd'] = ('','ln -nfs ../bkg_HitsFT0.root . ; ln -nfs ../bkg_HitsFV0.root . ;')[doembedding] FT0FV0EMCCTPDIGItask['cmd'] += '${O2_ROOT}/bin/o2-sim-digitizer-workflow ' + getDPL_global_options() + ' -n ' + str(args.ns) + simsoption \ + ' --onlyDet FT0,FV0,EMC,CTP --interactionRate ' + str(INTRATE) + ' --incontext ' + str(CONTEXTFILE) \ - + ' --disable-write-ini' + putConfigValuesNew(localCF={"DigiParams.seed" : str(TFSEED)}) \ + + ' --disable-write-ini' + putConfigValuesNew(localCF={"DigiParams.seed" : str(TFSEED)} | emcBusyCF) \ + (' --combine-devices','')[args.no_combine_dpl_devices] + ('',' --disable-mc')[args.no_mc_labels] + QEDdigiargs \ + ' --forceSelectedDets' workflow['stages'].append(FT0FV0EMCCTPDIGItask)