sleep in root scripts

From: Chris Jones <jonesc_at_hep.phy.cam.ac.uk>
Date: Fri, 7 Jul 2006 12:30:35 +0100


Hi,

Apologies if this is an FAQ, but I've been unable so far to find an answer in the user guides etc.

I have a root script (attached) which is designed to monitor a root file and continuously update the histgrams in it on root canvases. To do this I have a while loop with a sleep statement

   gSystem->Sleep ( sleepTime );

which pauses for a fixed time (60 secs or whatever).

The problem is during this sleep time, ROOT is unresponsive. I cannot interactive with the canvases. I would like to be able to do this, to printout figures, quite ROOT etc. Not, outside the sleep, which the rest of the scrtipt is running, I can interactive with ROOT.

Is there a way I can do this, to get the root script to allow interaction whilst the sleep is running ?

cheers Chris

Received on Fri Jul 07 2006 - 13:30:41 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET