Store observed sync tagger to BXCounterSync CDB TTree for use in EBDC which failed BXSync#4301
Conversation
… which failed BXSync
📝 WalkthroughWalkthroughA new ChangesBX Counter Sync CDB TTree persistence
Possibly related PRs
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: e07f3266-0853-4fb3-a896-7a48b64bd656
📒 Files selected for processing (7)
offline/framework/fun4allraw/SingleTpcTimeFrameInput.ccoffline/framework/fun4allraw/SingleTpcTimeFrameInput.hoffline/framework/fun4allraw/TpcTimeFrameBuilder.ccoffline/framework/fun4allraw/TpcTimeFrameBuilder.hoffline/framework/fun4allraw/TpcTimeFrameBuilderBase.hoffline/framework/fun4allraw/TpcTimeFrameBuilderRun3.ccoffline/framework/fun4allraw/TpcTimeFrameBuilderRun3.h
Build & test reportReport for commit da627ac20bdbc5b0542d6d12503c1f00f6d0f3cd:
Automatically generated by sPHENIX Jenkins continuous integration |



Types of changes
What kind of change does this PR introduce? (Bug fix, feature, ...)
This deals a rare problem in TPC data that was identified in the last iteration of production: some time the beam crossing clock sync tagger (
BX_COUNTER_SYNC_T) which record the time when the FEE clock is reset.BX_COUNTER_SYNC_Tis used to predict the synchronization of FEE to sPHENIX clock, without which the event building does not work reliably. This tagger is identical cross 48 independent TPC data streams.This PR introduce storing
BX_COUNTER_SYNC_Tto CDB file by default. Then this CDB file can be used to recover the rare cases for one of the 48 TPC data stream missing this tagger.How to use
The output CDB file is available after the first event execution and save out at the end of Fun4All macro by default such as
And the location can be over written with
TODOs (if applicable)
Add the read function with a problematic run is identified and its CDB file installed.
Links to other PRs in macros and calibration repositories (if applicable)
#4292
BX Counter Sync Observation CDB Storage
Motivation
During TPC data production, the beam crossing counter sync tagger (
BX_COUNTER_SYNC_T) occasionally goes missing from one of the 48 independent TPC data streams. This tagger records the FEE clock reset time and is critical for predicting FEE-to-sPHENIX master clock synchronization. When missing from any stream, event building becomes unreliable. This PR implements automated capture of these synchronization observations to enable recovery in affected runs.Key Changes
BXCounterSyncObservationrecords) with associated GTM and reference BCO values, fixed clock offsets (GTM: 0, FEE: 12)TpcTimeFrameBuilderRun3_Packet<id>_BXCounterSyncCDBTTree.rootafter first event executionsetBXCounterSyncCDBTTreeName()onSingleTpcTimeFrameInputto customize output location; defaults to empty string (no-op on base class)TpcTimeFrameBuilderBasewith pure virtualSaveBXCounterSyncCDBTTree()method; implemented inTpcTimeFrameBuilderRun3, empty stub inTpcTimeFrameBuilderPotential Risk Areas
Possible Future Improvements