All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data.h
Go to the documentation of this file.
1 #ifndef _sbnanalysis_TrackReducer_data_hh_
2 #define _sbnanalysis_TrackReducer_data_hh_
3 
4 #include <vector>
5 #include <array>
6 
7 struct Track {
8  std::vector<std::array<float, 3>> trajectory; //!< The reconstructed trajectory [cm]
9  std::vector<unsigned> track_daughters; //!< The list of "daughter" tracks to this one. Each entry is the index into the reco list of each daughter
10  std::vector<unsigned> shower_daughters; //!< The list of "daughter" showers to this one. Each entry is the index into the reco list of each daughter
11  int truth_match; //!< Match to true particle. -1 if no truth match exists. Otherwise, is the index into the truth list
12 };
13 
14 struct Shower {
15  float start[3]; //!< Start location of shower [cm]
16  float start_err[3]; //!< Error in start location of shower [cm]
17  float direction[3]; //!< Initialial direction of shower (unit vector)
18  float direction_err[3]; //!< Error in initial direction of shower
19  std::vector<unsigned> track_daughters; //!< The list of "daughter" tracks to this one. Each entry is the index into the reco list of each daughter
20  std::vector<unsigned> shower_daughters; //!< The list of "daughter" showers to this one. Each entry is the index into the reco list of each daughter
21  int truth_match; //!< Match to true particle. -1 if no truth match exists. Otherwise, is the index into the truth list
22 };
23 
24 struct TrueParticle {
25  int pid; //!< Particle ID
26  float energy; //!< Initial energy of the particle [GeV]
27  std::vector<std::array<float, 3>> trajectory; //!< True trajectory of the particle [cm]
28  std::vector<unsigned> daughters; //!< The list of true "daughter" particles to this one. Each entry is the index into the truth list of each daughter
29  std::string process; //!< Process which created this particle
30 };
31 
32 struct Tracks {
33  std::vector<Shower> reco_showers;
34  std::vector<Track> reco_tracks; // the list of reconstructed tracks
35  std::vector<TrueParticle> truth; // the list of true particles
36 };
37 
38 
39 #endif
float start_err[3]
Error in start location of shower [cm].
Definition: Data.h:16
std::vector< std::array< float, 3 > > trajectory
True trajectory of the particle [cm].
Definition: Data.h:27
Definition: Data.h:32
std::vector< std::array< float, 3 > > trajectory
The reconstructed trajectory [cm].
Definition: Data.h:8
std::vector< unsigned > shower_daughters
The list of &quot;daughter&quot; showers to this one. Each entry is the index into the reco list of each daught...
Definition: Data.h:20
int truth_match
Match to true particle. -1 if no truth match exists. Otherwise, is the index into the truth list...
Definition: Data.h:11
Definition: Data.h:14
Definition: Data.h:7
std::vector< unsigned > track_daughters
The list of &quot;daughter&quot; tracks to this one. Each entry is the index into the reco list of each daughte...
Definition: Data.h:9
float energy
Initial energy of the particle [GeV].
Definition: Data.h:26
float start[3]
Start location of shower [cm].
Definition: Data.h:15
std::string process
Process which created this particle.
Definition: Data.h:29
std::vector< unsigned > track_daughters
The list of &quot;daughter&quot; tracks to this one. Each entry is the index into the reco list of each daughte...
Definition: Data.h:19
int truth_match
Match to true particle. -1 if no truth match exists. Otherwise, is the index into the truth list...
Definition: Data.h:21
std::vector< TrueParticle > truth
Definition: Data.h:35
std::vector< Track > reco_tracks
Definition: Data.h:34
float direction_err[3]
Error in initial direction of shower.
Definition: Data.h:18
int pid
Particle ID.
Definition: Data.h:25
std::vector< unsigned > shower_daughters
The list of &quot;daughter&quot; showers to this one. Each entry is the index into the reco list of each daught...
Definition: Data.h:10
std::vector< unsigned > daughters
The list of true &quot;daughter&quot; particles to this one. Each entry is the index into the truth list of eac...
Definition: Data.h:28
float direction[3]
Initialial direction of shower (unit vector)
Definition: Data.h:17
std::vector< Shower > reco_showers
Definition: Data.h:33