diff --git a/src/THcDriftChamber.cxx b/src/THcDriftChamber.cxx index 9a53958fbb80e716f01b8279d509e3660c25a307..7cce58eabf662a6f2a965df3f60d75dc86b21c15 100644 --- a/src/THcDriftChamber.cxx +++ b/src/THcDriftChamber.cxx @@ -289,7 +289,7 @@ Int_t THcDriftChamber::FindSpacePoints( void ) PlanePInd=XPlanePInd; } if(fPlanes[PlaneInd]->GetNHits() == 1 && fPlanes[PlanePInd]->GetNHits() == 1 - && TMath::Abs(fHits[plane_hitind]->GetPos() - fHits[planep_hitind]->GetPos()) + && pow( (fHits[plane_hitind]->GetPos() - fHits[planep_hitind]->GetPos()),2) < fSpacePointCriterion && fNhits <= 6) { // An easy case, probably one hit per plane if(fHMSStyleChambers) fEasySpacePoint = FindEasySpacePoint_HMS(plane_hitind, planep_hitind); diff --git a/src/THcDriftChamber.h b/src/THcDriftChamber.h index 28e9b6a643f58aa43fdb5db6a0825b6b9c9874a3..f20daa4649d978830e2eef3426a96f9f4de777ed 100644 --- a/src/THcDriftChamber.h +++ b/src/THcDriftChamber.h @@ -15,7 +15,7 @@ #include <map> #include <vector> -#define MAX_SPACE_POINTS 50 +#define MAX_SPACE_POINTS 100 #define MAX_HITS_PER_POINT 20 //#include "TMath.h"