Skip to content
Snippets Groups Projects
Commit decdb99f authored by Mark Jones's avatar Mark Jones Committed by Mark K Jones
Browse files

Modify THcDC::Setup

Set fHMSStyleChambers =1 according to dc_version parameter.
If no dc_version parameter loaded defaults to old HMS style chambers
parent d5763f24
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment