From c0420b92ad569ba08fd6665653f48e392eb75429 Mon Sep 17 00:00:00 2001 From: Anuj Gupta Date: Fri, 3 Jul 2026 05:04:45 -0500 Subject: [PATCH] Update ANNIEEventTreeMaker to save the LAPPD trigger timing --- .../ANNIEEventTreeMaker/ANNIEEventTreeMaker.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/UserTools/ANNIEEventTreeMaker/ANNIEEventTreeMaker.cpp b/UserTools/ANNIEEventTreeMaker/ANNIEEventTreeMaker.cpp index 5c6dc815d..79b8f9f2d 100644 --- a/UserTools/ANNIEEventTreeMaker/ANNIEEventTreeMaker.cpp +++ b/UserTools/ANNIEEventTreeMaker/ANNIEEventTreeMaker.cpp @@ -1523,6 +1523,11 @@ void ANNIEEventTreeMaker::FillLAPPDPulse() for (it = lappdPulses.begin(); it != lappdPulses.end(); it++) { int stripno = it->first; + //int channelNum = it->first; + //Channel *chan = geom->GetChannel(channelNum); + //int stripno = chan->GetStripNum(); + //int stripSide = chan->GetStripSide(); + vector> stripPulses = it->second; vector pulse0 = stripPulses.at(0); @@ -1594,6 +1599,11 @@ void ANNIEEventTreeMaker::FillLAPPDHit() for (it = lappdHits.begin(); it != lappdHits.end(); it++) { int stripno = it->first; + //int channelNum = it->first; + //Channel *chan = geom->GetChannel(channelNum); + //int stripno = chan->GetStripNum(); + + vector stripHits = it->second; for (int i = 0; i < stripHits.size(); i++) { @@ -2675,8 +2685,10 @@ void ANNIEEventTreeMaker::FillLAPPDWaveform() // get the waveforms from channel number unsigned long channel = it->first; channel = channel % 1000 + 1000; - if ((channel % 1000) % 30 == 5) - continue; + + // if ((channel % 1000) % 30 == 5) + // continue; + Waveform waveforms = it->second.at(0); vector wav = *waveforms.GetSamples(); vector wave = wav;