Project

General

Profile

Feature #17918

Store true neutrino ID for each neutrino and each true particle in anatree (for matching)

Added by Dominic Brailsford almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Urgent
Category:
Analysis
Start date:
10/16/2017
Due date:
% Done:

100%

Estimated time:
Duration:

Description

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.

Associated revisions

Revision cba8c5c7 (diff)
Added by Dominic Brailsford almost 2 years ago

First step of feature for issue #17918

Leafs for a neutrino ID and the ID of a geant particle's mother neutrino have been added and filled with defaults.

History

#1 Updated by Dominic Brailsford almost 2 years ago

  • % Done changed from 0 to 90

Fixed with commits cba8c5c7 and 56e36ba9

The commits are currently on a feature branch and need pushing to develop.

#2 Updated by Dominic Brailsford almost 2 years ago

  • Status changed from New to Closed
  • % Done changed from 90 to 100

Done.

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.



Also available in: Atom PDF