|
[Rivet] aidamergeHannes Jung hannes.jung at cern.chSat Aug 20 12:35:06 BST 2011
Hi Daniel thanks a lot..... I guess this should work.... I just don't know where to change what... could you perhaps tell me a bit more what to change in which line, or perhaps upload the patched version somewhere ? Thanks very much cheers hannes On 20.08.2011, at 13:27, Daniel Weyh wrote: Dear Hannes, Dear Riveties adding several aida files works fine, only in some cases I get the error: Traceback (most recent call last): File "./aidamerge", line 65, in <module> sum_err2 += h.getBin(i).getErr()**2 OverflowError: (34, 'Numerical result out of range') I guess it comes when a histo is not properly filled (fro example when a ratio is taken). Is there a way to prevent these error message, and to continue with the program ? I added a patch to catch the exception, use float('inf') during summing up and in the write out step this 'inf' is converted to a vee..eery large float. Does this work for you? @others: Is this the way it should work - or should we somehow exclude such bins?!? Cheers, Daniel *********************************************************************** Hannes Jung Email: Hannes.Jung at cern.ch<mailto:Hannes.Jung at cern.ch> mobile :+49 40 8998 93741 http://www.desy.de/~jung Tel: +49 (0) 40 8998 3741 (DESY) Tel: +41 22 76 62602 (CERN) CERN - PH 42-2-033 CH-1211 Genève 23 Switzerland *********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.hepforge.org/lists-archive/rivet/attachments/20110820/05454364/attachment.html>
More information about the Rivet mailing list |