summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/root.C3
1 files changed, 1 insertions, 2 deletions
diff --git a/io/root.C b/io/root.C
index 0cfb37f..dfcb3c0 100644
--- a/io/root.C
+++ b/io/root.C
@@ -51,11 +51,10 @@ void fill_event(TTree *T,
Event *ev, int event_id, double *gen_pos, int nchannels,
float *channel_times)
{
+ ev->clear();
ev->event_id = event_id;
MC &mc = ev->mc;
mc.gen_pos.SetXYZ(gen_pos[0], gen_pos[1], gen_pos[2]);
- mc.photon.resize(0);
- ev->channel.resize(0);
ev->nhit = 0;
Channel ch;
for (int i=0; i < nchannels; i++) {