[Frost] Determining Helicity

Steffen Strauch strauch at sc.edu
Mon Feb 8 17:45:58 EST 2010


Dear Brian,

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.

if (getbits(TGBI[0].latch1, 15,1)==1) HBeam = 1;
   else HBeam = -1;

where getbits is:

unsigned int getbits(int x, int p, int n) {
   return (x >> (p + 1 - n)) & ~(~0 << n);
}

I hope this helps,
Steffen



On Feb 8, 2010, at 5:16 PM, Brian Morrison wrote:

> Hey all,
>
> For those of you who did some helicity analysis in the past on the  
> FROST
> data could you send me an email with how you determined which  
> helicity was
> associated with each event?  I'm having some really strange things  
> show up
> in my plots and need to make sure that the method I'm using to  
> determine
> the helicity is correct (or if there is an easier and more sure way of
> determining it).  Thanks!
>
> -Brian
>
> _______________________________________________
> Frost mailing list
> Frost at jlab.org
> https://mailman.jlab.org/mailman/listinfo/frost

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/frost/attachments/20100208/24425584/attachment.html 


More information about the Frost mailing list