|
[Rivet] YodascaleGavin Hesketh gavin.hesketh at ucl.ac.ukThu Feb 26 15:05:07 GMT 2015
Hi Holger, that was YODA-1.3.0, it does appear to be already fixed in the dev version, eg: if norm == 0: print "ERROR: Normalisation of given range is 0; cannot rescale this to a finite value. Result will be unscaled" sf = 1.0 Apologies for the noise! Gavin On 26/02/15 09:38, Holger Schulz wrote: > On 25/02/15 12:42, Gavin Hesketh wrote: >> Hi, >> just a small patch for the yodascale script, to avoid crashes when >> there are empty histos (which I found when there are electron and muon >> channel plots in an analysis, but only one channel is filled): >> >> L117 : >> if norm > 0: >> sf = refnorm / norm >> else: >> sf = 0 >> >> or something similar. >> >> cheers, >> Gavin >> _______________________________________________ >> Rivet mailing list >> Rivet at projects.hepforge.org >> https://www.hepforge.org/lists/listinfo/rivet > Hi Gavin, > > which version of yoda have you been looking at? > > In trunk/HEAD I can't seem to find the place to implement the code you > suggest. > > Holger
More information about the Rivet mailing list |