|
151 | 151 | # Matching training for machine learning |
152 | 152 | parser.add_argument('--fwdmatching-save-trainingdata', action='store_true', help='enables saving parameters at plane for matching training with machine learning') |
153 | 153 |
|
| 154 | +# EMC options |
| 155 | +parser.add_argument('--emc-remove-busy', action='store_true', help='disables EMC busy time') |
| 156 | + |
154 | 157 | args = parser.parse_args() |
155 | 158 | print (args) |
156 | 159 |
|
@@ -894,6 +897,11 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True): |
894 | 897 | if (args.sor != -1): |
895 | 898 | globalTFConfigValues["HBFUtils.startTime"] = args.sor |
896 | 899 |
|
| 900 | + # set the EMC busy time as zero if option enabled for EMC digitizer |
| 901 | + emcBusyCF=dict() |
| 902 | + if(args.emc_remove_busy == True): |
| 903 | + emcBusyCF['EMCSimParam.mBusyTime'] = '0' |
| 904 | + |
897 | 905 | def putConfigValues(localCF = {}): |
898 | 906 | """ |
899 | 907 | Creates the final --configValues string to be passed to the workflows. |
@@ -1073,7 +1081,7 @@ def createRestDigiTask(name, det='ALLSMALLER'): |
1073 | 1081 | FT0FV0EMCCTPDIGItask['cmd'] = ('','ln -nfs ../bkg_HitsFT0.root . ; ln -nfs ../bkg_HitsFV0.root . ;')[doembedding] |
1074 | 1082 | FT0FV0EMCCTPDIGItask['cmd'] += '${O2_ROOT}/bin/o2-sim-digitizer-workflow ' + getDPL_global_options() + ' -n ' + str(args.ns) + simsoption \ |
1075 | 1083 | + ' --onlyDet FT0,FV0,EMC,CTP --interactionRate ' + str(INTRATE) + ' --incontext ' + str(CONTEXTFILE) \ |
1076 | | - + ' --disable-write-ini' + putConfigValuesNew(localCF={"DigiParams.seed" : str(TFSEED)}) \ |
| 1084 | + + ' --disable-write-ini' + putConfigValuesNew(localCF={"DigiParams.seed" : str(TFSEED)} | emcBusyCF) \ |
1077 | 1085 | + (' --combine-devices','')[args.no_combine_dpl_devices] + ('',' --disable-mc')[args.no_mc_labels] + QEDdigiargs \ |
1078 | 1086 | + ' --forceSelectedDets' |
1079 | 1087 | workflow['stages'].append(FT0FV0EMCCTPDIGItask) |
|
0 commit comments