<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Dear Andy and David,</div><div class="gmail_extra"><br><div class="gmail_quote">On 16 September 2014 20:58, 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">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>
<span class="HOEnZb"><font color="#888888"><br>
Andy<br></font></span></blockquote><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I think this is exactly what I want! The binomial error treatment is important for this analysis as the efficiencies tend towards 1.0 in some parts of phase space. What is the appropriate class called?</div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
On 16/09/14 19:00, David Bjergaard wrote:<br>
> Hi James,<br>
><br>
> Why can't you hold two histos:<br>
> hist_pass and hist_fail?<br>
><br>
> Then the 1D (operator+= ) methods for adding and dividing would work (under the<br>
> assumptions imposed by dividing). Then you can do:<br>
> hist_denom+=hist_pass;<br>
> hist_denom+=hist_fail;<br>
> divide(hist_pass,hist_denom);<br>
><br>
> I (personally) keep a std::map<std::string,Histo1DPtr> container indexed<br>
> by string for bookkeeping.<br>
><br>
> Dave<br></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">This is also fine, but I was trying to minimise the number of extraneous histograms that the code booked (that I would then need to remove).</div></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">As far as Andy's other questions/suggestions go. I'm using the ATLAS packaged version of Rivet. I'm not sure which Rivet version this is, but the athena version is 19.0.2.1. Perhaps you'd recommend a newer release, Andy?</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">Thank you both for your helpful answers,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">James</div></div></div></div>