Skip to content

Commit da2ec57

Browse files
authored
[EMCAL-1054] Include EMCAL cell recalibrator workflow for bad channel masking (#1312)
- Chain cell-recalibrator workfow with reconstruction workflow to reject bad channels seen in data - Needs to disable cell writer within reconstruction workflow and extra cell writer at the end of the full chain
1 parent 29cc64b commit da2ec57

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

MC/bin/o2dpg_sim_workflow.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,11 @@ def getDigiTaskName(det):
10501050

10511051
# calorimeters
10521052
EMCRECOtask = createTask(name='emcalreco_'+str(tf), needs=[getDigiTaskName("EMC")], tf=tf, cwd=timeframeworkdir, lab=["RECO"], mem='1500')
1053-
EMCRECOtask['cmd'] = '${O2_ROOT}/bin/o2-emcal-reco-workflow --input-type digits --output-type cells --infile emcaldigits.root ' + getDPL_global_options(ccdbbackend=False) + putConfigValues()
1053+
EMCRECOtask['cmd'] = '${O2_ROOT}/bin/o2-emcal-reco-workflow --input-type digits --output-type cells --infile emcaldigits.root --disable-root-output --subspecificationOut 1 ' + putConfigValues()
1054+
EMCRECOtask['cmd'] += ('',' --disable-mc')[args.no_mc_labels]
1055+
EMCRECOtask['cmd'] += ' | ${O2_ROOT}/bin/o2-emcal-cell-recalibrator-workflow --input-subspec 1 --output-subspec 0 --no-timecalib --no-gaincalib ' + putConfigValues()
1056+
EMCRECOtask['cmd'] += (' --isMC','')[args.no_mc_labels]
1057+
EMCRECOtask['cmd'] += ' | ${O2_ROOT}/bin/o2-emcal-cell-writer-workflow --subspec 0 ' + getDPL_global_options() + putConfigValues()
10541058
EMCRECOtask['cmd'] += ('',' --disable-mc')[args.no_mc_labels]
10551059
workflow['stages'].append(EMCRECOtask)
10561060

0 commit comments

Comments
 (0)