Hi Jerome, No way to change stdout in TMinuit other than using the >> operator. I do not understand your point with: " because there are many more outputs from myMacro that I don't want to keep." With the operator >> you can add output in independent transactions to the same file. This should be more flexible than the old Fortran way. Rene Brun Jerome Baudot wrote: > > Hello, > > I'm using the TMinuit class to minimize some likelyhood function in the > middle of another data analysis. I would like to get the print out of > minuit with all the messages from Migrad and all that kind of stuff. > > I remember in FORTRAN we were using the MNINIT subroutine to redirect > these output which is still available as a method of a class. BUT it > asks for unit number (integer), which was the way FORTRAN handle > file...There is no such thing to my knowledge in C++, is there ? > I tryed nevertheless to initialize with gMinuit->mninit(5,10,7), and get > nothing in a new ftn10-like file. > > So how can I do that? I have to specify that I don't want to do > something like > "root myMacro.C >> output.txt", because there are many more outputs from > myMacro that I don't want to keep. > > Thanks for the support, > > Jerome > -- > IReS - Universite L.Pasteur Strasbourg > 23 rue du Loess, BP28, F-67037 Strasbourg France > tel +33 (0)3 88 10 66 32 / fax +33 (0)3 88 10 66 16
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET