Re: Minuit2 ouput level

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Wed, 19 Mar 2008 09:50:30 +0100


Hi,
  I am sorry I cannot solve your problem. I hope ATLAS will move soon to 5.18, if you cannot easly replace yourself the ROOT version of your program,

   Best Regards

  Lorenzo

On Mar 18, 2008, at 11:43 PM, Bernhard Bittner wrote:

> Hi all,
>
> I'm running my code on some montacarlo data of simulated ATLAS
> events and there are just some non good events. I checked for quite
> some events where MINUIT is failing, and these events are clearly
> not usable. Most of the times all if fine, and all events with some
> bad fits are discarded. But the Minuit output is messing put
> important error messages.
>
> I guess i will just have to live with them ...
>
> Many Thanks!
> Bernhard
>
> On Tue, 18 Mar 2008 21:21:39 +0100, Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch
> > wrote:
>
>> Hi Bernhard,
>>
>> unfortunatly TError is used for producing error and warning
>> messages only for versions > 5.14.
>> I would reccomend too to try to fix the error. Probably Migrad
>> fails because you are giving wrong initial values
>>
>> Best Regards
>>
>> Lorenzo
>> On Mar 18, 2008, at 8:00 PM, Kevin Lynch wrote:
>>
>>> Bernhard Bittner wrote:
>>>> Hi Lorenzo,
>>>> inserting
>>>> gErrorIgnoreLevel = 1001;
>>>> right at the beginning of the function where i call mimuit does
>>>> not change anything, I still get the same output.
>>>
>>> You need to set a bigger number to really shut up Minuit2 :-)
>>>
>>> If you want it REALLY quiet, try
>>>
>>> gErrorIgnoreLevel = kFatal;
>>>
>>> Take a look at the logic in the root source where it uses the
>>> value of gErrorIgnoreLevel: base/inc/TError.cxx and base/inc/
>>> TError.h
>>>
>>> This logic is the same in both 5.14 and 5.18, so I would imagine
>>> the above approach should work in either case.
>>>
>>> But you might really want to explore _why_ your minimizations are
>>> failing in the first place, rather than just silencing them ...
>>> they're telling you something is very wrong. I just spent a week
>>> doing exactly that, and it turned out my problems were much bigger
>>> than Minuit2 making lots of noise....
>>>
>>>> But I just found out, that since my classes are inside the ATLAS
>>>> ATHENA framework and this framework uses ROOT 5.14 I guess i will
>>>> have only the old version of ROOT to work with. Is there any
>>>> other way in 5.14 to turn this messages of?
>>>> Thanks,
>>>> Bernhard
>>>
>>>
>>> --
>>> -------------------------------------------------------------------------------
>>> Kevin Lynch voice: (617) 353-6025
>>> Physics Department Fax: (617) 353-9393
>>> Boston University office: PRB-361
>>> 590 Commonwealth Ave. e-mail: krlynch_at_bu.edu
>>> Boston, MA 02215 USA http://budoe.bu.edu/~krlynch
>>> -------------------------------------------------------------------------------
>>>
>>
>
>
>
> --
> Bernhard Bittner
> mailto:bernhard.bittner_at_cern.ch
Received on Wed Mar 19 2008 - 09:50:39 CET

This archive was generated by hypermail 2.2.0 : Wed Mar 19 2008 - 17:50:01 CET