|
[Rivet] question about run-averaged histogramsAndy Buckley andy.buckley at cern.chSat Apr 16 11:11:01 BST 2016
Sure, h.xMean() and h.xRMS() (or h.xStdDev(), depending on what measure of spread you actually want). The resulting histogram will have only a single entry across the run, so maybe you actually want to use a Scatter1D or similar? Depends on what you want to do with it. Andy On 16/04/16 11:06, Raghav Kunnawalkam Elayavalli wrote: > 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 > -- Dr Andy Buckley, Lecturer / Royal Society University Research Fellow Particle Physics Expt Group, University of Glasgow
More information about the Rivet mailing list |