diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/event.h | 4 | ||||
-rw-r--r-- | src/zdab_utils.c | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/event.h b/src/event.h index 4ebb14c..ddb8be3 100644 --- a/src/event.h +++ b/src/event.h @@ -61,6 +61,10 @@ typedef struct pmt_hit { int pf; /* Non-walk corrected PMT time. */ float pt1; + /* Time in nano-secs relative to event T0. */ + float pt; + /* Multiphoton PCA time. */ + float ptm; } pmt_hit; typedef struct event { 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; |