All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data/TruthMatch.h
Go to the documentation of this file.
1 #ifndef _sbnumurecodata_TruthMatch_hh
2 #define _sbnumurecodata_TruthMatch_hh
3 
4 #include "TVector3.h"
5 
7 
8 namespace numu {
9 /**
10 * Matching information between a Track and truth
11 */
13  bool has_match; //!< Whether a track match exists
14  bool mctruth_has_neutrino; //!< Whether the MCTruth object this track matches to is a neutrino interaction
15  TVector3 mctruth_vertex; //!< The interaction vertex of the MCTruth object this track matches to
16  int mctruth_origin; //!< Value of Origin_t enum of the MCTruth object this track matches to
17  int mctruth_ccnc; //!< CC (1) / NC (0) value of the MCTruth this object matches to
18  int mcparticle_id; //!< MCParticle ID of the particle this track matches to (same as the ID of the RecoTrack of that particle.)
19  float completion; //!< Fraction of energy deposits by true particle matched by this track
20  int match_pdg; //!< PDG of the MCParticle this track matches to
21  bool is_primary; //!< Whether this track was produced as the "primary" process
25  mctruth_vertex(-1, -1, -1),
26  mctruth_origin(-1),
27  mctruth_ccnc(-1),
28  mcparticle_id(-1),
29  completion(-1),
30  match_pdg(-1),
31  is_primary(false) {}
32 };
33 
34 /**
35 * Matching information between a candidate neutrino interaction and truth
36 */
37 struct TruthMatch {
38  bool has_match; //!< Whether a truth match exists
39  InteractionMode mode; //!< Mode of the interaction
40  TrackMode tmode; //!< Mode of the primary track in this interaction
41  int mctruth_vertex_id; //!< index of the truth vertex into the list of MCThruths. -1 if no match
42  int mctruth_track_id; //!< index of the primary track into the list of MCTruths. -1 if no match.
43  float truth_vertex_distance; //!< Distance from truth interaction vertex to this vertex
44 };
45 }
46 #endif
InteractionMode mode
Mode of the interaction.
bool mctruth_has_neutrino
Whether the MCTruth object this track matches to is a neutrino interaction.
int mctruth_ccnc
CC (1) / NC (0) value of the MCTruth this object matches to.
int mctruth_origin
Value of Origin_t enum of the MCTruth object this track matches to.
int mcparticle_id
MCParticle ID of the particle this track matches to (same as the ID of the RecoTrack of that particle...
TrackMode
Definition: Mode.h:22
InteractionMode
Definition: Mode.h:8
TVector3 mctruth_vertex
The interaction vertex of the MCTruth object this track matches to.
float completion
Fraction of energy deposits by true particle matched by this track.
bool has_match
Whether a track match exists.
bool is_primary
Whether this track was produced as the &quot;primary&quot; process.
int mctruth_vertex_id
index of the truth vertex into the list of MCThruths. -1 if no match
float truth_vertex_distance
Distance from truth interaction vertex to this vertex.
int mctruth_track_id
index of the primary track into the list of MCTruths. -1 if no match.
TrackMode tmode
Mode of the primary track in this interaction.
bool has_match
Whether a truth match exists.
int match_pdg
PDG of the MCParticle this track matches to.