All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RecoEvent.h
Go to the documentation of this file.
1 #ifndef _sbnumurecodata_RecoEvent_hh
2 #define _sbnumurecodata_RecoEvent_hh
3 
4 #include <vector>
5 #include <map>
6 
7 #include "TVector3.h"
8 
16 
17 namespace numu {
18 
19 /**
20  * Slice of TPC charge containing a list of "particles" (Reco objects)
21  * and TPC tracks (showers to be added). Also contains the primary
22  * track of the slice
23  */
24 struct RecoSlice {
25  int primary_index; //!< Index of the primary particle of this slice.
26  // If this slice is a neutrino slice, then the priamry particle is the neutrino
27  int primary_track_index; //!< Index of the primary track
28  std::map<size_t, RecoParticle> particles; //!< Map of particle index to particle information
29  std::vector<size_t> tracks; //!< List of track indices contained in this slice
30  FlashMatch flash_match; //!< Result of flash matching algorithm on this slice
31 };
32 
33 
34 /**
35 * Reconstruction information for each neutrino vertex.
36 * Produced from both reconstruction and truth information
37 */
39  RecoSlice slice; //!< Particle content of the interaction
40  TVector3 position; //!< location of the vertex
41  float nu_energy; //!< true/reconstructed neutrino energy
42  TruthMatch match; //!< Info for mathing to truth
43  int multiplicity; //!< Number of tracks in this interaction
44 };
45 
46 /** Reconstruction Information about Event */
47 struct RecoEvent {
48  std::map<size_t, RecoTrack> tracks; //!< Map of track indices to Track information.
49  std::map<size_t, TrueParticle> particles; //!< Map of indices to True particle information
50  std::vector<RecoInteraction> reco; //!< List of reconstructed vertices
51  std::vector<CRTHit> in_time_crt_hits; //!< List of crt hits in time with the beam spill
52  std::vector<FlashTriggerPrimitive> flash_trigger_primitives; //!< List of trigger primitives from optical detectors
54 };
55 }
56 #endif
TruthMatch match
Info for mathing to truth.
Definition: RecoEvent.h:42
int primary_track_index
Index of the primary track.
Definition: RecoEvent.h:27
std::map< size_t, TrueParticle > particles
Map of indices to True particle information.
Definition: RecoEvent.h:49
std::vector< CRTHit > in_time_crt_hits
List of crt hits in time with the beam spill.
Definition: RecoEvent.h:51
std::vector< RecoInteraction > reco
List of reconstructed vertices.
Definition: RecoEvent.h:50
TVector3 position
location of the vertex
Definition: RecoEvent.h:40
std::map< size_t, RecoTrack > tracks
Map of track indices to Track information.
Definition: RecoEvent.h:48
FlashMatch flash_match
Result of flash matching algorithm on this slice.
Definition: RecoEvent.h:30
std::vector< FlashTriggerPrimitive > flash_trigger_primitives
List of trigger primitives from optical detectors.
Definition: RecoEvent.h:52
float nu_energy
true/reconstructed neutrino energy
Definition: RecoEvent.h:41
RecoSlice slice
Particle content of the interaction.
Definition: RecoEvent.h:39
std::map< size_t, RecoParticle > particles
Map of particle index to particle information.
Definition: RecoEvent.h:28
int multiplicity
Number of tracks in this interaction.
Definition: RecoEvent.h:43
std::vector< size_t > tracks
List of track indices contained in this slice.
Definition: RecoEvent.h:29
MCType
Definition: MCType.h:5
int primary_index
Index of the primary particle of this slice.
Definition: RecoEvent.h:25