From 41f10b77c0dced380947df6c9949868639dd79fb Mon Sep 17 00:00:00 2001 From: "Bastian M. Wojek" Date: Wed, 17 Nov 2010 19:47:07 +0000 Subject: [PATCH] Comment the FUNCTIONS block in the written msr-file if there is none in the present msr-data-structure --- src/classes/PMsrHandler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/classes/PMsrHandler.cpp b/src/classes/PMsrHandler.cpp index a3472a24..944f2d0c 100644 --- a/src/classes/PMsrHandler.cpp +++ b/src/classes/PMsrHandler.cpp @@ -1234,6 +1234,9 @@ Int_t PMsrHandler::WriteMsrFile(const Char_t *filename, map *co fout << hline.Data() << endl; // write FUNCTIONS block + // or comment it if there is none in the data structures + if (fFunctions.size() < 2) + fout << "# "; fout << "FUNCTIONS" << endl; for (i = 1; i < fFunctions.size(); ++i) {