<div dir="ltr">Dear all,
<div><br></div><div>Here is the algorithm I use for the CC phi matching cut. It requires the variable "cc_segm" (this is its name in nt22 format). First calculate the quantity</div><div><br></div><div>int ccpmt = cc_segm[i]/1000 - 1;</div><div><br></div><div>the value will be -1 for a left side PMT, +1 for a right side PMT, or 0 for both sides. Next, simply compare this to the track's phi angle relative to the sector (I call this "relphi"):</div><div><br></div><div><div>if(relphi > 0 && ccpmt > 0) return 1;</div><div>if(relphi > 0 && ccpmt < 0) return 2;</div><div>if(relphi < 0 && ccpmt < 0) return -1; </div><div>if(relphi < 0 && ccpmt > 0) return -2; </div><div>if(ccpmt == 0 || relphi == 0) return 0;</div></div><div><br></div><div>Good electrons will return -1, 0, or +1, i.e. I cut tracks with -2 and +2 from my electron sample.</div><div><br></div><div>Please let me know if you have any questions.</div><div><br></div><div>Best regards,</div><div>Nathan</div></div>