Closed feigaodm closed 6 years ago
Uhh, there's an issue. How does this even work? One sec.
tight_coincidence_thresholds = np.zeros(5, dtype=np.int16) # various tight coincidence levels
That's not how you define things in datastructure. Look at the other np arrays. You have to initialize the values in the plugins. You also want just the basic np.array type such that the ROOT code knows how to produce the ROOT C++ class.
I was trying to copy what was done for peak width variables, like 'range_area_decile = np.zeros(11, dtype=np.float)'
Oh really? Odd. I thought we had very strict requirements on what datatypes could be converted. OK, it's too late right now, maybe bad to review.
Due to #718, I would still try what I suggest. Look at area_per_channel for example. I'm not sure why the width code works, but this stuff is very finicky so it's worth trying to add the array like done for the others because that's clearly the source of the issue.
This is to add a few variables for PMT coincidence analysis, copying @pdeperio 's fix in pax_v6.8.0.1.