Skip to content

Added dedicated helicity-scaler replays and integrates average BCM currents into standard production replays - #66

Merged
provakar1994 merged 15 commits into
JeffersonLab:masterfrom
rparvez92:add-avg-bcm
Sep 6, 2026
Merged

Added dedicated helicity-scaler replays and integrates average BCM currents into standard production replays#66
provakar1994 merged 15 commits into
JeffersonLab:masterfrom
rparvez92:add-avg-bcm

Conversation

@rparvez92

Copy link
Copy Markdown

Files that I changed and why it was needed:

Files Change Why needed

CALIBRATION/bcm_current_map/ScalerCalib.C | Added support for five-digit run numbers and the new COIN/HMS/SHMS scaler ROOT filenames. Routes generated parameters to PARAM/HMS/BCM/CALIB or PARAM/SHMS/BCM/CALIB, creating directories when necessary. | Generates correctly named, arm-specific BCM-current mapping files.

CALIBRATION/bcm_current_map/run.C | Disabled the bare R__LOAD_LIBRARY(ScalerCalib_C) directive. | On cdaq/ifarm, ACLiC places the library under .root_build_dir; it is loaded explicitly with .L ScalerCalib.C+.

CALIBRATION/bcm_current_map/README | Documented the scaler replay, calibration, parameter location, and production replay workflow. | Provides reproducible instructions and states that BCM parameters are required for production replay.
replay_helicity_and_scalers_coin.C | Added a COIN scaler-only replay with HMS and SHMS ordinary/helicity scaler decoding. | Produces TSH and TSP without detector or physics-event reconstruction.

replay_helicity_and_scalers_hms.C | Added an HMS scaler-only replay. | Produces HMS ordinary and helicity-scaler data in TSH.

replay_helicity_and_scalers_shms.C | Added a SHMS scaler-only replay. | Produces SHMS ordinary and helicity-scaler data in TSP.

Four standard production replay macros | Load the required run-specific bcmcurrent_.param and register THcBCMCurrent: P.bcm for COIN/SHMS and H.bcm for HMS. | Maps scaler-interval average currents onto physics events in tree T. Production replay stops if the required parameter is missing or invalid.

Two COIN light production definitions | Enabled block P.bcm.. | Writes COIN P.bcm. values into tree T.

hblock_vars_light.def | Enabled block H.bcm.. | Writes HMS H.bcm. values into tree T.

pblock_vars_light.def | Enabled block P.bcm.. | Writes SHMS P.bcm. values into tree T.

HMS and SHMS epics_short.def | Commented out block T.hms.* and block T.shms.*. | Scaler-only replays disable physics events, so these physics-event blocks are unnecessary. EPICS and scaler output remain enabled.

HMS and SHMS BCM parameter tarballs | Added generated BCM token files for the selected runs. | Supplies the run-specific parameters required by production replay: 55 HMS and 364 SHMS/COIN files.

@provakar1994
provakar1994 merged commit c03458d into JeffersonLab:master Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants