[Rivet] histograms in Rivet

Hannes Jung hannes.jung at cern.ch
Fri Aug 31 12:19:02 BST 2012


Thanks for clarification, Hendrik.

Now I realise, that this was already discussed in the forum before.
Cheers
Hannes

On 31.08.2012, at 01:32, Hendrik Hoeth wrote:

Hi Hannes,

I thought, if I do not call the "normalize" procedure at the end, the
histos would not be normalized to bin widths, but it seems they still
are. Is this correct ?

That's correct. This is why we call it a histogram, not a bar chart,
since histograms are invariant under changes of the binning. I know that
this concept hasn't reached the ROOT developers yet ...

And if yes, is there a easy way to obtain a histo without
normalization to bin width ?

Either fill the histogram with the bin width as additional weight (e.g.
for histograms with variable binning) or scale the histogram in
finalize() with the bin width (in case of equal bin sizes).

Cheers,

   Hendrik

--
Journalist: "Can you explain 5 sigma as 99.999something percent?"
Fabiola G.: "Sure, that's 3*10^-7."
(after the CERN Higgs seminar, 4 July 2012)

***********************************************************************
Hannes Jung
Email: Hannes.Jung at desy.de<mailto:Hannes.Jung at desy.de>
mobile :+49 40 8998 93741
http://www.desy.de/~jung
Tel: +49 (0) 40 8998 3741
Fax: +49 (0) 40 8998 3093
DESY, CMS 01B/02.213
Notkestr.85, 22603 Hamburg, FRG
***********************************************************************




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.hepforge.org/lists-archive/rivet/attachments/20120831/5e6369d9/attachment.html>


More information about the Rivet mailing list