Warning, /epic-lfhcal-tbana/examples/yall/scan-set-2/Yallfile is written in an unsupported language. File is not indexed.
0001 campaign lfhcal-tb2026-scan-set-2
0002 backend condor
0003
0004 # Set to full to record operator accounts when permitted by your site's privacy policy.
0005 %account-provenance off
0006
0007 # Shared raw-data root and user-selected writable product root.
0008 @env LFHCAL_DATA
0009 @env LFHCAL_WORK
0010 @env EIC_SHELL
0011 @set BUILD ../../../NewStructure/build
0012 @set TB2026_CONFIG ../../../configs/TB2026
0013 @set TOA ../../../configs/TB2026/ToAOffsets_TBSPS2026_ParamScan_2.csv
0014
0015 %cpus 1
0016 %memory 4GB
0017 %disk 8GB
0018 # Per-job runtime request; Condor uses site-defined MaxRuntime, not allowed_execute_duration.
0019 %time 2h
0020 %getenv true
0021 %wrapper ../../../tools/run-in-eic-shell.sh {EIC_SHELL} /usr/bin/env ROOT_MAX_THREADS=1 OMP_NUM_THREADS=1
0022
0023 # Scientific configuration: pedestal / muon run pairs, declared once.
0024 @table pairs ped run:
0025 328 329
0026 330 331
0027 332 333
0028 334 335
0029 336 337
0030 338 339
0031 340 341
0032 342 343
0033 344 345
0034 346 347
0035 348 349
0036 350 351
0037 352 353
0038 354 355
0039 356 357
0040 358 359
0041 360 361
0042
0043 # Lightweight directory setup runs during `yall-run create`, not as a scheduled task.
0044 %preflight /bin/mkdir -p \
0045 {LFHCAL_WORK}/scan-set-2/converted \
0046 {LFHCAL_WORK}/scan-set-2/pedestal \
0047 {LFHCAL_WORK}/scan-set-2/transfer \
0048 {LFHCAL_WORK}/scan-set-2/mip \
0049 {LFHCAL_WORK}/scan-set-2/selected \
0050 {LFHCAL_WORK}/scan-set-2/refine1 \
0051 {LFHCAL_WORK}/scan-set-2/refine2 \
0052 {LFHCAL_WORK}/scan-set-2/refine3 \
0053 {LFHCAL_WORK}/scan-set-2/calibrated \
0054 {LFHCAL_WORK}/scan-set-2/waveform \
0055 {LFHCAL_WORK}/scan-set-2/plots/pedestal \
0056 {LFHCAL_WORK}/scan-set-2/plots/transfer \
0057 {LFHCAL_WORK}/scan-set-2/plots/mip \
0058 {LFHCAL_WORK}/scan-set-2/plots/refine1 \
0059 {LFHCAL_WORK}/scan-set-2/plots/refine2 \
0060 {LFHCAL_WORK}/scan-set-2/plots/refine3 \
0061 {LFHCAL_WORK}/scan-set-2/plots/calibrated \
0062 {LFHCAL_WORK}/scan-set-2/plots/waveform
0063
0064 # Convert every unique run once; dependencies below remain per run/pair.
0065 convert-{run}:
0066 @each run in pairs.ped pairs.run
0067 @input raw {LFHCAL_DATA}/Run{run}.h2g
0068 @input mapping {TB2026_CONFIG}/mapping_HGCROC_SPSH2TB_sumV2_default.csv
0069 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0070 @output root {LFHCAL_WORK}/scan-set-2/converted/rawHGCROC_{run}.root
0071 %memory 2GB
0072 {BUILD}/Convert -d 0 -w -c @input.raw \
0073 -o @output.root -m @input.mapping -r @input.rundb
0074
0075 pedestal-{ped}: convert-{ped}
0076 @each ped in pairs.ped
0077 @input raw {LFHCAL_WORK}/scan-set-2/converted/rawHGCROC_{ped}.root
0078 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0079 @output root {LFHCAL_WORK}/scan-set-2/pedestal/rawHGCROC_wPed_{ped}.root
0080 @output calib {LFHCAL_WORK}/scan-set-2/pedestal/rawHGCROC_wPed_{ped}_calib.txt
0081 @output hists {LFHCAL_WORK}/scan-set-2/pedestal/rawHGCROC_wPed_{ped}_Hists.root
0082 @output plots {LFHCAL_WORK}/scan-set-2/plots/pedestal/Run{ped}
0083 {BUILD}/DataPrep -a -d 1 -p -i @input.raw \
0084 -o @output.root -O @output.plots -r @input.rundb -F pdf
0085
0086 transfer-{ped}-{run}: pedestal-{ped} convert-{run}
0087 @each ped run in pairs
0088 @input pedestal {LFHCAL_WORK}/scan-set-2/pedestal/rawHGCROC_wPed_{ped}.root
0089 @input raw {LFHCAL_WORK}/scan-set-2/converted/rawHGCROC_{run}.root
0090 @input bad {TB2026_CONFIG}/badChannel_HGCROC_SPSTB2026_OnlyCenter2x4.txt
0091 @input toa {TOA}
0092 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0093 @output root {LFHCAL_WORK}/scan-set-2/transfer/rawHGCROC_wPed_wBC_{run}.root
0094 @output plots {LFHCAL_WORK}/scan-set-2/plots/transfer/Run{run}
0095 {BUILD}/DataPrep -d 1 -e -P @input.pedestal \
0096 -i @input.raw -o @output.root -O @output.plots \
0097 -r @input.rundb -B @input.bad -G @input.toa
0098
0099 mip-{ped}-{run}: transfer-{ped}-{run}
0100 @input root {LFHCAL_WORK}/scan-set-2/transfer/rawHGCROC_wPed_wBC_{run}.root
0101 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0102 @output root {LFHCAL_WORK}/scan-set-2/mip/rawHGCROC_wPedwMuon_wBC_{run}.root
0103 @output calib {LFHCAL_WORK}/scan-set-2/mip/rawHGCROC_wPedwMuon_wBC_{run}_calib.txt
0104 @output hists {LFHCAL_WORK}/scan-set-2/mip/rawHGCROC_wPedwMuon_wBC_{run}_Hists.root
0105 @output plots {LFHCAL_WORK}/scan-set-2/plots/mip/Run{run}
0106 {BUILD}/DataPrep -a -d 1 -e -s -i @input.root \
0107 -o @output.root -O @output.plots -r @input.rundb
0108
0109 select-{ped}-{run}: mip-{ped}-{run}
0110 @input root {LFHCAL_WORK}/scan-set-2/mip/rawHGCROC_wPedwMuon_wBC_{run}.root
0111 @output root {LFHCAL_WORK}/scan-set-2/selected/rawHGCROC_mipTrigg_wPedwMuon_wBC_{run}.root
0112 {BUILD}/DataPrep -d 1 -X -i @input.root -o @output.root
0113
0114 refine1-{ped}-{run}: select-{ped}-{run}
0115 @input root {LFHCAL_WORK}/scan-set-2/selected/rawHGCROC_mipTrigg_wPedwMuon_wBC_{run}.root
0116 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0117 @output root {LFHCAL_WORK}/scan-set-2/refine1/rawHGCROC_wPedwMuon_wBC_ImpR_{run}.root
0118 @output calib {LFHCAL_WORK}/scan-set-2/refine1/rawHGCROC_wPedwMuon_wBC_ImpR_{run}_calib.txt
0119 @output hists {LFHCAL_WORK}/scan-set-2/refine1/rawHGCROC_wPedwMuon_wBC_ImpR_{run}_Hists.root
0120 @output plots {LFHCAL_WORK}/scan-set-2/plots/refine1/Run{run}
0121 {BUILD}/DataPrep -a -d 1 -S -i @input.root \
0122 -o @output.root -O @output.plots -r @input.rundb
0123
0124 refine2-{ped}-{run}: refine1-{ped}-{run}
0125 @input root {LFHCAL_WORK}/scan-set-2/refine1/rawHGCROC_wPedwMuon_wBC_ImpR_{run}.root
0126 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0127 @output root {LFHCAL_WORK}/scan-set-2/refine2/rawHGCROC_wPedwMuon_wBC_Imp2R_{run}.root
0128 @output calib {LFHCAL_WORK}/scan-set-2/refine2/rawHGCROC_wPedwMuon_wBC_Imp2R_{run}_calib.txt
0129 @output hists {LFHCAL_WORK}/scan-set-2/refine2/rawHGCROC_wPedwMuon_wBC_Imp2R_{run}_Hists.root
0130 @output plots {LFHCAL_WORK}/scan-set-2/plots/refine2/Run{run}
0131 {BUILD}/DataPrep -a -d 1 -S -i @input.root \
0132 -o @output.root -O @output.plots -r @input.rundb
0133
0134 refine3-{ped}-{run}: refine2-{ped}-{run}
0135 @input root {LFHCAL_WORK}/scan-set-2/refine2/rawHGCROC_wPedwMuon_wBC_Imp2R_{run}.root
0136 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0137 @output root {LFHCAL_WORK}/scan-set-2/refine3/rawHGCROC_wPedwMuon_wBC_Imp3R_{run}.root
0138 @output calib {LFHCAL_WORK}/scan-set-2/refine3/rawHGCROC_wPedwMuon_wBC_Imp3R_{run}_calib.txt
0139 @output hists {LFHCAL_WORK}/scan-set-2/refine3/rawHGCROC_wPedwMuon_wBC_Imp3R_{run}_Hists.root
0140 @output plots {LFHCAL_WORK}/scan-set-2/plots/refine3/Run{run}
0141 {BUILD}/DataPrep -a -d 1 -S -i @input.root \
0142 -o @output.root -O @output.plots -r @input.rundb
0143
0144 calibrate-{ped}-{run}: refine3-{ped}-{run}
0145 @input calibration {LFHCAL_WORK}/scan-set-2/refine3/rawHGCROC_wPedwMuon_wBC_Imp3R_{run}.root
0146 @input raw {LFHCAL_WORK}/scan-set-2/selected/rawHGCROC_mipTrigg_wPedwMuon_wBC_{run}.root
0147 @input bad {TB2026_CONFIG}/badChannel_HGCROC_SPSTB2026_OnlyCenter2x4.txt
0148 @input toa {TOA}
0149 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0150 @output root {LFHCAL_WORK}/scan-set-2/calibrated/calibratedHGCROC_Run_{run}.root
0151 @output plots {LFHCAL_WORK}/scan-set-2/plots/calibrated/Run{run}
0152 {BUILD}/DataPrep -e -d 1 -a -C @input.calibration \
0153 -i @input.raw -o @output.root -O @output.plots -r @input.rundb \
0154 -B @input.bad -G @input.toa
0155
0156 waveform-{ped}-{run}: calibrate-{ped}-{run}
0157 @input root {LFHCAL_WORK}/scan-set-2/calibrated/calibratedHGCROC_Run_{run}.root
0158 @input cells {TB2026_CONFIG}/activeCellsHGCROCParameterScan.txt
0159 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0160 @output hists {LFHCAL_WORK}/scan-set-2/waveform/calibratedHGCROC_wave_Run_{run}_Hists.root
0161 @output plots {LFHCAL_WORK}/scan-set-2/plots/waveform/Run{run}
0162 {BUILD}/HGCROCStudy -d 1 -E 1 -w -i @input.root \
0163 -o {LFHCAL_WORK}/scan-set-2/waveform/calibratedHGCROC_wave_Run_{run}.root \
0164 -O @output.plots -r @input.rundb -l @input.cells