[ROOT] Update a projection

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Fri May 09 2003 - 15:55:26 MEST


Hi all,

I have some kind of online display in which I can display histograms
(TH?D drawn in a TRootEmbeddedCanvas). When our calculation is filling
the histogram I update the histogram continously (let's say each 5sec)
by calling pad->Modified() pad->Update() for the corresponding pad. This
works fine for the histograms we fill ourself, but how can I provide
online update of Projections of 2D histograms? I don't want to rebuild
the object every time. In principal it would be enough if I could update
the contants of a projection from the contants of its 'parent'
histogram. Any idea how I can do this (without Copy&Paste the code from
TH2::Project to my code)?

Thanks in advance,
Thomas.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET