[Rivet] Rivet 1.5.0 now?

Andy Buckley andy.buckley at ed.ac.uk
Wed Mar 9 18:30:46 GMT 2011


I see Frank has made the change. I have to go for dinner and a concert
now, but I think the coast is now clear for a release tonight... right?
If I hear no opposition, I'll tag 'n' tar later :)

Thanks again,
Andy


On 09/03/11 12:57, Ben Waugh wrote:
> On 09/03/11 11:13, Frank Siegert wrote:
>> Hi Ben,
>>
>>> Not that you asked me, but...
>>
>> Heh, I did ask everybody on the list!
>>
>>> Strictly speaking it is only the denominator that needs to be checked
>>> anyway, but I agree it makes more sense only to avoid dividing by zero,
>>> not to avoid negative values.
>>
>> True, but in case the numerator is zero then I can ignore the division
>> anyway and return the default 0, so it's at least not wrong.
> 
> Indeed it makes no difference to the results, and any efficiency
> difference is likely to be negligible, so it is just a matter of what
> makes the code clearer.
> 
>>> If you do change this, you will probably have to change some other
>>> methods to keep the behaviour consistent. For example, sumBinHeights
>>> also checks for a positive sum of weights.
>>
>> Well, in this particular case I was not worried about negative sumw,
>> but about negative sumyw, i.e. the underlying distribution being
>> negative. If the sum of weights becomes negative one has to worry
>> about more things, I agree, but I don't think there's actually a use
>> case for that, is there? Certainly not something I'd like to change so
>> close to the release.
> 
> True. I think I looked too quickly and thought there was a check on
> sumyw. I don't have any use case in mind for negative weights. It looks
> like equivalentBinEntries is missing a check for division by zero, but
> this will only be encountered if the sum of weights in all bins is zero.
> So in practice only for an empty histogram, although in principle
> someone could put in balancing positive and negative weights.
> 
> So for a quick pre-release change I think your proposal makes sense.
> 
> Cheers,
> Ben
> 
>>
>> Cheers,
>> Frank
> 


-- 
Dr Andy Buckley
SUPA Advanced Research Fellow
Particle Physics Experiment Group, University of Edinburgh

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the Rivet mailing list