Warning, /epic-lfhcal-tbana/examples/yall/scan-set-1/Yallfile is written in an unsupported language. File is not indexed.
0001 campaign lfhcal-tb2026-scan-set-1
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_1.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 296 298
0026 299 300
0027 303 304
0028 307 308
0029 309 310
0030
0031 # Lightweight directory setup belongs on the submission host, not in Condor.
0032 # It runs during `yall-run create` and does not consume a worker slot.
0033 %preflight /bin/mkdir -p \
0034 {LFHCAL_WORK}/scan-set-1/converted \
0035 {LFHCAL_WORK}/scan-set-1/pedestal \
0036 {LFHCAL_WORK}/scan-set-1/transfer \
0037 {LFHCAL_WORK}/scan-set-1/mip \
0038 {LFHCAL_WORK}/scan-set-1/selected \
0039 {LFHCAL_WORK}/scan-set-1/refine1 \
0040 {LFHCAL_WORK}/scan-set-1/refine2 \
0041 {LFHCAL_WORK}/scan-set-1/refine3 \
0042 {LFHCAL_WORK}/scan-set-1/calibrated \
0043 {LFHCAL_WORK}/scan-set-1/waveform \
0044 {LFHCAL_WORK}/scan-set-1/plots/pedestal \
0045 {LFHCAL_WORK}/scan-set-1/plots/transfer \
0046 {LFHCAL_WORK}/scan-set-1/plots/mip \
0047 {LFHCAL_WORK}/scan-set-1/plots/refine1 \
0048 {LFHCAL_WORK}/scan-set-1/plots/refine2 \
0049 {LFHCAL_WORK}/scan-set-1/plots/refine3 \
0050 {LFHCAL_WORK}/scan-set-1/plots/calibrated \
0051 {LFHCAL_WORK}/scan-set-1/plots/waveform
0052
0053 # Convert every unique run once; dependencies below remain per run/pair.
0054 convert-{run}:
0055 @each run in pairs.ped pairs.run
0056 @input raw {LFHCAL_DATA}/Run{run}.h2g
0057 @input mapping {TB2026_CONFIG}/mapping_HGCROC_SPSH2TB_sumV2_default.csv
0058 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0059 @output root {LFHCAL_WORK}/scan-set-1/converted/rawHGCROC_{run}.root
0060 %memory 2GB
0061 {BUILD}/Convert -d 0 -w -c @input.raw \
0062 -o @output.root -m @input.mapping -r @input.rundb
0063
0064 pedestal-{ped}: convert-{ped}
0065 @each ped in pairs.ped
0066 @input raw {LFHCAL_WORK}/scan-set-1/converted/rawHGCROC_{ped}.root
0067 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0068 @output root {LFHCAL_WORK}/scan-set-1/pedestal/rawHGCROC_wPed_{ped}.root
0069 @output calib {LFHCAL_WORK}/scan-set-1/pedestal/rawHGCROC_wPed_{ped}_calib.txt
0070 @output hists {LFHCAL_WORK}/scan-set-1/pedestal/rawHGCROC_wPed_{ped}_Hists.root
0071 @output plots {LFHCAL_WORK}/scan-set-1/plots/pedestal/Run{ped}
0072 {BUILD}/DataPrep -a -d 1 -p -i @input.raw \
0073 -o @output.root -O @output.plots -r @input.rundb -F pdf
0074
0075 transfer-{ped}-{run}: pedestal-{ped} convert-{run}
0076 @each ped run in pairs
0077 @input pedestal {LFHCAL_WORK}/scan-set-1/pedestal/rawHGCROC_wPed_{ped}.root
0078 @input raw {LFHCAL_WORK}/scan-set-1/converted/rawHGCROC_{run}.root
0079 @input bad {TB2026_CONFIG}/badChannel_HGCROC_SPSTB2026_OnlyCenter2x4.txt
0080 @input toa {TOA}
0081 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0082 @output root {LFHCAL_WORK}/scan-set-1/transfer/rawHGCROC_wPed_wBC_{run}.root
0083 @output plots {LFHCAL_WORK}/scan-set-1/plots/transfer/Run{run}
0084 {BUILD}/DataPrep -d 1 -e -P @input.pedestal \
0085 -i @input.raw -o @output.root -O @output.plots \
0086 -r @input.rundb -B @input.bad -G @input.toa
0087
0088 mip-{ped}-{run}: transfer-{ped}-{run}
0089 @input root {LFHCAL_WORK}/scan-set-1/transfer/rawHGCROC_wPed_wBC_{run}.root
0090 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0091 @output root {LFHCAL_WORK}/scan-set-1/mip/rawHGCROC_wPedwMuon_wBC_{run}.root
0092 @output calib {LFHCAL_WORK}/scan-set-1/mip/rawHGCROC_wPedwMuon_wBC_{run}_calib.txt
0093 @output hists {LFHCAL_WORK}/scan-set-1/mip/rawHGCROC_wPedwMuon_wBC_{run}_Hists.root
0094 @output plots {LFHCAL_WORK}/scan-set-1/plots/mip/Run{run}
0095 {BUILD}/DataPrep -a -d 1 -e -s -i @input.root \
0096 -o @output.root -O @output.plots -r @input.rundb
0097
0098 select-{ped}-{run}: mip-{ped}-{run}
0099 @input root {LFHCAL_WORK}/scan-set-1/mip/rawHGCROC_wPedwMuon_wBC_{run}.root
0100 @output root {LFHCAL_WORK}/scan-set-1/selected/rawHGCROC_mipTrigg_wPedwMuon_wBC_{run}.root
0101 {BUILD}/DataPrep -d 1 -X -i @input.root -o @output.root
0102
0103 refine1-{ped}-{run}: select-{ped}-{run}
0104 @input root {LFHCAL_WORK}/scan-set-1/selected/rawHGCROC_mipTrigg_wPedwMuon_wBC_{run}.root
0105 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0106 @output root {LFHCAL_WORK}/scan-set-1/refine1/rawHGCROC_wPedwMuon_wBC_ImpR_{run}.root
0107 @output calib {LFHCAL_WORK}/scan-set-1/refine1/rawHGCROC_wPedwMuon_wBC_ImpR_{run}_calib.txt
0108 @output hists {LFHCAL_WORK}/scan-set-1/refine1/rawHGCROC_wPedwMuon_wBC_ImpR_{run}_Hists.root
0109 @output plots {LFHCAL_WORK}/scan-set-1/plots/refine1/Run{run}
0110 {BUILD}/DataPrep -a -d 1 -S -i @input.root \
0111 -o @output.root -O @output.plots -r @input.rundb
0112
0113 refine2-{ped}-{run}: refine1-{ped}-{run}
0114 @input root {LFHCAL_WORK}/scan-set-1/refine1/rawHGCROC_wPedwMuon_wBC_ImpR_{run}.root
0115 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0116 @output root {LFHCAL_WORK}/scan-set-1/refine2/rawHGCROC_wPedwMuon_wBC_Imp2R_{run}.root
0117 @output calib {LFHCAL_WORK}/scan-set-1/refine2/rawHGCROC_wPedwMuon_wBC_Imp2R_{run}_calib.txt
0118 @output hists {LFHCAL_WORK}/scan-set-1/refine2/rawHGCROC_wPedwMuon_wBC_Imp2R_{run}_Hists.root
0119 @output plots {LFHCAL_WORK}/scan-set-1/plots/refine2/Run{run}
0120 {BUILD}/DataPrep -a -d 1 -S -i @input.root \
0121 -o @output.root -O @output.plots -r @input.rundb
0122
0123 refine3-{ped}-{run}: refine2-{ped}-{run}
0124 @input root {LFHCAL_WORK}/scan-set-1/refine2/rawHGCROC_wPedwMuon_wBC_Imp2R_{run}.root
0125 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0126 @output root {LFHCAL_WORK}/scan-set-1/refine3/rawHGCROC_wPedwMuon_wBC_Imp3R_{run}.root
0127 @output calib {LFHCAL_WORK}/scan-set-1/refine3/rawHGCROC_wPedwMuon_wBC_Imp3R_{run}_calib.txt
0128 @output hists {LFHCAL_WORK}/scan-set-1/refine3/rawHGCROC_wPedwMuon_wBC_Imp3R_{run}_Hists.root
0129 @output plots {LFHCAL_WORK}/scan-set-1/plots/refine3/Run{run}
0130 {BUILD}/DataPrep -a -d 1 -S -i @input.root \
0131 -o @output.root -O @output.plots -r @input.rundb
0132
0133 calibrate-{ped}-{run}: refine3-{ped}-{run}
0134 @input calibration {LFHCAL_WORK}/scan-set-1/refine3/rawHGCROC_wPedwMuon_wBC_Imp3R_{run}.root
0135 @input raw {LFHCAL_WORK}/scan-set-1/selected/rawHGCROC_mipTrigg_wPedwMuon_wBC_{run}.root
0136 @input bad {TB2026_CONFIG}/badChannel_HGCROC_SPSTB2026_OnlyCenter2x4.txt
0137 @input toa {TOA}
0138 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0139 @output root {LFHCAL_WORK}/scan-set-1/calibrated/calibratedHGCROC_Run_{run}.root
0140 @output plots {LFHCAL_WORK}/scan-set-1/plots/calibrated/Run{run}
0141 {BUILD}/DataPrep -e -d 1 -a -C @input.calibration \
0142 -i @input.raw -o @output.root -O @output.plots -r @input.rundb \
0143 -B @input.bad -G @input.toa
0144
0145 waveform-{ped}-{run}: calibrate-{ped}-{run}
0146 @input root {LFHCAL_WORK}/scan-set-1/calibrated/calibratedHGCROC_Run_{run}.root
0147 @input cells {TB2026_CONFIG}/activeCellsHGCROCParameterScan.txt
0148 @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0149 @output hists {LFHCAL_WORK}/scan-set-1/waveform/calibratedHGCROC_wave_Run_{run}_Hists.root
0150 @output plots {LFHCAL_WORK}/scan-set-1/plots/waveform/Run{run}
0151 {BUILD}/HGCROCStudy -d 1 -E 1 -w -i @input.root \
0152 -o {LFHCAL_WORK}/scan-set-1/waveform/calibratedHGCROC_wave_Run_{run}.root \
0153 -O @output.plots -r @input.rundb -l @input.cells