<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<p dir="ltr">Hi Andy, </p>
<p dir="ltr">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?
</p>
<p dir="ltr">Sent from my Cyanogen phone</p>
<div class="quote">On Apr 16, 2016 11:51 AM, Andy Buckley <a.g.buckley@gmail.com> wrote:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">On 15/04/16 09:33, Raghav Kunnawalkam Elayavalli wrote: <br>
> Hi Rivet experts <br>
> <br>
> I would like to get the full run-averaged value of some of my <br>
> variables (which i store in !Dhistograms) and display that with <br>
> another histograms. I should be able to just fill in my histograms <br>
> during the run and in the finalize method, ask for the mean and fill <br>
> that into my average histogram. But i wasnt able to find any mean <br>
> function analogous to TH1::GetMean() in yoda <br>
> https://yoda.hepforge.org/doxy/HistoBin1D_8h_source.html . Probably <br>
> im looking in the wrong place and there are easier ways to do that? <br>
<br>
Hi Raghav, <br>
<br>
Can you explain in more detail what you want to do? You want to average <br>
histograms over several independent runs? That would usually happen <br>
*outside* Rivet -- the finalize() method is called at the end of each <br>
independent run, not as a way of merging those runs together. <br>
<br>
The yodamerge script might be what you are looking for, at least as an <br>
example. <br>
<br>
Andy <br>
<br>
-- <br>
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow <br>
Particle Physics Expt Group, University of Glasgow <br>
</p>
</blockquote>
</div>
</body>
</html>