All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrimaryTrack.h
Go to the documentation of this file.
1 #ifndef _sbncode_PriamryTrack_hh
2 #define _sbncode_PriamryTrack_hh
3 
4 #include <vector>
5 #include "../Data/RecoEvent.h"
6 
7 // Do truth match with the NumuReco objects defined in Data/
8 
9 namespace numu {
10  /**
11  * Algorithm to select the primary track -- get the longest one
12  *
13  * \param tracks All reconstructed tracks in the event
14  * \param slice The RecoSlice to select the primary track for
15  * \return The ID of the primary track. Returns -1 if no such track exists.
16  */
17  int SelectLongestTrack(const std::map<size_t, RecoTrack> &tracks, const RecoSlice &slice);
18 
19  /**
20  * Algorithm to select the primary track -- get the longest one that has a better
21  * particle ID for muon than proton
22  *
23  * \param tracks All reconstructed tracks in the event
24  * \param slice The RecoSlice to select the primary track for
25  * \return The ID of the primary track. Returns -1 if no such track exists.
26  */
27  int SelectLongestIDdMuon(const std::map<size_t, RecoTrack> &tracks, const RecoSlice &slice);
28 
29 }
30 
31 
32 
33 #endif
ClusterModuleLabel join with tracks
int SelectLongestIDdMuon(const std::map< size_t, RecoTrack > &tracks, const RecoSlice &slice)
Definition: PrimaryTrack.cc:22
int SelectLongestTrack(const std::map< size_t, RecoTrack > &tracks, const RecoSlice &slice)
Definition: PrimaryTrack.cc:3