Back to home page

EIC code displayed by LXR

 
 

    


Warning, /epic-lfhcal-tbana/examples/yall/lfhcal-simple/Yallfile is written in an unsupported language. File is not indexed.

0001 campaign lfhcal-simple
0002 backend local
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 TB2026 input and the user's writable scratch work area.
0008 @env LFHCAL_DATA
0009 @env LFHCAL_WORK
0010 
0011 @set WORK {LFHCAL_WORK}/lfhcal-simple
0012 @set BUILD ../../../NewStructure/build
0013 @set TB2026_CONFIG ../../../configs/TB2026
0014 
0015 # This local example is intentionally wrapper-free. Run yall-run from inside
0016 # eic-shell so Convert and DataPrep are already available.
0017 #
0018 # Keep this as a smoke test, not a miniature calibration campaign. Limiting the
0019 # input to 1000 events is enough to exercise conversion and pedestal extraction,
0020 # but not enough to populate all MIP-fit histograms reliably.
0021 
0022 # Preserve pedestal / MIP pairs so the smoke test exercises the same table and
0023 # shared-conversion graph expansion used by the production scan workflows.
0024 @table pairs ped mip:
0025     296 298
0026     299 300
0027     303 304
0028 
0029 # Lightweight directory setup runs during `yall-run create`, not as a scheduled task.
0030 %preflight /bin/mkdir -p \
0031         {WORK}/converted \
0032         {WORK}/pedestal \
0033         {WORK}/plots/pedestal
0034 
0035 # Convert every unique run from either table column once.
0036 convert-{run}:
0037     @each run in pairs.ped pairs.mip
0038     @input raw {LFHCAL_DATA}/Run{run}.h2g
0039     @input mapping {TB2026_CONFIG}/mapping_HGCROC_SPSH2TB_sumV2_default.csv
0040     @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0041     @output root {WORK}/converted/rawHGCROC_{run}.root
0042     {BUILD}/Convert -d 0 -L 1000 -w -c @input.raw \
0043         -o @output.root -m @input.mapping -r @input.rundb
0044 
0045 # Fit each unique pedestal from the bounded converted sample.
0046 pedestal-{ped}: convert-{ped}
0047     @each ped in pairs.ped
0048     @input raw {WORK}/converted/rawHGCROC_{ped}.root
0049     @input rundb {TB2026_CONFIG}/DataTakingDB_TBSPSH2_202605_HGCROC.csv
0050     @output root {WORK}/pedestal/rawHGCROC_wPed_{ped}.root
0051     @output plots {WORK}/plots/pedestal/Run{ped}
0052     {BUILD}/DataPrep -p -L 1000 -i @input.raw \
0053         -o @output.root -O @output.plots -r @input.rundb