Store true neutrino ID for each neutrino and each true particle in anatree (for matching)
After implementing the maintenance in issue 17917 (https://cdcvs.fnal.gov/redmine/issues/17917), there will be multiple true neutrino stored for every entry in the TTree. For analyses, it's vitally important that an analyser knows which true neutrino a particle came from.
I think that the easiest way to implement this is to store a unique identifier (an int) for every neutrino in a particular TTree::Entry and, for every true particle, store the unique identifier of its mother neutrino.
I think that we should use the art::Ptr::key of each neutrino as the identifier.
I'm marking this as urgent as this will probably be necessary for the SBN workshop.
#2 Updated by Dominic Brailsford over 2 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
I'm slightly apprehensive about the art::Ptr key approach due to backtracker being used to extract the geant4 particles and the matched MCTruth from the art::Event BUT my very very very brief testing suggested it was fine.
Marking as closed.