Comment the FUNCTIONS block in the written msr-file if there is none in the present msr-data-structure

This commit is contained in:
Bastian M. Wojek 2010-11-17 19:47:07 +00:00
parent 04e9d4e04f
commit 41f10b77c0

View File

@ -1234,6 +1234,9 @@ Int_t PMsrHandler::WriteMsrFile(const Char_t *filename, map<UInt_t, TString> *co
fout << hline.Data() << endl; fout << hline.Data() << endl;
// write FUNCTIONS block // write FUNCTIONS block
// or comment it if there is none in the data structures
if (fFunctions.size() < 2)
fout << "# ";
fout << "FUNCTIONS" << endl; fout << "FUNCTIONS" << endl;
for (i = 1; i < fFunctions.size(); ++i) { for (i = 1; i < fFunctions.size(); ++i) {