[Rivet] inRange trouble

Hendrik Hoeth hendrik.hoeth at cern.ch
Thu Sep 22 09:18:50 BST 2011


Thus spake Frank Siegert (frank.siegert at cern.ch):

> On 22/09/11 09:58, Hendrik Hoeth wrote:
> >   if (inRange(jetpt/GeV, 10, 15)) { ... }
> 
> Isn't that wrong and should be
>      if (inRange(jetpt/GeV, 10.0, 15.0)) { ... }
> ?
> With that you shouldn't run into the problems you describe below, right?

And of course no user has or will ever put an integer value in that
function, so we are safe.

-- 
A man without a dream in his heart already has one foot in the grave.


More information about the Rivet mailing list