<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div>Hi Tegan,<div><br></div><div>Here’s a simple way to do it with the DAQTreeBCAL plugin:</div><div><br></div><div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">&gt; hd_root -PPLUGINS=DAQTreeBCAL ~/HallD/RAWDATA/hd_rawdata_002180_001.evio</div></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">&gt; root -l hd_root.root</div><div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">root [1] BCALdigi-&gt;MakeSelector<span style="color: #72c271">()</span></div></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><div style="margin: 0px;">root [2] .q</div></div><div><br></div><div>&lt; edit the BCALdigi.C file to contain the following in the&nbsp;Bool_t BCALdigi::Process(Long64_t entry) method &gt;</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Bool_t BCALdigi::Process(Long64_t entry)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">{</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; GetEntry(entry);</div><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;">&nbsp; &nbsp;<br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; <span style="color: #bb2ca2">int</span> Nbins = waveform-&gt;size();</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; <span style="color: #bb2ca2">char</span> title[<span style="color: #272ad8">256</span>];</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; sprintf(title, <span style="color: #d12f1b">"Event %d&nbsp; ROC:%d SLOT:%d CHAN:%d"</span>, eventnum, rocid, slot, channel);</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; TH1D *h = new TH1D(<span style="color: #d12f1b">"h"</span>, title, Nbins, <span style="color: #272ad8">0.0</span>, (<span style="color: #bb2ca2">double</span>)Nbins);</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; <span style="color: #bb2ca2">for</span>(<span style="color: #bb2ca2">unsigned</span> <span style="color: #bb2ca2">int</span> ibin=<span style="color: #272ad8">1</span>; ibin&lt;=Nbins; ibin++) h-&gt;SetBinContent(ibin, waveform-&gt;at(ibin-<span style="color: #272ad8">1</span>));</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span class="Apple-tab-span" style="white-space:pre">        </span>h-&gt;Draw();</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span class="Apple-tab-span" style="white-space:pre">        </span>c1-&gt;Update();</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(209, 47, 27);"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span>cout &lt;&lt; </span>"Press Enter to Continue"<span style="color: #000000">;</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span class="Apple-tab-span" style="white-space:pre">        </span>cin.ignore();</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span class="Apple-tab-span" style="white-space:pre">        </span>delete h;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; <span style="color: #bb2ca2">return</span> kTRUE;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">}</div></div><div><br></div><div><br></div><div><span style="font-family: Monaco; font-size: 10px;">&gt; root -l hd_root.root</span></div><div><span style="font-family: Monaco; font-size: 10px;">root [1]</span><span style="font-family: Monaco; font-size: 10px;">&nbsp;</span><span style="font-family: Monaco; font-size: 10px;">BCALdigi-&gt;Process</span><span style="font-family: Monaco; font-size: 10px; color: rgb(114, 194, 113);">(</span><span style="font-family: Monaco; font-size: 10px;">"BCALdigi.C"</span><span style="font-family: Monaco; font-size: 10px; color: rgb(114, 194, 113);">)</span></div><div><br></div><div><br></div><div>That’s it. Now you know how to fish.</div><div><br></div><div><br></div><div>Regards,</div><div>-David</div><div><br></div><div><br></div><div>&nbsp;<br><div><div>On Mar 20, 2015, at 4:56 PM, beattite &lt;<a href="mailto:beattite@uregina.ca">beattite@uregina.ca</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello.<br><br>I was trying to look into the effects of a few of the BCAL TDC scalars <br>giving much higher event rates (up to 20x higher) than the average [see <br><a href="https://logbooks.jlab.org/entry/3327357]">https://logbooks.jlab.org/entry/3327357]</a>. &nbsp;The initial idea was to check <br>out things like the pedestal and pulse integrals for these channels to <br>confirm that we see something like this increased rate in the ADCs as <br>well.<br><br>I looked at a run from the day after the logbook entry was posted <br>(Run002649) first. &nbsp;Looking through the pedestal histograms for each <br>channel, I don't see the three 'hot' channels in terms of number of <br>pedestal events.<br><br>I also looked at the DAQTreeBCAL plugin output to look at the number of <br>events recorded for each channel by BCALDigiHit. &nbsp;Again, I don't see any <br>high-event channels. &nbsp;We were going to look at the pulse integral <br>distributions to see if they showed something interesting, and we also <br>wanted to look at the raw waveforms from some Mode 8 data.<br><br>Is there a plugin somewhere that I could grab that would allow us to <br>look at the waveforms easily? &nbsp;As in, is there an easy way to visually <br>inspect waveforms for specific channels?<br><br>Thanks.<br>_______________________________________________<br>Halld-cal mailing list<br><a href="mailto:Halld-cal@jlab.org">Halld-cal@jlab.org</a><br>https://mailman.jlab.org/mailman/listinfo/halld-cal<br></blockquote></div><br></div></body></html>