Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 7490)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 7491)
@@ -38,4 +38,8 @@
    * mimage/MHHillas.cc:
      - set minimum of fDelte to 0 instead of fDistC
+
+   * msignal/MExtractTimeAndChargeSpline.h:
+     - replaced the casts in SetRiseTimeHiGain and StFallTimeHiGain by
+       TMath::NInt
 
 
Index: /trunk/MagicSoft/Mars/Makefile
===================================================================
--- /trunk/MagicSoft/Mars/Makefile	(revision 7490)
+++ /trunk/MagicSoft/Mars/Makefile	(revision 7491)
@@ -73,4 +73,5 @@
 #LIBRARIES = $(SUBDIRS:%=lib/lib%.a)
 LIBRARIES = $(SUBDIRS:=.a)
+CONDOR    = $(SUBDIRS:=.condor)
 MRPROPERS = $(SUBDIRS:=.mrproper)
 CLEANERS  = $(SUBDIRS:=.clean)
@@ -124,4 +125,6 @@
 endif
 
+condor:	$(CONDOR)
+
 dox: $(SOLIB)
 	@echo
Index: /trunk/MagicSoft/Mars/Makefile.rules
===================================================================
--- /trunk/MagicSoft/Mars/Makefile.rules	(revision 7490)
+++ /trunk/MagicSoft/Mars/Makefile.rules	(revision 7491)
@@ -4,4 +4,8 @@
 	@echo " Doing Mr.Proper in $(@:.mrproper=)"
 	(cd $(@:.mrproper=); ($(MAKE) -f Makefile mrproper > /dev/null); cd ..;) 
+
+$(CONDOR):
+	@echo " Starting make in $(@:.condor=) via condor"
+	(cd $(@:.condor=); (condor_run $(MAKE) &); cd ..;)
 
 $(CLEANERS):
Index: /trunk/MagicSoft/Mars/NEWS
===================================================================
--- /trunk/MagicSoft/Mars/NEWS	(revision 7490)
+++ /trunk/MagicSoft/Mars/NEWS	(revision 7491)
@@ -36,4 +36,7 @@
      correctly assigned in the raw data assignement table. A fix to correct 
      the assignment tabel have been implemented.
+
+   - general: MAstroCatalog now allows rotating of the sky-grid and stars
+     by 90, 180 and 270 deg.
 
    - StatusDisplay: Fixed the algorithm to calculate the size ratio
Index: /trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc
===================================================================
--- /trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc	(revision 7490)
+++ /trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc	(revision 7491)
@@ -815,4 +815,6 @@
           TestBit(kMirrorY) ? -w(1) : w(1));
 
+    v=v.Rotate(fAngle*TMath::DegToRad());
+
     if (w(2)<0)
         return kERROR;
@@ -1147,7 +1149,18 @@
     const Bool_t white  = o.Contains("white",   TString::kIgnoreCase);
     const Bool_t yellow = o.Contains("yellow",  TString::kIgnoreCase) && !white;
+    const Bool_t rot180 = o.Contains("180",     TString::kIgnoreCase);
+    const Bool_t rot270 = o.Contains("270",     TString::kIgnoreCase);
+    const Bool_t rot90  = o.Contains("90",      TString::kIgnoreCase);
 
     if (white)
         SetMarkerColor(kWhite);
+
+    fAngle = 0;
+    if (rot90)
+        fAngle=90;
+    if (rot180)
+        fAngle=180;
+    if (rot270)
+        fAngle=270;
 
     // X is vice versa, because ra is defined anti-clockwise
Index: /trunk/MagicSoft/Mars/mastro/MAstroCatalog.h
===================================================================
--- /trunk/MagicSoft/Mars/mastro/MAstroCatalog.h	(revision 7490)
+++ /trunk/MagicSoft/Mars/mastro/MAstroCatalog.h	(revision 7491)
@@ -37,4 +37,5 @@
 
     TGToolTip *fToolTip;    //! The tooltip currently displayed
+    Double_t   fAngle;      //! Rotation angle of map
 
     MAttLine fAttLineSky;   // Line Style and color for sky coordinates
@@ -169,4 +170,7 @@
     void SetMarkerAttributes();   //*MENU*
 
+    TAttLine &GetAttLineSky() { return fAttLineSky; }
+    TAttLine &GetAttLineLocal() { return fAttLineLocal; }
+
     virtual void EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected=0);
 
Index: /trunk/MagicSoft/Mars/mimage/MHHillas.cc
===================================================================
--- /trunk/MagicSoft/Mars/mimage/MHHillas.cc	(revision 7490)
+++ /trunk/MagicSoft/Mars/mimage/MHHillas.cc	(revision 7491)
@@ -91,5 +91,5 @@
     fDelta->SetYTitle("Counts");
 
-    fDistC->SetMinimum(0);
+    fDelta->SetMinimum(0);
 
     MBinning bins;
Index: /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.h
===================================================================
--- /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.h	(revision 7490)
+++ /trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.h	(revision 7491)
@@ -78,5 +78,5 @@
       fRiseTimeLoGain    = f*fLoGainStretch;
       fSqrtHiGainSamples = TMath::Sqrt(fNumHiGainSamples);
-      fWindowSizeHiGain  = (Int_t)(fRiseTimeHiGain + fFallTimeHiGain);
+      fWindowSizeHiGain  = TMath::Nint(fRiseTimeHiGain + fFallTimeHiGain);
     }
   void SetFallTimeHiGain( const Float_t f=fgFallTimeHiGain    )
@@ -87,5 +87,5 @@
       fNumLoGainSamples  = fLoGainLast ? fRiseTimeLoGain + fFallTimeLoGain : 0.;
       fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples);
-      fWindowSizeLoGain  = (Int_t)(fRiseTimeLoGain + fFallTimeLoGain);
+      fWindowSizeLoGain  = TMath::Nint(fRiseTimeLoGain + fFallTimeLoGain);
     }
 
