New calorimeter brancher#362
Merged
AndrewEdmonds11 merged 10 commits intoMu2e:mainfrom Apr 22, 2026
Merged
Conversation
Collaborator
AndrewEdmonds11
left a comment
There was a problem hiding this comment.
Thanks for this, Sophie! Could you also add the new branches to the ntuplehelper following Step 8 of these instructions? https://github.com/Mu2e/EventNtuple/blob/main/doc/developers.md#Adding-a-branch-to-EventNtuple
We can sort out RooUtil and validation (Step 9) later
|
|
||
| | branch | structure | explanation | key fields | leaf information | | ||
| |--------|-----------|-------------|-----------|------------------| | ||
| | caloclustersmc | Vector branch | MC-truth information for calorimeter clusters (aligned with caloclusters)| `nsim` (# of sim particles), `etot` (total true energy), `tavg` (avg time), `eprimary` (primary particle energy), `tprimary` (primary time), `simParticleIds`, `simRels` (MCRelationship), `hits_`, `prel` (primary to event primary relationship) | [see CaloClusterInfoMC.hh](../inc/CaloClusterInfoMC.hh) |
Collaborator
There was a problem hiding this comment.
Should the new calodigimc branch not be here?
Collaborator
Author
There was a problem hiding this comment.
sure I will add it. I think I got interuppted with something else, and I did actually write somethings I didnt push. Will do this today
Collaborator
Author
|
I have updated the documentation and the ntuple helper. One thing I noticed, we dont have a calorecodigimc. But it would be exactly like the one for calodigimc, so I didnt make it. |
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.
This pull request introduces support for saving Monte Carlo (MC) truth information associated with calorimeter digis into the EventNtuple. The main changes include the addition of a new
CaloDigiMCInfostruct, updates to the configuration and data handling inEventNtupleMaker_module.cc, and the implementation of helper methods to fill the new MC info. These changes allow for the optional storage of detailed MC truth for calorimeter digis and their associated simulation particles.New data structure for Calorimeter Digi MC information:
CaloDigiMCInfostruct to hold MC-truth information for calorimeter digis, including deposited energies, times, sim particle IDs, and relationships. (inc/CaloDigiMCInfo.hh,src/classes.h,src/classes_def.xml) [1] [2] [3]EventNtupleMaker module enhancements:
src/EventNtupleMaker_module.cc) [1] [2] [3] [4]CaloDigiMCInfoand associated sim info, including retrieval of the necessary input collections. (src/EventNtupleMaker_module.cc) [1] [2] [3] [4]Helper methods for filling MC info:
fillCaloDigiMCInfoandfillCaloDigiSimInfosinInfoMCStructHelperto populate the new data structures fromCaloShowerSimobjects. (src/InfoMCStructHelper.cc,inc/InfoMCStructHelper.hh) [1] [2] [3]Configuration and FCL updates:
fcl/from_dig-calo.fcl)These changes collectively provide the infrastructure to store and access detailed MC truth for calorimeter digis in the EventNtuple, supporting future analysis and validation efforts.