From: Bjorn H Samset (bjornhs@rcf2.rhic.bnl.gov)
Date: Tue Feb 25 2003 - 09:11:57 EST
Hi Kris and any other BRAHVO maintainers.
Dana made me aware of a bug in the current BRAHVO - if one saves a config
file, it can't read it back. I investigated a bit, and found the following
problem in Detector.cc:
****
int
Detector::writeConfigFile(string file)
{
cout << "Saving " << file << " in " << configdir << "." << endl;
const char* fileName = file.c_str();
ofstream fout(fileName);
//what time is it?
time_t curtime;
curtime = time (NULL);
fout << "#Setting file saved " << asctime(localtime(&curtime)) << " /n";
fout << "#Label Mf MFchannel Default Max \n";
for (int i=0; i<fNoOfChannels; i++) {
****
The error is in the "#Setting file saved" line - the "/n" should be "\n".
(We get an extra '/n' in the config file which confuses BRAHVO - I was
able to get it to read the saved files by removing this extra character)
Since this is a rather critical app I don't want to mess with it - could
someone (Kris? Hiro?) fix this and reinstall in ~operator?
--
Bjorn H. Samset Phone: 22856465/92051998
PhD student, heavy ion physics Adr: Schouterrassen 6
Inst. of Physics, University of Oslo 0573 Oslo
\|/
----------------------------> -*- <-----------------------------
/|\
This archive was generated by hypermail 2.1.5 : Tue Feb 25 2003 - 09:12:45 EST