[Rivet] Poll: deltaEta -- signed or unsigned?

Ben Waugh waugh at hep.ucl.ac.uk
Tue Apr 12 20:26:25 BST 2011


On 12/04/11 17:46, Andy Buckley wrote:
> On 12/04/11 17:31, Hendrik Hoeth wrote:
>> Hi guys,
>>
>> I want to put deltaEta(somevector, somevector) functions in the
>> vector classes. Would you expect this function to return a signed
>> value or the abs()?
>
> I'm sitting beside Hendrik at the moment, but may as well publicly
> register my opinion that an unsigned delta is safer and more consistent
> with our deltaPhi functions. If someone wants a signed delta(eta), I
> don't think it's too much to ask that they say vec_ref.eta() -
> vec_i.eta(). My $0.02 :-)

I agree. I'm not even entirely sure I would expect a vector library to 
have these "delta" functions, but if it does I would expect unsigned values.

Cheers,
Ben

>
> Andy
>

-- 
Dr Ben Waugh                                   Tel. +44 (0)20 7679 7223
Dept of Physics and Astronomy                  Internal: 37223
University College London
London WC1E 6BT


More information about the Rivet mailing list