Changeset 3729


Ignore:
Timestamp:
04/14/04 11:47:26 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/calibClasses.C

    r3709 r3729  
    6464
    6565
    66   Float_t arry1 = 0.;
    67   Float_t arry2 = 0.;
    68   Float_t elly1 = 0.;
    69   Float_t pty1  = 0.;
    70   Float_t pty2  = 0.;
    71   Float_t texy1 = 0.;
     66  Float_t arry1  = 0.;
     67  Float_t arry2  = 0.;
     68  Float_t elly1  = 0.;
     69  Float_t pty1   = 0.;
     70  Float_t pty2   = 0.;
     71  Float_t texy1  = 0.;
     72  Float_t linex1 = 0.;
     73  Float_t linex2 = 0.;
     74  Float_t liney1 = 0.l;
    7275
    7376  TCanvas *CalibClasses = new TCanvas("CalibClasses", "Calibration Classes",89,96,758,1051);
     
    9497   text = pt->AddText("MPedestalCam:");
    9598   text = pt->AddText("ped, RMS, #Deltaped, #DeltaRMS");
     99   text->SetTextColor(kBlue);
    96100   pt->Draw();
    97101   
     
    211215   ellipse->Draw();
    212216
     217
     218
    213219   texy1 = 0.6;
    214220
     
    226232   tex->Draw();
    227233
    228    texy1 = 0.585;
    229 
    230       tex = new TLatex(tex1x1+0.01,texy1,"Fit High-, Low-Gain, each pixel");
    231    tex->SetTextSize(texsize2);
    232    tex->SetTextColor(kRed);
    233    tex->SetLineWidth(1);
    234    tex->Draw();
     234   linex1 = 0.18;
     235   linex2 = 0.08;
     236
     237   TLine *line = new TLine(linex1,texy1,linex2,texy1);
     238   line->Draw();
     239
     240   arrow = new TArrow(linex2,texy1,linex2,0.29,arrsize,"|>");
     241   arrow->SetFillColor(1);
     242   arrow->SetFillStyle(1001);
     243   arrow->Draw();
     244   
     245   tex = new TLatex(linex2-0.01,0.35,"Pulse not in extraction window");
     246   tex->SetTextSize(texsize2+0.008);
     247   tex->SetTextAngle(90);
     248   tex->SetTextColor(006);
     249   tex->SetLineWidth(1);
     250   tex->Draw();
     251
     252   texy1 = 0.59;
     253
     254   tex = new TLatex(tex1x1+0.01,texy1,"Fit High-, Low-Gain, each pixel");
     255   tex->SetTextSize(texsize2);
     256   tex->SetTextColor(kRed);
     257   tex->SetLineWidth(1);
     258   tex->Draw();
     259      tex = new TLatex(tex1x1+0.01,texy1-0.01,"Fast Fourier Analysis");
     260   tex->SetTextSize(texsize2);
     261   tex->SetTextColor(kRed);
     262   tex->SetLineWidth(1);
     263   tex->Draw();
     264
     265
    235266
    236267      tex = new TLatex(tex2x1+0.01,texy1,"Fit Single-Phe spectrum");
     
    244275   tex->SetLineWidth(1);
    245276   tex->Draw();
    246 
    247 
     277      tex = new TLatex(tex3x1+0.01,texy1-0.01,"Fast Fourier Analysis");
     278   tex->SetTextSize(texsize2);
     279   tex->SetTextColor(kRed);
     280   tex->SetLineWidth(1);
     281   tex->Draw();
    248282
    249283
     
    348382   arrow->Draw();
    349383
    350    Float_t linex1 = 0.135;
    351    Float_t liney1 = 0.38;
     384   linex1 = 0.135;
     385   liney1 = 0.38;
    352386
    353387   TLine *line = new TLine(linex1,0.87,linex1,liney1);
     
    359393   arrow->Draw();
    360394
    361    arrow = new TArrow(0.35,0.395,0.24,0.433,arrsize,"|>");
    362    arrow->SetFillColor(1);
    363    arrow->SetFillStyle(1001);
    364    arrow->Draw();
     395   arrow = new TArrow(0.38,0.402,0.27,0.433,arrsize,"|>");
     396   arrow->SetFillColor(1);
     397   arrow->SetFillStyle(1001);
     398   arrow->Draw();
     399
     400
     401   arrow = new TArrow(0.35,0.365,0.15,0.29,arrsize,"|>");
     402   arrow->SetFillColor(1);
     403   arrow->SetFillStyle(1001);
     404   arrow->Draw();
     405
     406   tex = new TLatex(0.2,0.29,"Deviating Nr. Phe's");
     407   tex->SetTextSize(texsize2+0.006);
     408   tex->SetTextAngle(27);
     409   tex->SetTextColor(006);
     410   tex->SetLineWidth(1);
     411   tex->Draw();
     412
     413   tex = new TLatex(0.19,0.325,"Oscillations");
     414   tex->SetTextSize(texsize2+0.006);
     415   tex->SetTextAngle(27);
     416   tex->SetTextColor(006);
     417   tex->SetLineWidth(1);
     418   tex->Draw();
     419
     420   tex = new TLatex(0.195,0.31,"Absurd fit results");
     421   tex->SetTextSize(texsize2+0.006);
     422   tex->SetTextAngle(27);
     423   tex->SetTextColor(006);
     424   tex->SetLineWidth(1);
     425   tex->Draw();
    365426
    366427// seventh line
    367    pt = new TPaveText(0.3,0.215,0.85,0.29,"br");
     428   pty1 = 0.215;
     429   pty2 = 0.29;
     430
     431   pt = new TPaveText(0.015,pty1,0.25,pty2,"br");
     432   pt->SetFillColor(18);
     433   text = pt->AddText("MBadPixelsCam:");
     434   text = pt->AddText("kUnsuitableRun");
     435   text->SetTextColor(kBlue);
     436   text = pt->AddText("kUnreliableRun");
     437   text->SetTextColor(kBlue);
     438   pt->Draw();
     439   
     440
     441   pt = new TPaveText(0.3,pty1,0.85,pty2,"br");
    368442   pt->SetFillColor(18);
    369443   text = pt->AddText("MCalibrationQECam:");
     
    426500   arrow->Draw();
    427501
    428    Float_t linex1 = 0.215;
     502   Float_t linex1 = 0.27;
    429503   Float_t liney1 = 0.13;
    430504
     
    437511   arrow->Draw();
    438512
     513   linex1 = 0.15;
     514   liney1 = 0.05;
     515
     516   TLine *line = new TLine(linex1,0.215,linex1,liney1);
     517   line->Draw();
     518
     519   TLine *line = new TLine(linex1,liney1,arr2x1,liney1);
     520   line->Draw();
     521
     522   arrow = new TArrow(arr2x1,liney1,arr2x1,0.09,arrsize,"|>");
     523   arrow->SetFillColor(1);
     524   arrow->SetFillStyle(1001);
     525   arrow->Draw();
     526
     527
    439528   CalibClasses->Modified();
    440529   CalibClasses->cd();
    441530
    442    CalibClasses->SaveAs("CalibClasses.gif");
     531   CalibClasses->SaveAs("htmldoc/images/CalibClasses.gif");
    443532}
Note: See TracChangeset for help on using the changeset viewer.