TPeriodicClass.hxx

Go to the documentation of this file.
00001 #ifndef TPeriodicClass_hxx_seen
00002 #define TPeriodicClass_hxx_seen
00003 
00004 // ROOTANA includes
00005 #include "TMidasOnline.h"
00006 
00007 #include <TTimer.h>
00008 
00009 #include <stdio.h>
00010 
00011 double GetTimeSec();
00012 
00013 
00014 class TPeriodicClass : public TTimer
00015 {
00016 public:
00017   typedef void (*TimerHandler)(void);
00018 
00019   int          fPeriod_msec;
00020   TimerHandler fHandler;
00021   double       fLastTime;
00022 
00023   TPeriodicClass(int period_msec,TimerHandler handler);
00024 
00025   Bool_t Notify();
00026 
00027   ~TPeriodicClass()
00028   {
00029     TurnOff();
00030   }
00031 };
00032 
00033 
00034 #endif

Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1