All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NumuReco/TruthMatch.h
Go to the documentation of this file.
1 #ifndef _sbncode_TruthMatch_hh
2 #define _sbncode_TruthMatch_hh
3 
4 #include <vector>
5 #include "../Data/RecoEvent.h"
6 #include "core/Event.hh"
7 
8 // Do truth match with the NumuReco objects defined in Data/
9 
10 namespace numu {
11  /**
12  * Returns the truth match interaction in a RecoInteraction
13  *
14  * \param truth The list of true interactions in the event
15  * \param reco_tracks The set of reconstructed tracks in the event
16  * \param reco The reconstructed interaction in the event. The existing content
17  * of the reco.match instance does not affect the algorithm
18  * \return The TruthMatch object for the RecoInteraction reco
19  */
20  TruthMatch InteractionTruthMatch(const std::vector<event::Interaction> &truth, const std::map<size_t, numu::RecoTrack> &reco_tracks, const numu::RecoInteraction &reco);
21 
22  /**
23  * Corrects a list of reco interaction objects when some are matched to the
24  * same truth neutrino interaction by making some of them non-primary
25  *
26  * \param event The reconstructed event
27  * \param recos The list of reconstructed vertices. The "match" field of each
28  * RecoInteraction may be edited by this function
29  *
30  */
31  void CorrectMultiMatches(RecoEvent &event, std::vector<RecoInteraction> &recos);
32 
34 }
35 
36 
37 
38 #endif
InteractionMode GetMode(const event::Interaction &truth)
Definition: TruthMatch.cc:5
InteractionMode
Definition: Mode.h:8
void CorrectMultiMatches(RecoEvent &event, std::vector< RecoInteraction > &recos)
Definition: TruthMatch.cc:110
process_name standard_reco_uboone reco
TruthMatch InteractionTruthMatch(const std::vector< event::Interaction > &truth, const std::map< size_t, numu::RecoTrack > &reco_tracks, const numu::RecoInteraction &reco)
Definition: TruthMatch.cc:10
All truth information associated with one neutrino interaction.
Definition: Event.hh:150