|
[Rivet] flat2aida and small numbersAndy Buckley andy.buckley at durham.ac.ukWed Nov 12 15:01:23 GMT 2008
Hendrik Hoeth wrote: > Hi, > > in flat2aida we are writing errors and values as %f, which leads to > lines like this in the aida file: > > <measurement errorPlus="0.000003" value="0.000009" errorMinus="0.000003"/> > > Are there any technical reasons (e.g. about the rivet aida reader) not > to use %s instead, which in this example would give us: > > <measurement errorPlus="2.82e-06" value="9.46e-06" errorMinus="2.82e-06"/> Just slackness when we wrote it, I think: scientific notation would be much better. Although I think it should be %e rather than %s: the latter actually means "string", so if it works, it's just lucky that it's giving that format. %e explicitly means "represent float as exponential". Can you make the change, and also check whether aida2flat suffers from a similar formatting problem? Thanks, Andy -- Dr Andy Buckley Institute for Particle Physics Phenomenology Durham University 0191 3343798 | 0191 3732613 | www.insectnation.org
More information about the Rivet mailing list |