aboutsummaryrefslogtreecommitdiff
path: root/src/event.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-06-14 13:52:29 -0500
committertlatorre <tlatorre@uchicago.edu>2019-06-14 13:52:29 -0500
commit22b4e03dafcbeb29ca1494295bc89aa22fe0aa39 (patch)
tree4cf3ac0493bfd7b9005a71ae6ee3081656ffed13 /src/event.h
parent5301779e9337456ff7efe97848babf456a59b5da (diff)
downloadsddm-22b4e03dafcbeb29ca1494295bc89aa22fe0aa39.tar.gz
sddm-22b4e03dafcbeb29ca1494295bc89aa22fe0aa39.tar.bz2
sddm-22b4e03dafcbeb29ca1494295bc89aa22fe0aa39.zip
update flasher cut to use pt1 instead of ept
Small update to the flasher cut to use the non-walk corrected time instead of just the ECA calibrated time. Also added some comments to the variables in the event structure.
Diffstat (limited to 'src/event.h')
-rw-r--r--src/event.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/event.h b/src/event.h
index 70b8898..7c7f990 100644
--- a/src/event.h
+++ b/src/event.h
@@ -28,20 +28,37 @@
/* Struct to hold all data from a single event used for fitting. */
typedef struct pmt_hit {
+ /* Set to 1 if the PMT was hit. */
int hit;
+ /* ECA calibrated time (ns). */
float ept;
+ /* Time in nano-secs relative to event T0 (ns). */
float t;
+ /* ECA calibrated QHL (pedestal subtracted). */
float ehl;
+ /* ECA calibrated QHL (pedestal subtracted). */
float ehs;
+ /* ECA calibrated QLX (pedestal subtracted). */
float elx;
+ /* Integrated charge. */
float qhl;
+ /* Short-time integrated charge. */
float qhs;
+ /* Low-gain integrated charge. */
float qlx;
+ /* Uncalibrated high-gain, long integration charge. */
uint16_t qihl;
+ /* Uncalibrated high-gain, short integration charge. */
uint16_t qihs;
+ /* Uncalibrated low-gain, long integration charge. */
uint16_t qilx;
+ /* Bitmask used to disqualify hits from the likelihood calculation. See the
+ * PMT_FLAG_* bitmasks above. */
int flags;
+ /* Set of 1-bit PMT flags. See the KPF_* bitmasks in zdab_utils.h. */
int pf;
+ /* Non-walk corrected PMT time. */
+ float pt1;
} pmt_hit;
typedef struct event {