[Brahms-dev-l] BRAT UPDATE

From: flemming videbaek <videbaek@rcf.rhic.bnl.gov>
Date: Thu Jul 08 2004 - 16:25:52 EDT
I made a small update to the BrMainModule. It has many time cost me much grief that the config script fails
(e.g. by calling a wrong method to one of the classes) and bratmain just and analyses the while file but may e.g.
not produce the output file.

The problem is essentially that the gRoot->Macro("configscript") hoes not return an error even when CINT gives on

To get around this I added a flag to the mainmodule that is set a beginning of the script e.g.
right after the instatiation of the BrMainModule..

mainModule->InitSetup();
..
rest of config script

.. at very end
mainModule->SetupDone()

If the script is aborted due to an error the setupdone is not calle an the BrMainModule will stop execution before the Init() method
not doing anything!!

If you do not add this to the script the bahaviour will be as before

brat version is 2.20.6

----------------------------------------------------------------
Flemming Videbaek
Physics Department
Brookhaven National Laboratory

e-mail: videbaek@bnl.gov
phone: 631-344-4106



_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l@lists.bnl.gov
http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
Received on Thu Jul 8 16:27:06 2004

This archive was generated by hypermail 2.1.8 : Thu Jul 08 2004 - 16:27:32 EDT