From decdb99fafc6711adaed8ca3cad64d2af61ee76d Mon Sep 17 00:00:00 2001 From: Mark Jones <jones@jlab.org> Date: Thu, 2 Nov 2017 20:33:37 -0400 Subject: [PATCH] Modify THcDC::Setup Set fHMSStyleChambers =1 according to dc_version parameter. If no dc_version parameter loaded defaults to old HMS style chambers --- src/THcDC.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/THcDC.cxx b/src/THcDC.cxx index 11eeca6..cbdb270 100644 --- a/src/THcDC.cxx +++ b/src/THcDC.cxx @@ -109,11 +109,6 @@ void THcDC::Setup(const char* name, const char* description) // For now, decide chamber style from the spectrometer name. // Should override with a paramter - if(fPrefix[0]=='h') { - fHMSStyleChambers = 1; - } else { - fHMSStyleChambers = 0; - } //cout<<"HMS Style??\t"<<fHMSStyleChambers<<endl; string planenamelist; DBRequest list[]={ @@ -127,6 +122,14 @@ void THcDC::Setup(const char* name, const char* description) }; gHcParms->LoadParmValues((DBRequest*)&list,fPrefix); + + if(fVersion==0) { + fHMSStyleChambers = 1; + } else { + fHMSStyleChambers = 0; + } + + cout << "Plane Name List: " << planenamelist << endl; cout << "Drift Chambers: " << fNPlanes << " planes in " << fNChambers << " chambers" << endl; -- GitLab