Index: /trunk/MagicSoft/Cosy/tpoint/gui.C
===================================================================
--- /trunk/MagicSoft/Cosy/tpoint/gui.C	(revision 8714)
+++ /trunk/MagicSoft/Cosy/tpoint/gui.C	(revision 8715)
@@ -487,4 +487,11 @@
         grzd.SetTitle(" \\Delta vs. Zd ");
         grmag.SetTitle(" \\Delta vs. Mag ");
+
+        gaz.SetMarkerStyle(kFullDotMedium);;
+        gzd.SetMarkerStyle(kFullDotMedium);
+        gdaz.SetMarkerStyle(kFullDotMedium);;
+        gdzd.SetMarkerStyle(kFullDotMedium);
+        gmaz.SetMarkerStyle(kFullDotMedium);;
+        gmzd.SetMarkerStyle(kFullDotMedium);
     
         TMinuit minuit(MPointing::GetNumPar());  //initialize TMinuit with a maximum of 5 params
@@ -547,5 +554,10 @@
         b2.SetParameters(par);
 
-        cout << "Sets with Residual exceeding 0.13deg:" << endl;
+        const Double_t minres = 0.05; //0.13;
+        const Double_t maxres = 0.13; //0.13;
+
+        cout << "Sets with Residual exceeding " << maxres << "deg:" << endl;
+
+        ofstream fout("residuals.txt");
 
         //
@@ -586,6 +598,11 @@
             grzd.SetPointError(i, 0, err);
 
-            if (resi>0.13)//orig.GetStarAz()>0 && orig.GetStarAz()<50 && set0.GetDZd()<-0.032 && orig.GetStarEl()<80) // 0.13
+            if (resi>maxres)//orig.GetStarAz()>0 && orig.GetStarAz()<50 && set0.GetDZd()<-0.032 && orig.GetStarEl()<80) // 0.13
                 cout << " " << orig << "  <" << resi << ">" << endl;
+            if (resi>minres)
+            {
+                fout << Form("%6.3f", resi) << ": " << (resi>maxres?"*":" ");
+                fout << " " << orig << endl;
+            }
 
             proaz.Fill(za.Az(), set0.GetResidual(&err));
@@ -603,4 +620,6 @@
             }
         }
+
+        cout << "Residuals (>0.13deg) written to residuals.txt." << endl;
     
         //
@@ -609,5 +628,5 @@
         const Stat_t ov = hres2.GetBinContent(hres2.GetNbinsX()+1);
         if (ov>0)
-            cout << "WARNING: " << ov << " overflows in residuals." << endl;
+            cout << "WARNING: " << ov << " overflows (>" << maxres << ") in residuals." << endl;
     
     
@@ -715,5 +734,5 @@
         gPad->SetGridx();
         gPad->SetGridy();
-        g=(TGraph*)gaz.DrawClone("A*");
+        g=(TGraph*)gaz.DrawClone("AP");
         g->SetBit(kCanDelete);
         g->GetHistogram()->SetXTitle("Az [\\circ]");
@@ -728,5 +747,5 @@
         gPad->SetGridx();
         gPad->SetGridy();
-        g=(TGraph*)gdaz.DrawClone("A*");
+        g=(TGraph*)gdaz.DrawClone("AP");
         g->SetBit(kCanDelete);
         g->GetHistogram()->SetXTitle("Zd [\\circ]");
@@ -743,5 +762,5 @@
         if (gmaz.GetN()>0)
         {
-            g=(TGraph*)gmaz.DrawClone("A*");
+            g=(TGraph*)gmaz.DrawClone("AP");
             g->SetBit(kCanDelete);
             g->GetHistogram()->SetXTitle("Mag");
@@ -761,5 +780,5 @@
         gPad->SetGridx();
         gPad->SetGridy();
-        g=(TGraph*)gdzd.DrawClone("A*");
+        g=(TGraph*)gdzd.DrawClone("AP");
         g->SetBit(kCanDelete);
         g->GetHistogram()->SetXTitle("Az [\\circ]");
@@ -779,5 +798,5 @@
         gPad->SetGridx();
         gPad->SetGridy();
-        g=(TGraph*)gzd.DrawClone("A*");
+        g=(TGraph*)gzd.DrawClone("AP");
         g->SetBit(kCanDelete);
         g->GetHistogram()->SetXTitle("Zd [\\circ]");
@@ -793,5 +812,5 @@
         if (gmzd.GetN()>0)
         {
-            g=(TGraph*)gmzd.DrawClone("A*");
+            g=(TGraph*)gmzd.DrawClone("AP");
             g->SetBit(kCanDelete);
             g->GetHistogram()->SetXTitle("Mag");
Index: /trunk/MagicSoft/Cosy/tpoint/starg200606.txt
===================================================================
--- /trunk/MagicSoft/Cosy/tpoint/starg200606.txt	(revision 8714)
+++ /trunk/MagicSoft/Cosy/tpoint/starg200606.txt	(revision 8715)
@@ -4,5 +4,5 @@
 
 # 10.06.2006 03:01:10.536
-23.93977 71.57613 24.11383 71.62783 19.74944 45.13083 0.01096671 0.07643101 53896.125816 44 60.801871456
+##23.93977 71.57613 24.11383 71.62783 19.74944 45.13083 0.01096671 0.07643101 53896.125816 44 60.801871456
 ##69.22305 69.28094 69.32599 69.40241 20.77028 33.97028 0.007843975 0.05557714 53896.132659 41 62.129820416
 156.6169 58.25111 156.7153 58.31012 20.18833 -0.8213889 0.01147947 0.03712898 53896.140219 34 65.047523629
Index: /trunk/MagicSoft/Cosy/tpoint/starg200611.txt
===================================================================
--- /trunk/MagicSoft/Cosy/tpoint/starg200611.txt	(revision 8714)
+++ /trunk/MagicSoft/Cosy/tpoint/starg200611.txt	(revision 8715)
@@ -320,5 +320,5 @@
 
 # 11.11.2006 01:39:28.968
--179.2553 85.40779 180.7859 85.36819 3.791389 24.105 0 0 54050.069085 16 57.827717391
+##-179.2553 85.40779 180.7859 85.36819 3.791389 24.105 0 0 54050.069085 16 57.827717391
 
 # 11.11.2006 00:31:08.814
Index: /trunk/MagicSoft/Cosy/tpoint/starg200702.txt
===================================================================
--- /trunk/MagicSoft/Cosy/tpoint/starg200702.txt	(revision 8714)
+++ /trunk/MagicSoft/Cosy/tpoint/starg200702.txt	(revision 8715)
@@ -34,5 +34,5 @@
 -103.2635 68.51063 256.6702 68.54173 7.335278 21.98222 0.01541821 0.07004006 54155.989347 57 48.025666352
 -130.373 60.86801 229.5846 60.89958 7.4525 8.289444 0.02093938 0.04994954 54155.992557 58 48.052325142
--10.4266 81.82359 349.1546 81.8217 9.314167 36.8025 -0.01625493 0.1916798 54156.014189 43 45.319839319
+##-10.4266 81.82359 349.1546 81.8217 9.314167 36.8025 -0.01625493 0.1916798 54156.014189 43 45.319839319
 
 # 24.02.2007 23:02:17.995
Index: /trunk/MagicSoft/Cosy/tpoint/starg200703.txt
===================================================================
--- /trunk/MagicSoft/Cosy/tpoint/starg200703.txt	(revision 8714)
+++ /trunk/MagicSoft/Cosy/tpoint/starg200703.txt	(revision 8715)
@@ -48,5 +48,5 @@
 -145.0508 63.03962 214.9239 63.07685 8.923333 5.945556 0.0324991 0.03378307 54167.0046 48 52.907202268
 -167.4724 51.80568 192.5275 51.84303 9.459722 -8.658611 0.03397601 0.00957816 54167.006548 46 55.230907372
-164.2115 43.52449 164.1979 43.6189 10.82694 -16.19361 0.03138028 0.02382112 54167.008939 36 63.701687146
+##164.2115 43.52449 164.1979 43.6189 10.82694 -16.19361 0.03138028 0.02382112 54167.008939 36 63.701687146
 -168.9541 16.58774 191.0852 16.62935 9.133333 -43.4325 0.046828 -0.03113037 54167.01194 51 73.722821361
 160.9484 26.41385 161.0047 26.45003 11.55 -31.85778 0.01966534 -0.02003378 54167.016088 31 78.719872401
@@ -67,5 +67,5 @@
 32.88018 30.64531 32.89387 30.68449 16.39972 61.51417 0.01648002 -0.0262825 54168.054261 55 55.488241966
 40.52492 20.15726 40.54508 20.18444 17.50722 52.30139 0.01188592 -0.004952567 54168.056318 43 59.843331758
--92.91564 70.51859 266.8498 70.61451 9.879444 26.00694 -0.002697063 0.01016691 54168.059617 34 49.976862004
+##-92.91564 70.51859 266.8498 70.61451 9.879444 26.00694 -0.002697063 0.01016691 54168.059617 34 49.976862004
 -123.8267 59.86372 236.1389 59.89165 9.685833 9.892222 0.007044195 0.02724725 54168.060961 39 51.492481096
 -116.0303 48.27727 243.9775 48.30507 8.923333 5.945556 0.01395001 -0.008373953 54168.062305 40 52.340401701
Index: /trunk/MagicSoft/Cosy/tpoint/starg200706.txt
===================================================================
--- /trunk/MagicSoft/Cosy/tpoint/starg200706.txt	(revision 8714)
+++ /trunk/MagicSoft/Cosy/tpoint/starg200706.txt	(revision 8715)
@@ -4,5 +4,5 @@
 
 # 02.06.2007 23:13:10.323
--143.0725 78.17468 217.102 78.19845 14.26111 19.1825 -0.04009367 -0.2732272 54253.967481 31 74.353823251
+##-143.0725 78.17468 217.102 78.19845 14.26111 19.1825 -0.04009367 -0.2732272 54253.967481 31 74.353823251
 104.7744 68.59282 104.7676 68.64498 16.50361 21.48972 0.1189675 -0.01986304 54253.978096 46 79.131488658
 91.7306 21.82253 91.72561 21.85488 19.84639 8.868333 0.09408124 -0.06221934 54253.984977 30 120.54891777
@@ -11,18 +11,18 @@
 134.8075 76.86075 134.8218 76.90868 16.36528 19.15306 0.08744883 -0.08017026 54254.006963 41 74.646706049
 162.8273 49.16266 162.875 49.20244 16.61917 -10.56722 0.04229123 -0.1217483 54254.013394 33 103.99680057
--160.7432 50.02553 199.1173 50.06995 15.28333 -9.383056 0.0247403 -0.08366578 54254.023363 36 75.933010397
--127.0387 32.00775 232.8785 32.04867 13.42 -11.16139 -0.009871156 -0.09732563 54254.03243 34 74.901299622
+##-160.7432 50.02553 199.1173 50.06995 15.28333 -9.383056 0.0247403 -0.08366578 54254.023363 36 75.933010397
+##-127.0387 32.00775 232.8785 32.04867 13.42 -11.16139 -0.009871156 -0.09732563 54254.03243 34 74.901299622
 -99.62634 39.10823 260.3791 39.1566 13.03639 10.95917 -0.03018289 -0.07706557 54254.037583 31 70.503137996
--163.4773 82.46318 196.685 82.43189 16.50361 21.48972 0.01084957 -0.2546636 54254.04642 38 67.662017958
+##-163.4773 82.46318 196.685 82.43189 16.50361 21.48972 0.01084957 -0.2546636 54254.04642 38 67.662017958
 -93.16962 73.90512 266.8009 73.95077 15.57806 26.71472 -0.06328661 0.01486732 54254.051259 36 69.106257089
 -57.21797 84.49259 302.3545 84.52068 16.68806 31.60306 -0.07897235 0.4841618 54254.062454 43 64.651398866
 54.38443 70.09423 54.22173 70.13722 18.61556 38.78361 0.1003963 0.2020046 54254.069932 53 68.831261815
-4.018298 66.30034 3.880837 66.35011 17.50722 52.30139 -0.04234773 0.2011728 54254.074257 41 69.393785444
--18.57638 81.51205 340.8544 81.53647 17.25083 36.80917 0.05137325 0.6552503 54254.080379 47 66.2136862
+##4.018298 66.30034 3.880837 66.35011 17.50722 52.30139 -0.04234773 0.2011728 54254.074257 41 69.393785444
+##-18.57638 81.51205 340.8544 81.53647 17.25083 36.80917 0.05137325 0.6552503 54254.080379 47 66.2136862
 112.333 87.37996 112.076 87.39637 17.77417 27.72056 0.0770777 0.2425495 54254.085068 60 72.942462193
 -74.57892 75.65139 285.3544 75.71206 16.68806 31.60306 -0.05884845 0.08666882 54254.092443 38 68.347811909
--58.17211 88.98067 301.8963 89.08253 17.96278 29.24778 0 0 54254.103137 52 67.611545369
+##-58.17211 88.98067 301.8963 89.08253 17.96278 29.24778 0 0 54254.103137 52 67.611545369
 -101.059 65.10628 258.9387 65.1548 16.50361 21.48972 -0.05791216 -0.03920462 54254.112757 43 67.934319471
 ##50.03849 82.5615 49.46401 82.62217 18.83472 33.36278 0.06944439 0.6381071 54254.117936 78 68.337277883
 -21.86293 63.75523 338.0652 63.77347 17.50722 52.30139 -0.02410645 0.1200334 54254.124779 41 73.550316635
--6.170107 79.98216 353.3393 79.9897 18.61556 38.78361 0.07473618 0.5782356 54254.131541 8 139.9899811
+##-6.170107 79.98216 353.3393 79.9897 18.61556 38.78361 0.07473618 0.5782356 54254.131541 8 139.9899811
