[Rivet] aidamerge

Hannes Jung hannes.jung at cern.ch
Sat Aug 20 13:08:25 BST 2011


Hi Daniel

super, thanks very much, this worked
Have a nice weekend
cheers
hannes

On 20.08.2011, at 13:53, Daniel Weyh wrote:

Sry, I didn't know where you got your copy from.
It is uploaded to SVN (r3300).
Please check this out or look at <http://projects.hepforge.org/rivet/trac/browser/contrib/aidamerge> http://projects.hepforge.org/rivet/trac/browser/contrib/aidamerge

Hope it helps,
Daniel


Am 20.08.2011 um 13:35 schrieb Hannes Jung <hannes.jung at cern.ch<mailto:hannes.jung at cern.ch>>:

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: <mailto:Hannes.Jung at cern.ch> Hannes.Jung at cern.ch<mailto:Hannes.Jung at cern.ch>
mobile :+49 40 8998 93741
<http://www.desy.de/~jung>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
***********************************************************************






***********************************************************************
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/12056b87/attachment.html>


More information about the Rivet mailing list