<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 September 2014 11:26, Andy Buckley <span dir="ltr"><<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 16/09/14 22:53, James Robinson wrote:<br>
> Dear Andy and David,<br>
><br>
> On 16 September 2014 20:58, Andy Buckley <<a href="mailto:andy.buckley@cern.ch">andy.buckley@cern.ch</a><br>
</span><span class="">> <mailto:<a href="mailto:andy.buckley@cern.ch">andy.buckley@cern.ch</a>>> wrote:<br>
><br>
> In fact, there is even an efficiency(pass, tot) function that takes 1D<br>
> histos and returns a Scatter2D with appropriate binomial statistics<br>
> treatment!<br>
><br>
> Andy<br>
><br>
><br>
> I think this is exactly what I want! The binomial error treatment is<br>
> important for this analysis as the efficiencies tend towards 1.0 in some<br>
> parts of phase space. What is the appropriate class called?<br>
<br>
</span>It's a function rather than a bound method (so call it as above):<br>
<br>
<a href="https://yoda.hepforge.org/trac/browser/include/YODA/Histo1D.h#L426" target="_blank">https://yoda.hepforge.org/trac/browser/include/YODA/Histo1D.h#L426</a><br>
<br>
We don't yet have the equivalent for 2D histos, but it should be trivial<br>
to put together from the 1D version. I'll add that to my TODO list, but<br>
maybe someone else fancies doing it? ;-)<br></blockquote><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Ah OK. That makes sense. Presumably I still need to book it somehow to get it written out? Is there another method to register existing YODA objects? Or can the bookScatter2D() function accept an existing Scatter2D as it's argument (instead of a bin descriptor)?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks,<br>James</div><br></div><div> </div></div></div></div>