Changeset 3221


Ignore:
Timestamp:
02/18/04 14:29:54 (21 years ago)
Author:
reyes
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3220 r3221  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6
     7 2004/01/17: Raquel de los Reyes
     8
     9   * macros/CCDataCheck.C
     10     - Added some improvements in the plots.
    611
    712 2004/01/17: Abelardo Moralejo
  • trunk/MagicSoft/Mars/macros/CCDataCheck.C

    r3214 r3221  
    2626// It displays 9 tabs:
    2727//   - Drive system
     28//   - Camera status
    2829//   - HV of power supplies and HV settings
    29 //   - DC of power supplies and several camera related status plots
     30//   - DC of power supplies
    3031//   - LV power supplies
    3132//   - Cooling system
     
    239240  plist.AddToList(&bins5);
    240241  MBinning bins6("BinningTrigZdY");
    241   bins6.SetEdges(100, 0, 1500);
     242  bins6.SetEdges(10000, 0, 15000);
    242243  plist.AddToList(&bins6);
    243244
     
    578579      TAxis *axey = hist->GetYaxis();
    579580      TAxis *axex = hist->GetXaxis();
     581      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    580582      hist->SetXTitle("Time");
    581583      hist->SetYTitle("");
     
    617619  if (hvt->GetGraph()->GetN())
    618620    {
     621      hvt->GetGraph()->GetHistogram()->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    619622      hvt->GetGraph()->GetHistogram()->SetXTitle("Time");
    620623      hvt->GetGraph()->GetHistogram()->SetYTitle("Zd [\\circ]");
     
    627630  // Camera report
    628631  //
    629   // ************************* HV of power supplies ***************************
     632  // **************************** CAMERA STATUS ********************
    630633  if ((d = evtloop.GetDisplay()))
    631     TCanvas &c2 = d.AddTab("CAMERA HV");
     634    TCanvas &c2 = d.AddTab("CAMERA STATUS");
    632635  else
    633636    TCanvas *c2 = new TCanvas();
    634   c2->Divide(2,2);
     637  c2->Divide(1,2);
    635638  c2->cd(1);
    636   // ---------------------------- Power supplies ------------------------------
    637   TLegend *legHV = new TLegend(0.85,0.75,0.99,0.99);
    638   g = hHVA.GetGraph();
    639   g->SetMarkerColor(2);
    640   g->SetLineColor(2);
    641   g->SetTitle("Voltages of power supplies");
    642   legHV->AddEntry(g,"PS A (hvps1)","l");
    643   clone1 = (MHVsTime*)hHVA.DrawClone("nonew");
    644   if(clone1->GetGraph()->GetN())
    645     {
    646       hist = clone1->GetGraph()->GetHistogram();
    647       hist->SetXTitle("Time");
    648       hist->SetYTitle("High voltage [V]");
    649       hist->SetMinimum(0);
    650     }
    651   g = hHVB.GetGraph();
    652   g->SetMarkerColor(3);
    653   g->SetLineColor(3);
    654   legHV->AddEntry(g,"PS B (hvps2)","l");
    655   clone1 = (MHVsTime*)hHVB.DrawClone("nonewsame");
    656   legHV->DrawClone();
    657   // ---------------------------- HV settings ---------------------------------
    658   c2->cd(2);
    659   g = hCamMean.GetGraph();
    660   g->SetMarkerColor(2);
    661   g->SetLineColor(2);
    662   g->SetTitle("Camera mean HV settings");
    663   clone1 = (MHVsTime*)hCamMean.DrawClone("nonew");
    664   if(clone1->GetGraph()->GetN())
    665     {
    666       hist = clone1->GetGraph()->GetHistogram();
    667       hist->SetXTitle("Time");
    668       hist->SetYTitle("HV [V]");
    669       hist->SetMinimum(0);
    670     }
    671   c2->cd(3);
    672   Sum = (MHCamera*)HVdisplay.GetHistByName("sum");
    673   TVirtualPad *c = gPad;
    674   c->cd(1);
    675   gPad->SetBorderMode(0);
    676   Sum->SetYTitle("Mean");
    677   Sum->DrawClone("pixelindex");
    678   c2->cd(4);
    679   gPad->SetBorderMode(0);
    680   Sum->SetYTitle("Mean HV settings");
    681   Sum->DrawClone("EPhist");
    682 
    683   // ******************** Currents of power supplies *******************
    684   if ((d = evtloop.GetDisplay()))
    685     TCanvas &c3 = d.AddTab("CAMERA DC");
    686   else
    687     TCanvas *c3 = new TCanvas();
    688  // ----------------------------- Power supplies ------------------------------
    689   c3->Divide(1,2);
    690   c3->cd(1);
    691   TLegend *legC = new TLegend(0.85,0.75,0.99,0.99);
    692   g = hCA.GetGraph();
    693   g->SetMarkerColor(2);
    694   g->SetLineColor(2);
    695   g->SetTitle("Currents of power supplies");
    696   legC->AddEntry(g,"Power supply A (curr1)","l");
    697   clone1 = (MHVsTime*)hCA.DrawClone("nonew");
    698   if(clone1->GetGraph()->GetN())
    699     {
    700       hist = clone1->GetGraph()->GetHistogram();
    701       hist->SetXTitle("Time");
    702       hist->SetYTitle("Current [mA]");
    703       hist->SetMinimum(0);
    704     }
    705   g = hCB.GetGraph();
    706   g->SetMarkerColor(3);
    707   g->SetLineColor(3);
    708   legC->AddEntry(g,"Power supply B (curr2)","l");
    709   clone1 = (MHVsTime*)hCB.DrawClone("nonewsame");
    710   legC->DrawClone();
    711   c3->cd(2);
    712   gPad->SetBorderMode(0);
    713   gPad->Divide(2,2);
    714   TVirtualPad *c = gPad;
    715   c->cd(1);
    716639  g = hCamStatus.GetGraph();
    717640  g->SetMarkerStyle(kFullDotSmall);
     
    735658      axey->SetBinLabel(axey->FindFixBin(8),"SHUTD");
    736659      axey->SetBinLabel(axey->FindFixBin(9),"N/A");
    737       axey->SetLabelSize(0.07);
     660      axey->SetLabelSize(0.05);
     661      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    738662      hist->SetXTitle("Time");
    739663      hist->SetYTitle("");
    740664    }
    741   c->cd(2);
    742   g = hCamStatusDC.GetGraph();
    743   g->SetMarkerStyle(kFullDotSmall);
    744   g->SetTitle("Camera DC status");
    745   clone1 = (MHVsTime*)hCamStatusDC.DrawClone("nonew");
     665  c2->cd(2);
     666  g = hLidsStatus.GetGraph();
     667  g->SetMarkerStyle(kFullDotSmall);
     668  g->SetTitle("Camera Lids status");
     669  clone1 = (MHVsTime*)hLidsStatus.DrawClone("nonew");
    746670  if(clone1->GetGraph()->GetN())
    747671    {
     
    752676      axey->Set(10,-0.5,9.5);
    753677      axey->SetBinLabel(axey->FindFixBin(0),"Error");
    754       axey->SetBinLabel(axey->FindFixBin(1),"Alarm");
    755       axey->SetBinLabel(axey->FindFixBin(3),"Hot");
    756       axey->SetBinLabel(axey->FindFixBin(5),"Ok");
    757       axey->SetBinLabel(axey->FindFixBin(6),"Warm");
     678      axey->SetBinLabel(axey->FindFixBin(1),"SafetyLimit");
     679      axey->SetBinLabel(axey->FindFixBin(4),"Closed");
     680      axey->SetBinLabel(axey->FindFixBin(5),"Opened");
     681      axey->SetBinLabel(axey->FindFixBin(6),"Moving");
     682      axey->SetBinLabel(axey->FindFixBin(7),"Stopped");
    758683      axey->SetBinLabel(axey->FindFixBin(9),"n/a");
    759       axey->SetLabelSize(0.07);
     684      axey->SetLabelSize(0.05);
     685      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    760686      hist->SetXTitle("Time");
    761687      hist->SetYTitle("");
    762688    }
    763   c->cd(3);
     689  // ************************* HV of power supplies ***************************
     690  if ((d = evtloop.GetDisplay()))
     691    TCanvas &c3 = d.AddTab("CAMERA HV");
     692  else
     693    TCanvas *c3 = new TCanvas();
     694  c3->Divide(2,2);
     695  c3->cd(1);
     696  // --------------- Power supplies  and HV settings --------------------------
     697  TLegend *legHV = new TLegend(0.75,0.85,0.99,0.99);
     698  g = hHVA.GetGraph();
     699  g->SetMarkerColor(2);
     700  g->SetLineColor(2);
     701  g->SetTitle("Voltages of power supplies and camera settings");
     702  legHV->AddEntry(g,"PS A (hvps1)","l");
     703  clone1 = (MHVsTime*)hHVA.DrawClone("nonew");
     704  if(clone1->GetGraph()->GetN())
     705    {
     706      hist = clone1->GetGraph()->GetHistogram();
     707      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
     708      hist->SetXTitle("Time");
     709      hist->SetYTitle("High voltage [V]");
     710      hist->SetMinimum(0);
     711    }
     712  g = hHVB.GetGraph();
     713  g->SetMarkerColor(3);
     714  g->SetLineColor(3);
     715  legHV->AddEntry(g,"PS B (hvps2)","l");
     716  clone1 = (MHVsTime*)hHVB.DrawClone("nonewsame");
     717  g = hCamMean.GetGraph();
     718  g->SetMarkerColor(4);
     719  g->SetLineColor(4);
     720  legHV->AddEntry(g,"Camera mean HV","l");
     721  clone1 = (MHVsTime*)hCamMean.DrawClone("nonewsame");
     722  legHV->DrawClone();
     723  // ---------------------------- HV status -----------------------------------
     724  c3->cd(2);
    764725  g = hHVStatus.GetGraph();
    765726  g->SetMarkerStyle(kFullDotSmall);
     
    781742      axey->SetBinLabel(axey->FindFixBin(6),"LimCurrentWarning");
    782743      axey->SetBinLabel(axey->FindFixBin(9),"n/a");
    783       axey->SetLabelSize(0.07);
     744      axey->SetLabelSize(0.05);
     745      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    784746      hist->SetXTitle("Time");
    785747      hist->SetYTitle("");
    786748    }
    787   c->cd(4);
    788   g = hLidsStatus.GetGraph();
    789   g->SetMarkerStyle(kFullDotSmall);
    790   g->SetTitle("Camera Lids status");
    791   clone1 = (MHVsTime*)hLidsStatus.DrawClone("nonew");
     749  // ---------------------------- HV settings ---------------------------------
     750  c3->cd(3);
     751  Sum = (MHCamera*)HVdisplay.GetHistByName("sum");
     752  TVirtualPad *c = gPad;
     753  c->cd(1);
     754  gPad->SetBorderMode(0);
     755  Sum->SetYTitle("Mean");
     756  Sum->DrawClone("pixelindex");
     757  c3->cd(4);
     758  gPad->SetBorderMode(0);
     759  Sum->SetYTitle("Mean HV settings");
     760  Sum->DrawClone("EPhist");
     761
     762  // ******************** Currents of power supplies *******************
     763  if ((d = evtloop.GetDisplay()))
     764    TCanvas &c4 = d.AddTab("CAMERA DC");
     765  else
     766    TCanvas *c4 = new TCanvas();
     767 // ----------------------------- Power supplies ------------------------------
     768  c4->Divide(1,2);
     769  c4->cd(1);
     770  TLegend *legC = new TLegend(0.85,0.75,0.99,0.99);
     771  g = hCA.GetGraph();
     772  g->SetMarkerColor(2);
     773  g->SetLineColor(2);
     774  g->SetTitle("Currents of power supplies");
     775  legC->AddEntry(g,"PS A (curr1)","l");
     776  clone1 = (MHVsTime*)hCA.DrawClone("nonew");
     777  if(clone1->GetGraph()->GetN())
     778    {
     779      hist = clone1->GetGraph()->GetHistogram();
     780      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
     781      hist->SetXTitle("Time");
     782      hist->SetYTitle("Current [mA]");
     783      hist->SetMinimum(0);
     784    }
     785  g = hCB.GetGraph();
     786  g->SetMarkerColor(3);
     787  g->SetLineColor(3);
     788  legC->AddEntry(g,"PS B (curr2)","l");
     789  clone1 = (MHVsTime*)hCB.DrawClone("nonewsame");
     790  legC->DrawClone();
     791  c4->cd(2);
     792  g = hCamStatusDC.GetGraph();
     793  g->SetMarkerStyle(kFullDotSmall);
     794  g->SetTitle("Camera DC status");
     795  clone1 = (MHVsTime*)hCamStatusDC.DrawClone("nonew");
    792796  if(clone1->GetGraph()->GetN())
    793797    {
     
    798802      axey->Set(10,-0.5,9.5);
    799803      axey->SetBinLabel(axey->FindFixBin(0),"Error");
    800       axey->SetBinLabel(axey->FindFixBin(1),"SafetyLimit");
    801       axey->SetBinLabel(axey->FindFixBin(4),"Closed");
    802       axey->SetBinLabel(axey->FindFixBin(5),"Opened");
    803       axey->SetBinLabel(axey->FindFixBin(6),"Moving");
    804       axey->SetBinLabel(axey->FindFixBin(7),"Stopped");
     804      axey->SetBinLabel(axey->FindFixBin(1),"Alarm");
     805      axey->SetBinLabel(axey->FindFixBin(3),"Hot");
     806      axey->SetBinLabel(axey->FindFixBin(5),"Ok");
     807      axey->SetBinLabel(axey->FindFixBin(6),"Warm");
    805808      axey->SetBinLabel(axey->FindFixBin(9),"n/a");
    806       axey->SetLabelSize(0.07);
     809      axey->SetLabelSize(0.09);
     810      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    807811      hist->SetXTitle("Time");
    808812      hist->SetYTitle("");
    809813    }
     814
     815
    810816  // ***************************** LV power supplies **************************
    811817  if ((d = evtloop.GetDisplay()))
    812     TCanvas &c4 = d.AddTab("CAMERA LV");
     818    TCanvas &c5 = d.AddTab("CAMERA LV");
    813819  else
    814     TCanvas *c4 = new TCanvas();
    815   c4->Divide(2,2);
    816   c4->cd(1);
     820    TCanvas *c5 = new TCanvas();
     821  c5->Divide(2,2);
     822  c5->cd(1);
    817823  g = hLVTemp.GetGraph();
    818824  g->SetMarkerColor(2);
     
    823829    {
    824830      hist = clone1->GetGraph()->GetHistogram();
     831      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    825832      hist->SetXTitle("Time");
    826833      hist->SetYTitle("Temperature [\\circ]");
    827834    }
    828   c4->cd(2);
     835  c5->cd(2);
    829836  g = hLVHum.GetGraph();
    830837  g->SetMarkerColor(4);
     
    835842    {
    836843      hist = clone1->GetGraph()->GetHistogram();
     844      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    837845      hist->SetXTitle("Time");
    838846      hist->SetYTitle("Humidity [%]");
    839847    }
    840   c4->cd(3);
     848  c5->cd(3);
    841849  g = hLVStatus.GetGraph();
    842850  g->SetMarkerStyle(kFullDotSmall);
     
    856864      axey->SetBinLabel(axey->FindFixBin(5),"On");
    857865      axey->SetBinLabel(axey->FindFixBin(9),"n/a");
     866      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    858867      hist->SetXTitle("Time");
    859868      hist->SetYTitle("");
    860869    }
    861   c4->cd(4);
     870  c5->cd(4);
    862871  g = hLVRPS.GetGraph();
    863872  g->SetMarkerStyle(kFullDotSmall);
     
    867876    {
    868877      hist = clone1->GetGraph()->GetHistogram();
     878      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    869879      hist->SetXTitle("Time");
    870880      hist->SetYTitle("");
     
    878888  // ****************************** Cooling ***********************************
    879889  if ((d = evtloop.GetDisplay()))
    880     TCanvas &c5 = d.AddTab("COOLING SYSTEM");
     890    TCanvas &c6 = d.AddTab("COOLING SYSTEM");
    881891  else
    882     TCanvas *c5 = new TCanvas();
     892    TCanvas *c6 = new TCanvas();
    883893  gStyle->SetPadGridX(kTRUE);
    884894  gStyle->SetPadGridY(kTRUE);
    885   c5->Divide(2,2);
    886   c5->cd(1);
     895  c6->Divide(2,2);
     896  c6->cd(1);
    887897  // -------------------------- Camera temperatures ---------------------------
    888   TLegend *legtemp = new TLegend(0.85,0.75,0.99,0.99);
     898  TLegend *legtemp = new TLegend(0.75,0.80,0.99,0.99);
    889899  g = hTCenter.GetGraph();
    890900  g->SetMarkerColor(8);
    891901  g->SetLineColor(8);
    892902  g->SetTitle("Camera temperature");
    893   legtemp->AddEntry(g,"T at camera center","l");
     903  legtemp->AddEntry(g,"camera center","l");
    894904  clone1 = (MHVsTime*)hTCenter.DrawClone("nonew");
    895905  if(clone1->GetGraph()->GetN())
    896906    {
    897907      hist = clone1->GetGraph()->GetHistogram();
     908      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    898909      hist->SetXTitle("Time");
    899910      hist->SetYTitle("Temperature [\\circ C]");
     
    903914  g->SetMarkerColor(12);
    904915  g->SetLineColor(12);
    905   legtemp->AddEntry(g,"T at camera wall","l");
     916  legtemp->AddEntry(g,"camera wall","l");
    906917  clone1 = (MHVsTime*)hTWall.DrawClone("nonewsame");
    907918  g = hTWater.GetGraph();
    908919  g->SetMarkerColor(4);
    909920  g->SetLineColor(4);
    910   legtemp->AddEntry(g,"T at water deposit","l");
     921  legtemp->AddEntry(g,"water deposit","l");
    911922  clone1 = (MHVsTime*)hTWater.DrawClone("nonewsame");
    912923  g = hTOptLink.GetGraph();
    913924  g->SetMarkerColor(2);
    914925  g->SetLineColor(2);
    915   legtemp->AddEntry(g,"T at optical links","l");
     926  legtemp->AddEntry(g,"optical links","l");
    916927  clone1 = (MHVsTime*)hTOptLink.DrawClone("nonewsame");
    917928  legtemp->DrawClone();
    918   c5->cd(2);
     929  c6->cd(2);
    919930  g = hCoolStatus.GetGraph();
    920931  g->SetMarkerStyle(kFullDotSmall);
     
    936947      axey->SetBinLabel(axey->FindFixBin(9),"n/a");
    937948      axey->SetLabelSize(0.05);
     949      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    938950      hist->SetXTitle("Time");
    939951      hist->SetYTitle("");
    940952    }
    941953  // ------------------------- Camera relative humidity -----------------------
    942   c5->cd(3);
    943   TLegend *leghum = new TLegend(0.75,0.75,0.99,0.99);
     954  c6->cd(3);
     955  TLegend *leghum = new TLegend(0.75,0.85,0.99,0.99);
    944956  g = hHCenter.GetGraph();
    945957  g->SetMarkerColor(8);
    946958  g->SetLineColor(8);
    947959  g->SetTitle("Camera relative humidity");
    948   leghum->AddEntry(g,"RH at camera center","l");
     960  leghum->AddEntry(g,"camera center","l");
    949961  clone1 = (MHVsTime*)hHCenter.DrawClone("nonew");
    950962  if(clone1->GetGraph()->GetN())
    951963    {
    952964      hist = clone1->GetGraph()->GetHistogram();
     965      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    953966      hist->SetXTitle("Time");
    954967      hist->SetYTitle("Relative humidity [%]");
     
    959972  g->SetMarkerColor(12);
    960973  g->SetLineColor(12);
    961   leghum->AddEntry(g,"RH at camera wall","l");
     974  leghum->AddEntry(g,"camera wall","l");
    962975  clone1 = (MHVsTime*)hHWall.DrawClone("nonewsame");
    963976  leghum->DrawClone();
    964977  // ---------------------- Temperature distribution --------------------------
    965   c5->cd(4);
     978  c6->cd(4);
    966979  hist = hTempOptLink.GetHistByName("TOptLink");
    967980  hist->SetXTitle("Temperature [\\circ C]");
     
    975988  //
    976989  if ((d = evtloop.GetDisplay()))
    977     TCanvas &c6 = d.AddTab("TRIGGER SYSTEM");
     990    TCanvas &c7 = d.AddTab("TRIGGER SYSTEM");
    978991  else
    979     TCanvas *c6 = new TCanvas();
    980   c6->Divide(1,3);
    981   c6->cd(1);
     992    TCanvas *c7 = new TCanvas();
     993  c7->Divide(1,3);
     994  c7->cd(1);
    982995  gStyle->SetPadGridX(kTRUE);
    983996  gStyle->SetPadGridY(kTRUE);
     997  gPad->SetLogy();
    984998  TLegend *legtrig = new TLegend(0.85,0.85,0.99,0.99);
    985999  g = hTrigBL2.GetGraph();
     
    9931007    {
    9941008      hist = clone1->GetGraph()->GetHistogram();
     1009      hist->SetMinimum(1);
     1010      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
     1011      hist->GetXaxis()->SetLabelSize(0.05);
     1012      hist->GetYaxis()->SetLabelSize(0.05);
    9951013      hist->SetXTitle("Time");
    9961014      hist->SetYTitle("L2 trigger rate [Hz]");
     
    10021020  clone1 = (MHVsTime*)hTrigAL2.DrawClone("nonewsame");
    10031021  legtrig->DrawClone();
    1004    c6->cd(2);
     1022   c7->cd(2);
     1023   gPad->SetLogy();
    10051024   hist = hTrigZd.GetHistByName("TrigZd");
     1025   hist->GetXaxis()->SetLabelSize(0.05);
     1026   hist->GetYaxis()->SetLabelSize(0.05);
    10061027   hist->SetXTitle("Zenith angle[\\circ]");
    10071028   hist->SetYTitle("Trigger rate [Hz]");
     
    10101031   hist->SetStats(0);
    10111032   mh3 = (MH3*)hTrigZd.DrawClone("nonew");
    1012    c6->cd(3);
     1033   hist->SetMinimum(1);
     1034   c7->cd(3);
    10131035   g = hTrigStatus.GetGraph();
    10141036   g->SetMarkerStyle(kFullDotSmall);
     
    10281050       axey->SetBinLabel(axey->FindFixBin(4),"Active");
    10291051       axey->SetBinLabel(axey->FindFixBin(5),"Stopped");
    1030        axey->SetLabelSize(0.07);
     1052       axey->SetLabelSize(0.05);
     1053       hist->GetXaxis()->SetLabelSize(0.05);
     1054       hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    10311055       hist->SetXTitle("Time");
    10321056       hist->SetYTitle("");
     
    10341058  // ***************************** Trigger of macrocells **********************
    10351059  if ((d = evtloop.GetDisplay()))
    1036     TCanvas &c7 = d.AddTab("TRIG. MACROCELLs");
     1060    TCanvas &c8 = d.AddTab("TRIG. MACROCELLs");
    10371061  else
    1038     TCanvas *c7 = new TCanvas();
    1039   c7->Divide(2,2);
    1040   c7->cd(1);
    1041   TLegend *legtrig = new TLegend(0.80,0.70,0.99,0.99);
     1062    TCanvas *c8 = new TCanvas();
     1063  c8->Divide(2,2);
     1064  c8->cd(1);
     1065  gPad->SetLogy();
     1066  TLegend *legtrig = new TLegend(0.70,0.80,0.99,0.99);
    10421067  g = htrigmc1.GetGraph();
    10431068  g->SetMarkerStyle(kFullDotSmall);
     
    10511076      if(hist->GetMaximum()<g->GetHistogram()->GetMaximum())
    10521077        hist->SetMaximum(g->GetHistogram()->GetMaximum());
     1078      hist->SetMinimum(1);
     1079      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    10531080      hist->SetXTitle("Time");
    10541081      hist->SetYTitle("Trigger [Hz]");
    10551082    }
    10561083  legtrig->DrawClone();
    1057   c7->cd(2);
    1058   TLegend *legtrig = new TLegend(0.80,0.70,0.99,0.99);
     1084  c8->cd(2);
     1085  gPad->SetLogy();
     1086  TLegend *legtrig = new TLegend(0.70,0.70,0.99,0.99);
    10591087  g = htrigmc2.GetGraph();
    10601088  g->SetMarkerStyle(kFullDotSmall);
     
    10681096      if(hist->GetMaximum()<g->GetHistogram()->GetMaximum())
    10691097        hist->SetMaximum(g->GetHistogram()->GetMaximum());
     1098      hist->SetMinimum(1);
     1099      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    10701100      hist->SetXTitle("Time");
    10711101      hist->SetYTitle("Trigger [Hz]");
     
    11071137  pixclone1 = (MHPixVsTime*)htrigmc7.DrawClone("nonewsame");
    11081138  legtrig->DrawClone();
    1109   c7->cd(3);
    1110   TLegend *legtrig = new TLegend(0.80,0.70,0.99,0.99);
     1139  c8->cd(3);
     1140  gPad->SetLogy();
     1141  TLegend *legtrig = new TLegend(0.70,0.70,0.99,0.99);
    11111142  g = htrigmc8.GetGraph();
    11121143  g->SetMarkerStyle(kFullDotSmall);
     
    11201151    {
    11211152      hist = pixclone1->GetGraph()->GetHistogram();
     1153      if(hist->GetMaximum()<g->GetHistogram()->GetMaximum())
     1154        hist->SetMaximum(g->GetHistogram()->GetMaximum());
     1155      hist->SetMinimum(1);
     1156      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    11221157      hist->SetXTitle("Time");
    11231158      hist->SetYTitle("Trigger [Hz]");
     
    11571192  pixclone1 = (MHPixVsTime*)htrigmc13.DrawClone("nonewsame");
    11581193  legtrig->DrawClone();
    1159   c7->cd(4);
    1160   TLegend *legtrig = new TLegend(0.80,0.70,0.99,0.99);
     1194  c8->cd(4);
     1195  gPad->SetLogy();
     1196  TLegend *legtrig = new TLegend(0.70,0.70,0.99,0.99);
    11611197  TGraph *g = htrigmc14.GetGraph();
    11621198  g->SetMarkerStyle(kFullDotSmall);
     
    11701206      if(hist->GetMaximum()<g->GetHistogram()->GetMaximum())
    11711207        hist->SetMaximum(g->GetHistogram()->GetMaximum());
     1208      hist->SetMinimum(1);
     1209      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    11721210      hist->SetXTitle("Time");
    11731211      hist->SetYTitle("Trigger [Hz]");
     
    12141252  //
    12151253  if ((d = evtloop.GetDisplay()))
    1216     TCanvas &c8 = d.AddTab("WEATHER STATION");
     1254    TCanvas &c9 = d.AddTab("WEATHER STATION");
    12171255  else
    1218     TCanvas *c8 = new TCanvas();
    1219   c8->Divide(2,2);
     1256    TCanvas *c9 = new TCanvas();
     1257  c9->Divide(2,2);
    12201258  // ----------------------- Relative humidity --------------------------------
    1221   c8->cd(1);
     1259  c9->cd(1);
    12221260  g = hCCHum.GetGraph();
    12231261  g->SetMarkerStyle(kFullDotSmall);
    12241262  g->SetMarkerColor(4);
    12251263  g->SetLineColor(4);
    1226   g->SetTitle("Relative humidity");
     1264  g->SetTitle("Relative humidity outside");
    12271265  clone1 = (MHVsTime*)hCCHum.DrawClone("nonew");
    12281266  if(clone1->GetGraph()->GetN())
    12291267    {
    12301268      hist = clone1->GetGraph()->GetHistogram();
     1269      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    12311270      hist->SetXTitle("Time");
    12321271      hist->SetYTitle("Humidity [%]");
    12331272    }
    12341273  // -------------------------- Temperature -----------------------------------
    1235   c8->cd(2);
     1274  c9->cd(2);
    12361275  g = hCCTemp.GetGraph();
    12371276  g->SetMarkerStyle(kFullDotSmall);
    12381277  g->SetMarkerColor(2);
    12391278  g->SetLineColor(2);
    1240   g->SetTitle("Temperature");
     1279  g->SetTitle("Temperature outside");
    12411280  clone1 = (MHVsTime*)hCCTemp.DrawClone("nonew");
    12421281  if(clone1->GetGraph()->GetN())
    12431282    {
    12441283      hist = clone1->GetGraph()->GetHistogram();
     1284      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    12451285      hist->SetXTitle("Time");
    12461286      hist->SetYTitle("Temperature [\\circ C]");
    12471287    }
    12481288  // --------------------------- Wind speed -----------------------------------
    1249   c8->cd(3);
     1289  c9->cd(3);
    12501290  g = hCCWS.GetGraph();
    12511291  g->SetMarkerStyle(kFullDotSmall);
    12521292  g->SetMarkerColor(3);
    12531293  g->SetLineColor(3);
    1254   g->SetTitle("Wind speed");
     1294  g->SetTitle("Wind speed outside");
    12551295  clone1 = (MHVsTime*)hCCWS.DrawClone("nonew");
    12561296  if(clone1->GetGraph()->GetN())
    12571297    {
    12581298      hist = clone1->GetGraph()->GetHistogram();
     1299      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    12591300      hist->SetXTitle("Time");
    12601301      hist->SetYTitle("Wind speed [km/h]");
    12611302    }
    12621303  // -------------------------- Solar radiation -------------------------------
    1263   c8->cd(4);
     1304  c9->cd(4);
    12641305  g = hCCSR.GetGraph();
    12651306  g->SetMarkerStyle(kFullDotSmall);
    12661307  g->SetMarkerColor(9);
    12671308  g->SetLineColor(9);
    1268   g->SetTitle("Solar radiation");
     1309  g->SetTitle("Solar radiation outside");
    12691310  clone1 = (MHVsTime*)hCCSR.DrawClone("nonew");
    12701311  if(clone1->GetGraph()->GetN())
    12711312    {
    12721313      hist = clone1->GetGraph()->GetHistogram();
     1314      hist->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00");
    12731315      hist->SetXTitle("Time");
    12741316      hist->SetYTitle("Solar radiation [W/m^2]");
     
    12931335      c6->Print(directory+file+".ps");
    12941336      c7->Print(directory+file+".ps");
    1295       c8->Print(directory+file+".ps)");
     1337      c8->Print(directory+file+".ps");
     1338      c9->Print(directory+file+".ps)");
    12961339    }
    12971340}
Note: See TracChangeset for help on using the changeset viewer.