Index: /trunk/MagicSoft/Mars/macros/calibClasses.C
===================================================================
--- /trunk/MagicSoft/Mars/macros/calibClasses.C	(revision 3728)
+++ /trunk/MagicSoft/Mars/macros/calibClasses.C	(revision 3729)
@@ -64,10 +64,13 @@
 
 
-  Float_t arry1 = 0.;
-  Float_t arry2 = 0.;
-  Float_t elly1 = 0.;
-  Float_t pty1  = 0.;
-  Float_t pty2  = 0.;
-  Float_t texy1 = 0.;
+  Float_t arry1  = 0.;
+  Float_t arry2  = 0.;
+  Float_t elly1  = 0.;
+  Float_t pty1   = 0.;
+  Float_t pty2   = 0.;
+  Float_t texy1  = 0.;
+  Float_t linex1 = 0.;
+  Float_t linex2 = 0.;
+  Float_t liney1 = 0.l;
 
   TCanvas *CalibClasses = new TCanvas("CalibClasses", "Calibration Classes",89,96,758,1051);
@@ -94,4 +97,5 @@
    text = pt->AddText("MPedestalCam:");
    text = pt->AddText("ped, RMS, #Deltaped, #DeltaRMS");
+   text->SetTextColor(kBlue);
    pt->Draw();
    
@@ -211,4 +215,6 @@
    ellipse->Draw();
 
+
+
    texy1 = 0.6;
 
@@ -226,11 +232,36 @@
    tex->Draw();
 
-   texy1 = 0.585;
-
-      tex = new TLatex(tex1x1+0.01,texy1,"Fit High-, Low-Gain, each pixel");
-   tex->SetTextSize(texsize2);
-   tex->SetTextColor(kRed);
-   tex->SetLineWidth(1);
-   tex->Draw();
+   linex1 = 0.18;
+   linex2 = 0.08;
+
+   TLine *line = new TLine(linex1,texy1,linex2,texy1);
+   line->Draw();
+
+   arrow = new TArrow(linex2,texy1,linex2,0.29,arrsize,"|>");
+   arrow->SetFillColor(1);
+   arrow->SetFillStyle(1001);
+   arrow->Draw();
+   
+   tex = new TLatex(linex2-0.01,0.35,"Pulse not in extraction window");
+   tex->SetTextSize(texsize2+0.008);
+   tex->SetTextAngle(90);
+   tex->SetTextColor(006);
+   tex->SetLineWidth(1);
+   tex->Draw();
+
+   texy1 = 0.59;
+
+   tex = new TLatex(tex1x1+0.01,texy1,"Fit High-, Low-Gain, each pixel");
+   tex->SetTextSize(texsize2);
+   tex->SetTextColor(kRed);
+   tex->SetLineWidth(1);
+   tex->Draw();
+      tex = new TLatex(tex1x1+0.01,texy1-0.01,"Fast Fourier Analysis");
+   tex->SetTextSize(texsize2);
+   tex->SetTextColor(kRed);
+   tex->SetLineWidth(1);
+   tex->Draw();
+
+
 
       tex = new TLatex(tex2x1+0.01,texy1,"Fit Single-Phe spectrum");
@@ -244,6 +275,9 @@
    tex->SetLineWidth(1);
    tex->Draw();
-
-
+      tex = new TLatex(tex3x1+0.01,texy1-0.01,"Fast Fourier Analysis");
+   tex->SetTextSize(texsize2);
+   tex->SetTextColor(kRed);
+   tex->SetLineWidth(1);
+   tex->Draw();
 
 
@@ -348,6 +382,6 @@
    arrow->Draw();
 
-   Float_t linex1 = 0.135;
-   Float_t liney1 = 0.38;
+   linex1 = 0.135;
+   liney1 = 0.38;
 
    TLine *line = new TLine(linex1,0.87,linex1,liney1);
@@ -359,11 +393,51 @@
    arrow->Draw();
 
-   arrow = new TArrow(0.35,0.395,0.24,0.433,arrsize,"|>");
-   arrow->SetFillColor(1);
-   arrow->SetFillStyle(1001);
-   arrow->Draw();
+   arrow = new TArrow(0.38,0.402,0.27,0.433,arrsize,"|>");
+   arrow->SetFillColor(1);
+   arrow->SetFillStyle(1001);
+   arrow->Draw();
+
+
+   arrow = new TArrow(0.35,0.365,0.15,0.29,arrsize,"|>");
+   arrow->SetFillColor(1);
+   arrow->SetFillStyle(1001);
+   arrow->Draw();
+
+   tex = new TLatex(0.2,0.29,"Deviating Nr. Phe's");
+   tex->SetTextSize(texsize2+0.006);
+   tex->SetTextAngle(27);
+   tex->SetTextColor(006);
+   tex->SetLineWidth(1);
+   tex->Draw();
+
+   tex = new TLatex(0.19,0.325,"Oscillations");
+   tex->SetTextSize(texsize2+0.006);
+   tex->SetTextAngle(27);
+   tex->SetTextColor(006);
+   tex->SetLineWidth(1);
+   tex->Draw();
+
+   tex = new TLatex(0.195,0.31,"Absurd fit results");
+   tex->SetTextSize(texsize2+0.006);
+   tex->SetTextAngle(27);
+   tex->SetTextColor(006);
+   tex->SetLineWidth(1);
+   tex->Draw();
 
 // seventh line
-   pt = new TPaveText(0.3,0.215,0.85,0.29,"br");
+   pty1 = 0.215;
+   pty2 = 0.29;
+
+   pt = new TPaveText(0.015,pty1,0.25,pty2,"br");
+   pt->SetFillColor(18);
+   text = pt->AddText("MBadPixelsCam:");
+   text = pt->AddText("kUnsuitableRun");
+   text->SetTextColor(kBlue);
+   text = pt->AddText("kUnreliableRun");
+   text->SetTextColor(kBlue);
+   pt->Draw();
+   
+
+   pt = new TPaveText(0.3,pty1,0.85,pty2,"br");
    pt->SetFillColor(18);
    text = pt->AddText("MCalibrationQECam:");
@@ -426,5 +500,5 @@
    arrow->Draw();
 
-   Float_t linex1 = 0.215;
+   Float_t linex1 = 0.27;
    Float_t liney1 = 0.13;
 
@@ -437,7 +511,22 @@
    arrow->Draw();
 
+   linex1 = 0.15;
+   liney1 = 0.05;
+
+   TLine *line = new TLine(linex1,0.215,linex1,liney1);
+   line->Draw();
+
+   TLine *line = new TLine(linex1,liney1,arr2x1,liney1);
+   line->Draw();
+
+   arrow = new TArrow(arr2x1,liney1,arr2x1,0.09,arrsize,"|>");
+   arrow->SetFillColor(1);
+   arrow->SetFillStyle(1001);
+   arrow->Draw();
+
+
    CalibClasses->Modified();
    CalibClasses->cd();
 
-   CalibClasses->SaveAs("CalibClasses.gif");
+   CalibClasses->SaveAs("htmldoc/images/CalibClasses.gif");
 }
