From 755a7898eafdf50dd068dbdfa42a15fa5269800b Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <saw@jlab.org>
Date: Wed, 3 Jan 2018 19:44:07 -0500
Subject: [PATCH] Change parameter name of target mass to gtargmass_amu   Don't
 use prefix to construct name

---
 src/THcPrimaryKine.cxx | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/THcPrimaryKine.cxx b/src/THcPrimaryKine.cxx
index 3709d67..25d08af 100644
--- a/src/THcPrimaryKine.cxx
+++ b/src/THcPrimaryKine.cxx
@@ -188,19 +188,12 @@ Int_t THcPrimaryKine::ReadDatabase( const TDatime& date )
 #ifdef WITH_DEBUG
   cout << "In THcPrimaryKine::ReadDatabase()" << endl;
 #endif
-  //
-  char prefix[2];
-
-  // cout << " GetName() " << GetName() << endl;
-
-  prefix[0]=tolower(GetName()[0]);
-  prefix[1]='\0';
 
   DBRequest list[]={
-    {"targmass_amu",          &fMA_amu,             kDouble,         0,  1},
+    {"gtargmass_amu",          &fMA_amu,             kDouble,         0,  1},
     {0}
   };
-  gHcParms->LoadParmValues((DBRequest*)&list,prefix);
+  gHcParms->LoadParmValues((DBRequest*)&list);
     //
   fMA= fMA_amu*931.5/1000.;
   return kOK;
-- 
GitLab