<html><body>Dear Brian,<div><br></div><div>I am using the information of the TGBI bank. The highest bit in latch1 defines the helicity state. Below are a few lines of code within the rootbeer framework. </div><div><br></div><div><font size="2" face="Monaco" class="Apple-style-span">if (getbits(TGBI[0].latch1, 15,1)==1) HBeam = 1;</font></div><div><div><font size="2" face="Monaco" class="Apple-style-span"> else HBeam = -1;</font></div><div><br></div><div>where getbits is:</div><div><br></div><div><div><font size="2" face="Monaco" class="Apple-style-span">unsigned int getbits(int x, int p, int n) {</font></div><div><font size="2" face="Monaco" class="Apple-style-span"> return (x >> (p + 1 - n)) & ~(~0 << n);</font></div><div><font size="2" face="Monaco" class="Apple-style-span">}</font></div><div><br></div><div>I hope this helps,</div><div>Steffen</div><div><br></div></div></div><div><br></div><div><br><div><div>On Feb 8, 2010, at 5:16 PM, Brian Morrison wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hey all,<br><br>For those of you who did some helicity analysis in the past on the FROST<br>data could you send me an email with how you determined which helicity was<br>associated with each event? I'm having some really strange things show up<br>in my plots and need to make sure that the method I'm using to determine<br>the helicity is correct (or if there is an easier and more sure way of<br>determining it). Thanks!<br><br>-Brian<br><br>_______________________________________________<br>Frost mailing list<br><a href="mailto:Frost@jlab.org">Frost@jlab.org</a><br>https://mailman.jlab.org/mailman/listinfo/frost<br></div></blockquote></div><br></div></body></html>