|
[Rivet-svn] rivet: 2 new changesetsRivet Mercurial rivet at projects.hepforge.orgSun Jul 24 15:00:02 BST 2016
details: https://rivet.hepforge.org/hg/rivet/rev/fbe219357a14 branches: release-2-5-x changeset: 5340:fbe219357a14 user: Holger Schulz <holger.schulz at durham.ac.uk> date: Sun Jul 24 14:43:01 2016 +0100 description: CDF bjetshapes: Add small protection against low stats exception and mark validated. details: https://rivet.hepforge.org/hg/rivet/rev/6818574e4167 branches: release-2-5-x changeset: 5341:6818574e4167 user: Holger Schulz <holger.schulz at durham.ac.uk> date: Sun Jul 24 14:45:05 2016 +0100 description: Update Changelog diffs (truncated from 61 to 50 lines): --- a/ChangeLog Fri Jul 22 16:57:06 2016 +0100 +++ b/ChangeLog Sun Jul 24 14:45:05 2016 +0100 @@ -1,3 +1,10 @@ +2016-07-24 Holger Schulz <holger.schulz at cern.ch> + + * Mark CDF_2008_S77... b jet shapes validated + + * Added protection against low stats yoda exception + in finalize for that analysis + 2016-07-22 Andy Buckley <andy.buckley at cern.ch> * Fix newly introduced bug in make-plots which led to data point --- a/data/anainfo/CDF_2008_S7782535.info Fri Jul 22 16:57:06 2016 +0100 +++ b/data/anainfo/CDF_2008_S7782535.info Sun Jul 24 14:45:05 2016 +0100 @@ -4,7 +4,7 @@ Experiment: CDF Collider: Tevatron Run 2 SpiresID: 7782535 -Status: UNVALIDATED +Status: VALIDATED Authors: - Alison Lister <alister at fnal.gov> - Emily Nurse <nurse at hep.ucl.ac.uk> --- a/src/Analyses/CDF_2008_S7782535.cc Fri Jul 22 16:57:06 2016 +0100 +++ b/src/Analyses/CDF_2008_S7782535.cc Sun Jul 24 14:45:05 2016 +0100 @@ -97,8 +97,12 @@ Profile1DPtr ph_i = _h_Psi_pT[i]; const double ex = 0.5*(_ptedges[i+1] - _ptedges[i]); const double x = _ptedges[i] + ex; - const double y = 1.0 - ph_i->bin(1).mean(); - const double ey = ph_i->bin(1).stdErr(); + double y = 0; // This is to protect against exceptions + double ey = 0; // thrown by YODA when calling mean and + if (ph_i->bin(1).effNumEntries() > 1) { // stdErr at + y = 1.0 - ph_i->bin(1).mean(); // low stats + ey= ph_i->bin(1).stdErr(); + } _h_OneMinusPsi_vs_pT->addPoint(x, y, ex, ey); } --- a/src/Analyses/Makefile.am Fri Jul 22 16:57:06 2016 +0100 +++ b/src/Analyses/Makefile.am Sun Jul 24 14:45:05 2016 +0100 @@ -280,6 +280,7 @@ CDF_2007_S7057202.cc \ CDF_2008_S7540469.cc \ CDF_2008_S7541902.cc \ + CDF_2008_S7782535.cc \ CDF_2008_S7828950.cc \ CDF_2008_S8093652.cc \
More information about the Rivet-svn mailing list |