Skip to content

commit for associating the FPHXBCO and INTT_long_BCO information with TrkrHit#4238

Open
ChengWeiShih wants to merge 2 commits intosPHENIX-Collaboration:masterfrom
ChengWeiShih:CarryOverHitStream
Open

commit for associating the FPHXBCO and INTT_long_BCO information with TrkrHit#4238
ChengWeiShih wants to merge 2 commits intosPHENIX-Collaboration:masterfrom
ChengWeiShih:CarryOverHitStream

Conversation

@ChengWeiShih
Copy link
Copy Markdown
Contributor

@ChengWeiShih ChengWeiShih commented Mar 31, 2026

comment: The commit is to associate the INTT timing information with the TrkrHit, which is very important for the study of the INTT carried-over-hit issue in streaming.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work for users)
  • Requiring change in macros repository (Please provide links to the macros pull request in the last section)
  • I am a member of GitHub organization of sPHENIX Collaboration, EIC, or ECCE (contact Chris Pinkenburg to join)

What kind of change does this PR introduce? (Bug fix, feature, ...)

comment:
The modification doesn't touch the hit_set_key structure. But change the TrkrHit data class. The following four are modified.
trackbase/TrkrHit.h
trackbase/TrkrHitv1.cc
trackbase/TrkrHitv1.h
trackbase/TrkrHitv2.cc
trackbase/TrkrHitv2.h

And intt/InttCombinedRawDataDecoder.cc is updated to assign the INTT_FPHX_BCO and INTT_long_BCO to Trkrhit.

TODOs (if applicable)

Links to other PRs in macros and calibration repositories (if applicable)

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 31, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: ea46e56b-bc79-4b75-93f6-3bd00f652697

📥 Commits

Reviewing files that changed from the base of the PR and between 82714a4 and b63099b.

📒 Files selected for processing (6)
  • offline/packages/intt/InttCombinedRawDataDecoder.cc
  • offline/packages/trackbase/TrkrHit.h
  • offline/packages/trackbase/TrkrHitv1.cc
  • offline/packages/trackbase/TrkrHitv1.h
  • offline/packages/trackbase/TrkrHitv2.cc
  • offline/packages/trackbase/TrkrHitv2.h

📝 Walkthrough

Walkthrough

This PR extends track hit data structures across the sPHENIX tracking detector software to include frontend bunch counter (FPHX_BCO) and bunch counter (BCO) timing fields. Virtual accessor methods are added to the base TrkrHit class, implemented in concrete TrkrHitv1 and TrkrHitv2 classes with accompanying storage, while the INTT decoder and copy operations are updated to populate and propagate these fields.

Changes

Cohort / File(s) Summary
Base TrkrHit Interface
offline/packages/trackbase/TrkrHit.h
Added virtual method declarations for setFPHXBCO() / getFPHXBCO() (uint16_t) and setBCO() / getBCO() (uint64_t); base implementations are no-op setters and zero-returning getters.
TrkrHitv1 Implementation
offline/packages/trackbase/TrkrHitv1.h, TrkrHitv1.cc
Added protected data members m_fphx_bco and m_bco; implemented FPHX_BCO and BCO accessor overrides; updated CopyFrom() to propagate these fields; incremented ROOT ClassDefOverride version from 1 to 3.
TrkrHitv2 Implementation
offline/packages/trackbase/TrkrHitv2.h, TrkrHitv2.cc
Added protected data members m_fphx_bco and m_bco; implemented FPHX_BCO and BCO accessor overrides; updated CopyFrom() to propagate these fields; incremented ROOT ClassDefOverride version from 1 to 3; identify() now outputs timing fields.
INTT Decoder Integration
offline/packages/intt/InttCombinedRawDataDecoder.cc
During hit creation in process_event(), now populates FPHX_BCO from intthit->get_FPHX_BCO() and BCO from intthit->get_bco() on newly allocated TrkrHitv2 objects.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sphenix-jenkins-ci
Copy link
Copy Markdown

Build & test report

Report for commit b63099b4224fd902b2f2004c599ecc63a3c67792:
Jenkins on fire


Automatically generated by sPHENIX Jenkins continuous integration
sPHENIX             jenkins.io

Copy link
Copy Markdown
Contributor

@osbornjd osbornjd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break our DST readback completely because it adds a new member object to the existing vX.h classes. What you need to do is create an entirely new TrkrHitv3.h with the new member variable, and create v3 in the decoder class

@ChengWeiShih
Copy link
Copy Markdown
Contributor Author

@osbornjd I see, OK. Let me do it accordingly. Thank you for letting me know.

@sphenix-jenkins-ci
Copy link
Copy Markdown

Build & test report

Report for commit 2a198c1bf6a6a5187e592218d750191e768ac5fc:
Jenkins on fire


Automatically generated by sPHENIX Jenkins continuous integration
sPHENIX             jenkins.io

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