All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Derived.h
Go to the documentation of this file.
1 #ifndef _sbncode_Derived_hh
2 #define _sbncode_Derived_hh
3 
4 #include <vector>
5 #include "../Data/RecoEvent.h"
6 #include "core/Event.hh"
7 
8 // helper functions to calculate derived quantities from
9 // output classes of the reconstruction processing
10 
11 namespace numu {
12  /**
13  * Distance between one interation vertex and a list of candidate matching vertices
14  * \param truth The true neutrino interaction to match
15  * \param candidates The list of candidate vertices matching to this one
16  *
17  * \return The minimum distance between the list of candidates and the vertex
18  */
19  float dist2Match(const event::Interaction &truth, const std::vector<numu::RecoInteraction> &candidates);
20 
21  /**
22  * Get the completon of a reconstructed track matching to a true track
23  *
24  * \param truth_index The index of the true particle to match
25  * \param event The reconstructed event
26  *
27  * \return The maximum completion of all reconstructed tracks to the true track. -1
28  * if there is no matching reconstructed track
29  */
30  float trackMatchCompletion(unsigned truth_index, const numu::RecoEvent &event);
31 }
32 
33 
34 
35 #endif
float dist2Match(const event::Interaction &truth, const std::vector< numu::RecoInteraction > &candidates)
Definition: Derived.cc:3
float trackMatchCompletion(unsigned truth_index, const numu::RecoEvent &event)
Definition: Derived.cc:13
All truth information associated with one neutrino interaction.
Definition: Event.hh:150