Re: [ROOT] has anyone implemented a stripchart?

From: Martin L. Purschke (purschke@bnl.gov)
Date: Wed Dec 12 2001 - 22:49:41 MET


David R. Relyea wrote:

> E158 at SLAC is considering using ROOT to implement stripcharts (just the
> GUI portion).  I'm wondering if anyone has already developed a basic (or
> detailed) stripchart that we could build from, and if so, whether or not
> it flashes when it updates, since that would drive us all crazy.  =)  I
> searched the web and ROOT's site, and it looks like only one experiment
> has attempted this, which is a bit surprising, given ROOT's flexibility.
> If there's a good reason nobody's implementing stripcharts in ROOT, I'd
> also really like to know before I get started.  Thanks.
> 
> David Relyea
> 

Hi David,

we of PHENIX have a simple-minded root class which maintains 
"strip-values". To display, you hand the object a TH1F and get it back 
filled and display it. The nice thing is that it's simplistic, and you 
segregate the strip value maintenance from the display aspect -- it is 
all you can do with a histogram, so you don't reinvent stuff.

You can have a look:

http://www.phenix.bnl.gov/software/cvsweb/cvsweb.cgi/online/monitoring/tools/toolbox/rGraph.h
http://www.phenix.bnl.gov/software/cvsweb/cvsweb.cgi/online/monitoring/tools/toolbox/rGraph.cc

Cheers,
	Martin



-- 
Martin L. Purschke               ;   purschke@bnl.gov
                                  ;   http://www.phenix.bnl.gov/~purschke
                                  ;
Brookhaven National Laboratory   ;   phone: +1-631-344-5244
Physics Department Bldg 510 C    ;   fax:   +1-631-344-3253
Upton, NY 11973-5000             ;
-----------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:11 MET