<br><br><div class="gmail_quote">On Wed, May 26, 2010 at 10:15 AM, Brad Sawatzky <<a href="mailto:brads@jlab.org">brads@jlab.org</a>> wrote:<br><blockquote class="gmail_quote">
<div class="im">On Sat, 22 May 2010, <a href="mailto:posik@jlab.org">posik@jlab.org</a> wrote:<br>
<br>
> So I think I finally got the BB cer multihit TDCs working right. I just<br>
> use TString cuts for all hits in the TDC. For example the beam line side<br>
> has 6 hits, so I do something like<br>
><br>
> TString tdc1_1 =<br>
> "DL.BBcerT01[Ndata.DL.BBcerT01-1]>xx&&DL.BBcerT01[Ndata.DL.BBcerT01-1]<xx"<br>
<br>
</div>What happens when Ndata.DL.BBcerTxx==0? Will it attempt to index with<br>
'-1' or do you watch for that condition prior to invoking this cut?<br></blockquote><div> </div><div>Yes, I took this condition in to account by appending the condition Ndata.DLBBcerTxx!=0 to all 20 TDCs. <br></div>
<blockquote class="gmail_quote">
<div class="im"><br>
> Where this is the cut for TDC 1 and the first hit. the xx are just hi<br>
> and low channels that I cut on. This is done for all hits, and all<br>
> TDCs on both the beam line and rhrs side.<br>
><br>
> I am able to have cut on all beam line TDCs and RHRS side TDCs.<br>
> However in the final TDC cut we want<br>
><br>
> TString bb_tdc = "beamline_tdc || rhrs_tdc"<br>
><br>
> Where beamline_tdc has cuts for all hits of all the TDCs on the<br>
> beamline side and the rhrs has cuts for all hits of all the TDCs on<br>
> the rhrs side. But when I try to make this cut I get an error saying<br>
> that there are too many operators. I looked over the code and every<br>
> thing looks fine.<br>
><br>
> So I converted every thing to TCut rather than TString, thinking maybe<br>
> it was some sort of memeroy thing with ROOT and TString. I now get the<br>
> following error from ROOT when I try to apply the bb_tdc cut:<br>
<br>
</div>Your TString would have to exceed many 100MB of memory before there<br>
would be a problem. (That can happen, but typically only if there is an<br>
infinite recursion on building the string.)<br></blockquote><div><br>Following the suggestion of this site <a href="http://root.cern.ch/phpBB3//viewtopic.php?p=34643&sid=0337d028a3147d554b6b650c9474eddd">http://root.cern.ch/phpBB3//viewtopic.php?p=34643&sid=0337d028a3147d554b6b650c9474eddd</a><br>
I was able to fix that problem. I think this cut is now correctly working.<br> </div><blockquote class="gmail_quote">
<div class="im"><br>
> Limitation: Statement too long tdc_test_2.C:166:<br>
> cint: Security mode 0x7:0x2 *** Fatal error in interpreter... restarting<br>
> interpreter ***<br>
> I was wondering if you had ever come across such an error?<br>
<br>
</div>That's a new one to me... Odds are that you're missing a parenthesis<br>
or something and the interpreter is trying to suck the rest of the<br>
script into the cut.<br>
<br>
When I have run into problems with complicated/long cuts, I have usually<br>
solved the problem by building the cut step by step and verifying that<br>
it works at each stage. For really long cuts, I do the "divide and<br>
conquer" thing -- split the full cut in two and test one half. If that<br>
works then the error is in the other half. Take the bad half, split<br>
it in two, and test each piece. Eventually you'll find the bug.<br></blockquote><div><br>I had built this TDC cut up from one tdc cut on one hit, and gradually built it up to all the TDCs and many hits. By doing this I was fairly confident that my TDC cuts were interacting correctly. I have attached a text file that shows the TDC cuts applied to BB tracks =0 and >0 and how the events changed with the cuts. The two TDC plot sections at the bottom are just notes for me that describe the plots of the nhits and TDC signals for each hit. <br>
</div><blockquote class="gmail_quote">
<br>
-- Brad<br>
<font color="#888888"><br>
--<br>
Brad Sawatzky, PhD <<a href="mailto:brads@jlab.org">brads@jlab.org</a>> -<>- Jefferson Lab / Hall C / C111<br>
Ph: 757-269-5947 -<>- Fax: 757-269-5235 -<>- Pager: <a href="mailto:brads-page@jlab.org">brads-page@jlab.org</a><br>
The most exciting phrase to hear in science, the one that heralds new<br>
discoveries, is not "Eureka!" but "That's funny..." -- Isaac Asimov<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
d2n-analysis-talk mailing list<br>
<a href="mailto:d2n-analysis-talk@jlab.org">d2n-analysis-talk@jlab.org</a><br>
<a href="https://mailman.jlab.org/mailman/listinfo/d2n-analysis-talk">https://mailman.jlab.org/mailman/listinfo/d2n-analysis-talk</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Matthew Posik<br>Email: <a href="mailto:posik@temple.edu">posik@temple.edu</a><br>Temple University Physics Dept.<br>Office: BA-319<br>Office #: 215-204-1331 <br>
WebSites:<br>Temple:<br><a href="http://quarks.temple.edu/">http://quarks.temple.edu/</a><br>d2n:<br><a href="http://hallaweb.jlab.org/experiment/E06-014/">http://hallaweb.jlab.org/experiment/E06-014/</a><br><br>