aboutsummaryrefslogtreecommitdiff
path: root/src/zdab_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zdab_utils.c')
-rw-r--r--src/zdab_utils.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/zdab_utils.c b/src/zdab_utils.c
index 48ad9a1..a7669fa 100644
--- a/src/zdab_utils.c
+++ b/src/zdab_utils.c
@@ -112,7 +112,6 @@ int get_event(zebraFile *f, event *ev, zebraBank *bev)
ev->pmt_hits[id].hit = 1;
ev->pmt_hits[id].ept = bpmt.ept;
- ev->pmt_hits[id].t = bpmt.pt;
ev->pmt_hits[id].qihl = bpmt.pihl;
ev->pmt_hits[id].qihs = bpmt.pihs;
ev->pmt_hits[id].qilx = bpmt.pilx;
@@ -123,7 +122,13 @@ int get_event(zebraFile *f, event *ev, zebraBank *bev)
ev->pmt_hits[id].qhs = bpmt.phs;
ev->pmt_hits[id].qlx = bpmt.plx;
ev->pmt_hits[id].pf = bpmt.pf;
+ ev->pmt_hits[id].pt = bpmt.pt;
ev->pmt_hits[id].pt1 = bpmt.pt1;
+ ev->pmt_hits[id].ptm = bpmt.ptm;
+
+ /* Use the multiphoton PCA time since we are looking at high energy
+ * events. */
+ ev->pmt_hits[id].t = bpmt.ptm;
/* Clear the PMT_FLAG_DIS bit. */
ev->pmt_hits[id].flags &= ~PMT_FLAG_DIS;