Index: trunk/MagicSoft/Mars/.rootrc
===================================================================
--- trunk/MagicSoft/Mars/.rootrc	(revision 599)
+++ trunk/MagicSoft/Mars/.rootrc	(revision 599)
@@ -0,0 +1,40 @@
+#############################################################################
+#                                                                           #
+# This is the path where root seraches for macros                           #
+# to execute (eg. .x merpp.C)                                               #
+#                                                                           #
+#############################################################################
+
+Unix.*.Root.MacroPath:   .:./macros:$(MARSSYS)/macros
+
+#############################################################################
+#                                                                           #
+# This is the path where the dynamic loader (eg. gSystem->Load("mars.so")   #
+# is searching for the shared objects                                       #
+#                                                                           #
+#############################################################################
+
+Unix.*.Root.DynamicPath: .:./lib:$(MARSSYS)/lib
+
+#############################################################################
+#                                                                           #
+# This is the name of the logon macro (executed at root startup) and the    #
+# logoff macro (executed when quiting root)                                 #
+#                                                                           #
+#############################################################################
+
+Rint.Logon:              rootlogon.C
+Rint.Logoff:             rootlogoff.C
+
+#############################################################################
+#                                                                           #
+# This is used if you want to use the root documentation facility to        #
+# create the documentation of the code out of the code                      #
+#                                                                           #
+#############################################################################
+
+Root.Html.Author:        // --- Author(s):
+Root.Html.Copyright:     // --- Copyright
+Root.Html.Modified:      // --- Modified:
+Root.Html.Root:          http://root.cern.ch/root/htmldoc/
+Root.Html.HomePage:      http://magic.uni-sw.gwdg.de/mars/
Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 598)
+++ trunk/MagicSoft/Mars/Changelog	(revision 599)
@@ -1,4 +1,12 @@
                                                                   -*-*- END -*-*-
  
+ 2000/02/19: Thomas Bretz
+
+   *  .rootrc: added
+
+   * MEvtLoop.[h,cc]: split eventloop in its three parts, this should
+     be used for debugging only.
+
+
  2000/02/06: Harald Kornmayer
 
Index: trunk/MagicSoft/Mars/Makefile
===================================================================
--- trunk/MagicSoft/Mars/Makefile	(revision 598)
+++ trunk/MagicSoft/Mars/Makefile	(revision 599)
@@ -64,5 +64,5 @@
 
 $(LIBRARIES):
-	@echo " ++++++++++++++++++++++++++++++ "  
+	@echo " "  
 	@echo " Creating lib$@:"
 	(cd $*; make; cd ..; mv $*/$@ lib/lib$@) 
Index: trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MEvtLoop.cc	(revision 598)
+++ trunk/MagicSoft/Mars/mbase/MEvtLoop.cc	(revision 599)
@@ -46,7 +46,10 @@
 }
 
-void MEvtLoop::Eventloop(Int_t maxcnt, const char *ftasks)
+Bool_t MEvtLoop::PreProcess(const char *tlist)
 {
-    // See class description above.
+    //
+    // The proprocessing part of the eventloop. Be careful, this is
+    // for developers use only!
+    //
 
     //
@@ -56,5 +59,5 @@
     {
         cout << "MEvtLoop::Eventloop - Error: Parlist not initialized." << endl;
-        return;
+        return kFALSE;
     }
 
@@ -63,9 +66,9 @@
     //  the default name is "MTaskList"
     //
-    MTaskList *tasks = (MTaskList*)fParlist->FindObject(ftasks);
-    if (!tasks)
+    fTaskList = (MTaskList*)fParlist->FindObject(tlist);
+    if (!fTaskList)
     {
-        cout << "MEvtLoop::Eventloop - Error: Cannot find tasklist '" << ftasks << "' in parameter list." << endl;
-        return;
+        cout << "MEvtLoop::Eventloop - Error: Cannot find tasklist '" << tlist << "' in parameter list." << endl;
+        return kFALSE;
     }
 
@@ -75,9 +78,19 @@
     //  the parameter list
     //
-    if (!tasks->PreProcess(fParlist))
+    if (!fTaskList->PreProcess(fParlist))
     {
         cout << "Error detected while PreProcessing" << endl;
-        return;
+        return kFALSE;
     }
+
+    return kTRUE;
+}
+
+void MEvtLoop::Process(Int_t maxcnt) const
+{
+    //
+    // The processing part of the eventloop. Be careful, this is
+    // for developers use only!
+    //
 
     //
@@ -108,7 +121,7 @@
     //
     if (maxcnt<0)
-        while (tasks->Process() && ++dummy);
+        while (fTaskList->Process() && ++dummy);
     else
-        while (tasks->Process() && dummy--);
+        while (fTaskList->Process() && dummy--);
 
     //
@@ -127,8 +140,29 @@
         << endl << endl;
 
+}
+
+void MEvtLoop::PostProcess() const
+{
+    //
+    // The postprocessing part of the eventloop. Be careful, this is
+    // for developers use only!
+    //
+
     //
     //  execute the post process of all tasks
     //
-    tasks->PostProcess();
+    fTaskList->PostProcess();
 }
 
+void MEvtLoop::Eventloop(Int_t maxcnt, const char *tlist)
+{
+    // See class description above.
+
+    if (!PreProcess(tlist))
+        return;
+
+    Process(maxcnt);
+
+    PostProcess();
+}
+
Index: trunk/MagicSoft/Mars/mbase/MEvtLoop.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MEvtLoop.h	(revision 598)
+++ trunk/MagicSoft/Mars/mbase/MEvtLoop.h	(revision 599)
@@ -15,4 +15,5 @@
 
 class MParList;
+class MTaskList;
 
 class MEvtLoop
@@ -20,4 +21,5 @@
 private:
     MParList  *fParlist;
+    MTaskList *fTaskList;
 
 public:
@@ -27,4 +29,8 @@
     void SetParList(MParList *p);
 
+    Bool_t PreProcess(const char *tlist="MTaskList");
+    void   Process(Int_t maxcnt) const;
+    void   PostProcess() const;
+
     void Eventloop(Int_t maxcnt=-1, const char *tlist="MTaskList");
 
Index: trunk/MagicSoft/Mars/mgui/Makefile
===================================================================
--- trunk/MagicSoft/Mars/mgui/Makefile	(revision 598)
+++ trunk/MagicSoft/Mars/mgui/Makefile	(revision 599)
@@ -59,6 +59,5 @@
            MHexagon.cc \
 	   MCamGeom.cc \
-	   MCamNeighbor.cc \
-	   MCamDisplay.cc 
+	   MCamNeighbor.cc 
 
 
