summaryrefslogtreecommitdiff
path: root/fileio/root.C
diff options
context:
space:
mode:
Diffstat (limited to 'fileio/root.C')
-rw-r--r--fileio/root.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/fileio/root.C b/fileio/root.C
index 096811a..24ed09a 100644
--- a/fileio/root.C
+++ b/fileio/root.C
@@ -13,12 +13,22 @@ struct Photon {
int last_hit_triangle;
};
+struct Track {
+ std::string particle;
+ double t;
+ TVector3 pos;
+ TVector3 dir;
+ double total_energy;
+};
+
struct MC {
std::string particle;
TVector3 gen_pos;
TVector3 gen_dir;
double gen_total_e;
+
+ std::vector<Track> subtrack;
std::vector<Photon> photon_start;
std::vector<Photon> photon_stop;
@@ -88,6 +98,7 @@ void fill_hits(Event *ev, unsigned int nchannels, float *t,
#ifdef __MAKECINT__
+#pragma link C++ class vector<Track>;
#pragma link C++ class vector<Photon>;
#pragma link C++ class vector<Channel>;
#endif