From ee73e784e2d1c7021af3c8f21d3e9e35c36ae796 Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <saw@jlab.org>
Date: Wed, 5 Sep 2018 13:16:35 -0400
Subject: [PATCH] THcDriftChamber::CorrectHitTimes use fHMSStyleChambers
 instead of using GetParent() every hit to get DC version.

---
 src/THcDriftChamber.cxx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/THcDriftChamber.cxx b/src/THcDriftChamber.cxx
index 9733e90..df5b801 100644
--- a/src/THcDriftChamber.cxx
+++ b/src/THcDriftChamber.cxx
@@ -973,10 +973,7 @@ void THcDriftChamber::CorrectHitTimes()
 				 x*plane->GetReadoutCorr()/fWireVelocity;
 
 		  // This applies the wire velocity correction for new SHMS chambers --hszumila, SEP17
-		  THcDC* fParent;
-		  fParent = (THcDC*) GetParent();
-		  Int_t version = fParent->GetVersion();
-		  if (version!= 0){
+		  if (!fHMSStyleChambers){
 			  Int_t pln = hit->GetPlaneNum();
 			  Int_t readoutSide = hit->GetReadoutSide();
 
-- 
GitLab