From 0eec2a5a9b8416d6d4101f655179a1a9450555d0 Mon Sep 17 00:00:00 2001
From: hallc-online <hallconline@gmail.com>
Date: Mon, 16 Apr 2018 09:23:32 -0400
Subject: [PATCH] Updated THcDriftChamber.cxx

In LeftRight method when using SmallAngle Approximation and
 additional condition that the wires in adjacent plane have to
 be within 0.51cm.
---
 src/THcDriftChamber.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/THcDriftChamber.cxx b/src/THcDriftChamber.cxx
index 0a446d7..44d82ba 100644
--- a/src/THcDriftChamber.cxx
+++ b/src/THcDriftChamber.cxx
@@ -1146,8 +1146,8 @@ void THcDriftChamber::LeftRight()
 	  if((pindex1%2)==0) { // Odd plane (or even index)
 	    for(Int_t ihit2=0;ihit2<nhits;ihit2++) {
 	      THcDCHit* hit2 = sp->GetHit(ihit2);
-	      if(hit2->GetPlaneIndex()-pindex1 == 1) { // Adjacent plane
-		if(hit2->GetPos() <= hit1->GetPos()) {
+	      if(hit2->GetPlaneIndex()-pindex1 == 1 && TMath::Abs(hit2->GetPos()-hit1->GetPos())<0.51) { // Adjacent plane
+		if(hit2->GetPos() <= hit1->GetPos() ) {
 		  plusminusknown[ihit1] = -1;
 		  plusminusknown[ihit2] = 1;
 		} else {
-- 
GitLab