[Rivet] ATLAS inclusive isolated diphoton analysis in Rivet

Hendrik Hoeth hendrik.hoeth at cern.ch
Wed Sep 28 14:47:12 BST 2011


Hi Giovanni,

I'm looking at the ATLAS_2011_S9120807 Rivet analysis for which you are
listed as author, and I see these lines of code:

  if( nDens%2 == 0 )
    median = (ptDensities[b][nDens/2]+ptDensities[b][(nDens-2)/2])/2;
  else
    median = ptDensities[b][(nDens-1)/2];

I'm not familiar with that analysis, but I guess you are trying to
calculate a median here. Shouldn't it then be (nDens+2)/2 instead of
(nDens-2)/2 in the first line?

And do you actually need/use _Njets and Njets anywhere or can I delete
them?

Cheers,

    Hendrik

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


More information about the Rivet mailing list