Index: trunk/MagicSoft/Mars/mastro/MAstroCamera.cc
===================================================================
--- trunk/MagicSoft/Mars/mastro/MAstroCamera.cc	(revision 3499)
+++ trunk/MagicSoft/Mars/mastro/MAstroCamera.cc	(revision 3500)
@@ -129,5 +129,5 @@
         */
 
-    v.Set(spot(1), -spot(0));
+    v.Set(spot(0), spot(1));
 
     const Float_t max = fGeom->GetMaxRadius()*0.70;
@@ -235,4 +235,5 @@
     rot.RotateZ(-zdaz0.Phi());
     rot.RotateY(-zdaz0.Theta());
+    rot.RotateZ(-TMath::Pi()/2); // align coordinate system
 
     DrawNet(rot);
@@ -267,5 +268,5 @@
             if (hasdot)
             {
-                TMarker *m=new TMarker(spot(1), -spot(0), 1);
+                TMarker *m=new TMarker(spot(0), spot(1), 1);
                 m->SetBit(kCannotPick);
                 m->SetBit(kCanDelete);
@@ -275,8 +276,8 @@
             }
             if (h)
-                h->Fill(spot(1), -spot(0), pow(10, -mag/2.5));
+                h->Fill(spot(0), spot(1), pow(10, -mag/2.5));
 
             if (usecam)
-                camera->Fill(spot(1), -spot(0), pow(10, -mag/2.5));
+                camera->Fill(spot(0), spot(1), pow(10, -mag/2.5));
 
             num++;
@@ -286,5 +287,5 @@
         mean *= 1./num;
 
-        DrawStar(mean(1), -mean(0), *radec, !hasmean, Form("x=%.1fmm y=%.1fmm", mean(1), -mean(0)));
+        DrawStar(mean(0), mean(1), *radec, !hasmean, Form("x=%.1fmm y=%.1fmm", mean(0), mean(1)));
     }
 }
