From 4286abcccc65eeefc4dcd161a85bb1f9e8a420bc Mon Sep 17 00:00:00 2001 From: "Stephen A. Wood" <zviwood@gmail.com> Date: Sat, 5 May 2012 22:12:05 -0400 Subject: [PATCH] Adjust names given to scintillator plane sub detector. --- src/THcHodoscope.cxx | 10 +++------- src/THcScintillatorPlane.cxx | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/THcHodoscope.cxx b/src/THcHodoscope.cxx index 1c469dc..612f855 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 079d869..29109c1 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; -- GitLab