|
[Rivet] CDF_2008_S778... --- YODA Profile1D low stats errorHolger Schulz holger.schulz at durham.ac.ukSat Jul 23 18:54:17 BST 2016
Whoops, never mind, bin.effNumEntries() does that. This is my work around for this analysis: double y = 0; double ey = 0; if (ph_i->bin(1).effNumEntries() > 1) { y = 1.0 - ph_i->bin(1).mean(); ey= ph_i->bin(1).stdErr(); } Not sure though, what values to set y and ey to in case of low stats. Holger On 23/07/16 18:42, Holger Schulz wrote: > > Hi, > > the CDF_2008 b-jet shapes analysis (unvalidated) requires some > protection for YODA::Profile*Bin*1D.stdErr() because of this: > > terminate called after throwing an instance of 'YODA::LowStatsError' > what(): Requested variance of a distribution with only one > effective entry > > I don't see a function that tells me the number of effective entries > for Profile*Bin*1D. > > Any thoughts on how to deal with that? > > One would either need a protection on analysis level or change > the behaviour of stdErr such that it doesn't throw an exception. > > > Holger > > > > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > https://www.hepforge.org/lists/listinfo/rivet -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20160723/01bf789e/attachment.html>
More information about the Rivet mailing list |