diff --git a/src/THcHodoscope.cxx b/src/THcHodoscope.cxx index 1c469dc03114945dff7d7ca4ceaaf9bf7741925b..612f85560a1f322242ca565d624dd5dd7ce14826 100644 --- a/src/THcHodoscope.cxx +++ b/src/THcHodoscope.cxx @@ -81,16 +81,12 @@ void THcHodoscope::Setup(const char* name, const char* description) char* subname = new char[len+1]; fPlanes = new THcScintillatorPlane* [fNPlanes]; for(Int_t i=0;i < fNPlanes;i++) { - strcpy(subname, name); - strcat(subname, "."); - strcat(subname, fPlaneNames[i]); - strcpy(desc, description); - strcat(desc, " Hodoscope Plane "); + strcat(desc, " Plane "); strcat(desc, fPlaneNames[i]); - fPlanes[i] = new THcScintillatorPlane(subname, desc, this); - cout << "Created Scintillator Plane " << subname << ", " << desc << endl; + fPlanes[i] = new THcScintillatorPlane(fPlaneNames[i], desc, this); + cout << "Created Scintillator Plane " << fPlaneNames[i] << ", " << desc << endl; } } diff --git a/src/THcScintillatorPlane.cxx b/src/THcScintillatorPlane.cxx index 079d869a04009e39aed2ce51e437e547831328a4..29109c1d19bb2f640feb8a3b52b3604b0e67b12b 100644 --- a/src/THcScintillatorPlane.cxx +++ b/src/THcScintillatorPlane.cxx @@ -65,7 +65,6 @@ Int_t THcScintillatorPlane::ReadDatabase( const TDatime& date ) { // See what file it looks for - FILE* file = OpenFile( date ); static const char* const here = "ReadDatabase()"; const int LEN = 200;