Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 2407)
+++ trunk/MagicSoft/Mars/Changelog	(revision 2408)
@@ -32,4 +32,10 @@
      - removed some pieces of code which preserved the contents
        of a matrix when resizing. This is done by root now.
+
+   * mfilter/MFRealTimePeriod.[h,cc]:
+     - added
+
+   * mfilter/Makefile, mfilter/FilterLinkDef.h:
+     - added MFRealTimePeriod
 
 
Index: trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h	(revision 2407)
+++ trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h	(revision 2408)
@@ -26,5 +26,5 @@
     TArrayS fPixelsIdx;  // Pixel Indices for blind pixels, which are entered by the user.
 
-    Byte_t fFlags;      // flag for the method which is used
+    Byte_t fFlags;       // flag for the method which is used
 
     enum
Index: trunk/MagicSoft/Mars/manalysis/MCT1FindSupercuts.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MCT1FindSupercuts.cc	(revision 2407)
+++ trunk/MagicSoft/Mars/manalysis/MCT1FindSupercuts.cc	(revision 2408)
@@ -16,6 +16,6 @@
 !
 !
-!   Author(s): Thomas Bretz    6/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
-!              Wolfgang Wittek 7/2003 <mailto:wittek@mppmu.mpg.de>
+!   Author(s): Thomas Bretz, 6/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
+!   Author(s): Wolfgang Wittek, 7/2003 <mailto:wittek@mppmu.mpg.de>
 !
 !   Copyright: MAGIC Software Development, 2000-2003
Index: trunk/MagicSoft/Mars/manalysis/MCerPhotAnal.h
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MCerPhotAnal.h	(revision 2407)
+++ trunk/MagicSoft/Mars/manalysis/MCerPhotAnal.h	(revision 2408)
@@ -25,5 +25,5 @@
     MRawEvtData   *fRawEvt;     // raw event data (time slices)
     MCerPhotEvt   *fCerPhotEvt; // Cerenkov Photon Event used for calculation
-    MRawRunHeader *fRunHeader;  //  RunHeader information
+    MRawRunHeader *fRunHeader;  // RunHeader information
 
     Int_t PreProcess(MParList *pList);
Index: trunk/MagicSoft/Mars/mars.cc
===================================================================
--- trunk/MagicSoft/Mars/mars.cc	(revision 2407)
+++ trunk/MagicSoft/Mars/mars.cc	(revision 2408)
@@ -36,11 +36,6 @@
 }
 
-int main(int argc, char **argv)
+void StartUpMessage()
 {
-#ifdef HAVE_XPM
-    MLogo logo;
-    logo.Popup();
-#endif
-
     gLog << all << endl;
 
@@ -54,4 +49,14 @@
     gLog << "==================================================" << endl;
     gLog << endl;
+}
+
+int main(int argc, char **argv)
+{
+#ifdef HAVE_XPM
+    MLogo logo;
+    logo.Popup();
+#endif
+
+    StartUpMessage();
 
     //
Index: trunk/MagicSoft/Mars/mfilter/FilterLinkDef.h
===================================================================
--- trunk/MagicSoft/Mars/mfilter/FilterLinkDef.h	(revision 2407)
+++ trunk/MagicSoft/Mars/mfilter/FilterLinkDef.h	(revision 2408)
@@ -16,4 +16,5 @@
 #pragma link C++ class MFDataChain+;
 #pragma link C++ class MFDataMember+;
+#pragma link C++ class MFRealTimePeriod+;
 
 #pragma link C++ class MFCT1SelBasic+;
Index: trunk/MagicSoft/Mars/mfilter/MFRealTimePeriod.cc
===================================================================
--- trunk/MagicSoft/Mars/mfilter/MFRealTimePeriod.cc	(revision 2408)
+++ trunk/MagicSoft/Mars/mfilter/MFRealTimePeriod.cc	(revision 2408)
@@ -0,0 +1,59 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz, 10/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
+!
+!   Copyright: MAGIC Software Development, 2000-2003
+!
+!
+\* ======================================================================== */
+
+/////////////////////////////////////////////////////////////////////////////
+//
+//  MFRealTimePeriod
+//
+//  This filter allows the execution of tasks in real time intervals. If
+//  a timeout (given in milliseconds in the constructor) was exceeded
+//  the return value for IsExpression is set to kTRUE and the timer is
+//  reset.
+//
+/////////////////////////////////////////////////////////////////////////////
+#include "MFRealTimePeriod.h"
+
+#include <TTime.h>
+#include <TSystem.h>
+
+ClassImp(MFRealTimePeriod);
+
+// --------------------------------------------------------------------------
+//
+// Check, whether the current time is greater than the stored time plus
+// the timeout time. If this is the case the return value of
+// IsExpressionTrue is set to kTRUE and the stored time is reset to the
+// current time. To get the current time gSystem->Now() is used.
+//
+Int_t MFRealTimePeriod::Process()
+{
+    const ULong_t t = (ULong_t)gSystem->Now();
+
+    fResult = t>fTime+fMilliSec;
+
+    if (fResult)
+        fTime=t;
+
+    return kTRUE;
+}
Index: trunk/MagicSoft/Mars/mfilter/MFRealTimePeriod.h
===================================================================
--- trunk/MagicSoft/Mars/mfilter/MFRealTimePeriod.h	(revision 2408)
+++ trunk/MagicSoft/Mars/mfilter/MFRealTimePeriod.h	(revision 2408)
@@ -0,0 +1,29 @@
+#ifndef MARS_MFRealTimePeriod
+#define MARS_MFRealTimePeriod
+
+#ifndef MARS_MFilter
+#include "MFilter.h"
+#endif
+
+class MFRealTimePeriod : public MFilter
+{
+private:
+    ULong_t fTime;     //!
+    Bool_t  fResult;   //!
+
+    ULong_t fMilliSec;
+
+public:
+    MFRealTimePeriod(UInt_t millis=1000) : fMilliSec(millis)
+    {
+        fName  = "MFRealTimePeriod";
+        fTitle = "Filter allowing execution of a task only after a given real time interval";
+    }
+
+    Int_t Process();
+    Bool_t IsExpressionTrue() const { return fResult; }
+
+    ClassDef(MFRealTimePeriod, 0) //Filter allowing execution of a task only after a given real time interval
+};
+
+#endif
Index: trunk/MagicSoft/Mars/mfilter/Makefile
===================================================================
--- trunk/MagicSoft/Mars/mfilter/Makefile	(revision 2407)
+++ trunk/MagicSoft/Mars/mfilter/Makefile	(revision 2408)
@@ -43,4 +43,5 @@
 	   MFParticleId.cc \
 	   MFAlpha.cc \
+           MFRealTimePeriod.cc \
 	   MFCT1SelBasic.cc \
 	   MFCT1SelStandard.cc \
