|
[Rivet-svn] r3770 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Jun 26 14:50:24 BST 2012
Author: holsch Date: Tue Jun 26 14:50:24 2012 New Revision: 3770 Log: Add checking for 'SkipBins' entry in header part --- neccessary to prevent latex error in ATLAS_2012_I1091481 Modified: trunk/bin/compare-histos Modified: trunk/bin/compare-histos ============================================================================== --- trunk/bin/compare-histos Wed Jun 20 12:35:14 2012 (r3769) +++ trunk/bin/compare-histos Tue Jun 26 14:50:24 2012 (r3770) @@ -575,6 +575,12 @@ #print numskipped, (HISTOS[hfile][name].numBins() - HISTOS[ref][name].numBins()) assert(numskipped <= abs(HISTOS[hfile][name].numBins() - HISTOS[ref][name].numBins())) continue + # Skip every nskip bin when drawing -- helps to circumvent + # 'TeX capacity exceeded' error on some large plots + if headers.has_key("SkipBins"): + nskip = int(headers["SkipBins"]) + if ibin%nskip ==0: + continue histstr += '%s\n' % (bin.asFlat()) histstr += "# END HISTOGRAM\n" histstrs.append(histstr)
More information about the Rivet-svn mailing list |