Index: trunk/MagicSoft/Cosy/tpoint/plot_m1.C
===================================================================
--- trunk/MagicSoft/Cosy/tpoint/plot_m1.C	(revision 9495)
+++ trunk/MagicSoft/Cosy/tpoint/plot_m1.C	(revision 9496)
@@ -58,5 +58,5 @@
     ifstream fin(fname);
 
-    cout << "Reading " << setw(23) << fname << "..." << flush;
+    cout << "Reading " << setw(23) << gSystem->BaseName(fname) << "..." << flush;
 
     while (1)
@@ -101,5 +101,5 @@
 };
 
-const Int_t counts = 29+10+18+1+13+11;
+const Int_t counts = 29+10+18+1+13+11+31;
 Description_t desc[counts] =
 {
@@ -229,20 +229,58 @@
     {"090517", "TPoints 09/05/17" ,"tpoint/m1/2009_05_17/tpoint_20090516_234825.txt"},
     {"+090517","TPoints 09/05/17", "tpoint/m1/2009_05_17/tpoint_20090517_023340.txt"},
-
     // New period
     {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_01/tpoint_20090531_215148.txt"},
     {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_01/tpoint_20090531_222549.txt"},
-
     {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_02/tpoint_20090601_223009.txt"},
-
     {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_03/tpoint_20090602_213509.txt"},
     {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_03/tpoint_20090603_011936.txt"},
-
     {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_04/tpoint_20090603_215840.txt"},
     {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_04/tpoint_20090603_230510.txt"},
-
     {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_05/tpoint_20090604_215943.txt"},
     {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_05/tpoint_20090604_232320.txt"},
-
+    {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_10/tpoint_20090609_231948.txt"},
+    {"+090517","TPoints 09/05/17", "tpoint/m1/2009_06_11/tpoint_20090611_011155.txt"},
+
+    // ------- Something happened (reason unknown) --------
+
+    {"090613","TPoints 09/05/17", "tpoint/m1/2009_06_11/tpoint_20090611_023625.txt"},
+
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_06_13/tpoint_20090613_033838.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_06_14/tpoint_20090614_021257.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_06_18/tpoint_20090618_041433.txt"},
+
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_02/tpoint_20090701_215304.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_02/tpoint_20090701_222059.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_02/tpoint_20090701_224051.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_02/tpoint_20090701_225615.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_02/tpoint_20090701_230946.txt"},
+
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_03/tpoint_20090702_225940.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_04/tpoint_20090703_224721.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_05/tpoint_20090705_012638.txt"},
+
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_12/tpoint_20090712_014300.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_12/tpoint_20090712_024710.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_13/tpoint_20090713_004241.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_13/tpoint_20090713_025934.txt"},
+
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_14/tpoint_20090714_024729.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_15/tpoint_20090715_021320.txt"},
+    {"+090613","TPoints 09/05/17", "tpoint/m1/2009_07_15/tpoint_20090715_025237.txt"},
+
+    // ----- AMC adjust (23.7.) -----
+
+    {"090723","TPoints 09/05/17", "tpoint/m1/2009_07_24/tpoint_20090724_051142.txt"},
+    {"+090723", "TPoints 08/2009" , "tpoint/m1/2009_08_02/tpoint_20090801_223848.txt"},
+    {"+090723","TPoints 08/2009" , "tpoint/m1/2009_08_03/tpoint_20090802_224434.txt"},
+    {"+090723","TPoints 08/2009" , "tpoint/m1/2009_08_04/tpoint_20090803_230214.txt"},
+    {"+090723","TPoints 08/2009" , "tpoint/m1/2009_08_10/tpoint_20090809_233524.txt"},
+    {"+090723","TPoints 08/2009" , "tpoint/m1/2009_08_10/tpoint_20090810_014642.txt"},
+    {"+090723","TPoints 08/2009" , "tpoint/m1/2009_08_10/tpoint_20090810_020616.txt"},
+    {"+090723","TPoints 08/2009" , "tpoint/m1/2009_08_11/tpoint_20090810_232543.txt"},
+    {"+090723","TPoints 08/2009" , "tpoint/m1/2009_08_12/tpoint_20090812_001846.txt"},
+    {"+090723","TPoints 08/2009" , "tpoint/m1/2009_08_13/tpoint_20090813_030807.txt"},
+
+    // ------ 09/08/17 new pointing model -------
 };
 
@@ -270,5 +308,5 @@
         cout << setw(2) << num << ": " << flush;
         n[num] = fill(desc[i].fFile, g, &hx[num]);
-        cout << " Mean: " << setw(5) << setprecision(2) << hx[num].GetMean() << " deg +/- " <<  hx[num].GetRMS()<< endl;
+        cout << " Mean: " << setw(5) << setprecision(3) << hx[num].GetMean()*3600 << " sec +/- " <<  hx[num].GetRMS()*3600 << endl;
     }
 
@@ -359,5 +397,8 @@
         MTime(2009,  5, 12).GetAxisTime(),
         MTime(2009,  5, 13).GetAxisTime(),
-        MTime(2009, 12, 30).GetAxisTime(),
+        MTime(2009,  6, 11).GetAxisTime(),
+        MTime(2009,  7, 23).GetAxisTime(),
+        MTime(2009,  8, 17).GetAxisTime(),
+        MTime(2009, 12, 31).GetAxisTime(),
     };
 
@@ -365,5 +406,5 @@
 
     MBinning bins;
-    bins.SetEdges(TArrayD(17, time));
+    bins.SetEdges(TArrayD(20, time));
 
     bins.Apply(histres[0]);
@@ -376,5 +417,5 @@
     for (int i=0; i<n.GetSize(); i++)
     {
-        cout << i+1 << " - Mean:  " << Form("%.4f +- %.4f", hx[i].GetMean(), hx[i].GetRMS());
+        cout << i+1 << " - Mean:  " << Form("%5.1f +- %5.1f", hx[i].GetMean()*3600, hx[i].GetRMS()*3600);
         cout << "   (Overflows=" << hx[i].GetBinContent(hx[i].GetNbinsX()+1)*hx[i].GetEntries() << ")   " << (int)hx[i].GetEntries() << endl;
 
@@ -473,5 +514,5 @@
 
     line.DrawLine(time[0], 0, time[0], histres[2].GetMaximum());
-    for (int i=0; i<11; i++)
+    for (int i=0; i<bins.GetNumBins()-1; i++)
         line.DrawLine(time[i+1], 0, time[i+1], histres[2].GetBinContent(i+1));
 
Index: trunk/MagicSoft/Cosy/tpoint/plot_m2.C
===================================================================
--- trunk/MagicSoft/Cosy/tpoint/plot_m2.C	(revision 9495)
+++ trunk/MagicSoft/Cosy/tpoint/plot_m2.C	(revision 9496)
@@ -101,5 +101,5 @@
 };
 
-const Int_t counts = 27;
+const Int_t counts = 46;
 Description_t desc[counts] =
 {
@@ -134,4 +134,30 @@
     {"+090512",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_06_04/tpoint_20090603_215841.txt"},
     {"+090512",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_06_05/tpoint_20090604_215941.txt"},
+
+    {"+090512",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_06_10/tpoint_20090609_232320.txt"},
+    {"+090512",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_06_11/tpoint_20090611_011148.txt"},
+
+    // Something happened (reason unknown)
+
+    {"090611",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_06_11/tpoint_20090611_023623.txt"},
+    {"+090611",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_06_13/tpoint_20090613_033839.txt"},
+    {"+090611",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_06_14/tpoint_20090614_021304.txt"},
+    {"+090611",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_06_18/tpoint_20090618_041436.txt"},
+    {"+090611",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_07_12/tpoint_20090712_014259.txt"},
+    {"+090611",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_07_12/tpoint_20090712_024706.txt"},
+    {"+090611",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_07_13/tpoint_20090713_004244.txt"},
+    {"+090611",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_07_13/tpoint_20090713_025925.txt"},
+    {"+090611",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_07_14/tpoint_20090714_022322.txt"},
+    {"+090611",  "TPoints Residuals 11/2004" , "tpoint/m2/2009_07_15/tpoint_20090715_021316.txt"},
+    {"+090611",  "TPoints Residuals 08/2009" , "tpoint/m2/2009_08_02/tpoint_20090801_225305.txt"},
+    {"+090611",  "TPoints Residuals 08/2009" , "tpoint/m2/2009_08_03/tpoint_20090802_224437.txt"},
+    {"+090611",  "TPoints Residuals 08/2009" , "tpoint/m2/2009_08_04/tpoint_20090803_231853.txt"},
+    {"+090611",  "TPoints Residuals 08/2009" , "tpoint/m2/2009_08_11/tpoint_20090810_234604.txt"},
+    {"+090611",  "TPoints Residuals 08/2009" , "tpoint/m2/2009_08_11/tpoint_20090811_020844.txt"},
+    {"+090611",  "TPoints Residuals 08/2009" , "tpoint/m2/2009_08_12/tpoint_20090812_001850.txt"},
+    {"+090611",  "TPoints Residuals 08/2009" , "tpoint/m2/2009_08_13/tpoint_20090813_030805.txt"},
+
+    // ------ 09/08/17 new pointing model -------
+
 };
 
@@ -232,6 +258,7 @@
         MTime(2009,  4, 11).GetAxisTime(),
         MTime(2009,  5, 11).GetAxisTime(),
-        MTime(2009,  5, 31).GetAxisTime(),
-        MTime(2009,  6,  6).GetAxisTime(),
+        MTime(2009,  6, 11).GetAxisTime(),
+        MTime(2009,  8, 17).GetAxisTime(),
+        MTime(2009, 12, 31).GetAxisTime(),
     };
 
@@ -239,5 +266,5 @@
 
     MBinning bins;
-    bins.SetEdges(TArrayD(5, time));
+    bins.SetEdges(TArrayD(6, time));
 
     bins.Apply(histres[0]);
@@ -347,5 +374,5 @@
 
     line.DrawLine(time[0], 0, time[0], histres[2].GetMaximum());
-    for (int i=0; i<bins.GetNumBins(); i++)
+    for (int i=0; i<bins.GetNumBins()-1; i++)
         line.DrawLine(time[i+1], 0, time[i+1], histres[2].GetBinContent(i+1));
 
@@ -379,5 +406,5 @@
         line.DrawLine(monl, -0.12, monl, 0.12);
     }*/
-    for (int m=1; m<13; m++)
+    for (int m=4; m<13; m++)
     {
         Double_t monl = MTime(2009, m,   1,0).GetAxisTime();
