Added dedicated helicity-scaler replays and integrates average BCM currents into standard production replays - #66
Merged
Conversation
…UCTION/replay_helicity_and_scalers_<hms, shms>.C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Files that I changed and why it was 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.