Skip to content

Unify digi format#116

Open
FelixofRivia wants to merge 6 commits into
SND-LHC:testbeam_2026from
FelixofRivia:unify-digi-format
Open

Unify digi format#116
FelixofRivia wants to merge 6 commits into
SND-LHC:testbeam_2026from
FelixofRivia:unify-digi-format

Conversation

@FelixofRivia

@FelixofRivia FelixofRivia commented Jul 1, 2026

Copy link
Copy Markdown

Slightly modifyed AdvHit class to unify with raw to digi format, still inheriting from TObject to mantain compatibility with FairRoot tasks (using TClonesArray).
Added alternative MC digi workflow (same logic) using RDataFrame + RNtuple (/ TTree) + std::vector.
This requires input as vector -> added converter from TClonesArray to vector.

Compared data using vectors and TClones array, it is consistent as you can see in the plots:
immagine

My proposed next steps:

  • merge this to testbeam 2026 branch (after review)
  • tag a release in main (for anyone who wants to read old digi files)
  • merge testbeam 2026 branch to main
  • i'll make a pull request to include raw to digi process (using this AdvHit class)
  • run "new" digi both on MC (NOT using FairRoot / TClonesArray, although still available) and raw data, now the data format will be the same

General comment: I think that this will not be the final data format / workflow, It can be optimized further depending on the choice for the SND@HL-LHC software stack, but this is an opportunity to apply and get familiar with "modern" ROOT tools / workflows. For now I tried to avoid breaking too many things.

@FelixofRivia

Copy link
Copy Markdown
Author

Ready for review!

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.

1 participant