[Rivet] question about run-averaged histograms

Raghav Kunnawalkam Elayavalli raghav.k.e at cern.ch
Sat Apr 16 11:06:27 BST 2016


Hi Andy,

Ahh yeah sorry I mean I wanted to find the average of a histogram at the end of the run and fill that average and RMS to another histogram. Is that doable?

Sent from my Cyanogen phone

On Apr 16, 2016 11:51 AM, Andy Buckley <a.g.buckley at gmail.com> wrote:

On 15/04/16 09:33, Raghav Kunnawalkam Elayavalli wrote:
> Hi Rivet experts
>
> I would like to get the full run-averaged value of some of my
> variables (which i store in !Dhistograms) and display that with
> another histograms. I should be able to just fill in my histograms
> during the run and in the finalize method, ask for the mean and fill
> that into my average histogram. But i wasnt able to find any mean
> function analogous to TH1::GetMean() in yoda
> https://yoda.hepforge.org/doxy/HistoBin1D_8h_source.html . Probably
> im looking in the wrong place and there are easier ways to do that?

Hi Raghav,

Can you explain in more detail what you want to do? You want to average
histograms over several independent runs? That would usually happen
*outside* Rivet -- the finalize() method is called at the end of each
independent run, not as a way of merging those runs together.

The yodamerge script might be what you are looking for, at least as an
example.

Andy

--
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
Particle Physics Expt Group, University of Glasgow
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20160416/77d9fc96/attachment.html>


More information about the Rivet mailing list