Ignore:
Timestamp:
06/23/15 13:54:05 (9 years ago)
Author:
mknoetig
Message:
quality.C had a small bug that droppend the x-label fro the axis when no sqm data was present ( before 20140823)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/plots/quality.C

    r18258 r18260  
    945945    }
    946946
    947     TCanvas *c = new TCanvas("quality", Form("Quality %04d/%02d/%02d", y, m, d), 1280, 1280);
    948     c->Divide(1, 8, 1e-5, 1e-5);
     947    //check if the sqm was already installed on the telescope                                                                                                       
     948    TCanvas *c = NULL;
     949    TString datestring = Form("%04d%02d%02d", y, m, d);
     950    if( datestring.Atoi() > 20140723 ) {
     951      TCanvas *c = new TCanvas("quality", Form("Quality %04d/%02d/%02d", y, m, d), 1280, 1280);
     952      c->Divide(1, 8, 1e-5, 1e-5);
     953    }else{
     954      TCanvas *c = new TCanvas("quality", Form("Quality %04d/%02d/%02d", y, m, d), 1280, 1120);
     955      c->Divide(1, 7, 1e-5, 1e-5);
     956    }
    949957
    950958    gROOT->SetSelectedPad(0);
     
    10081016    cout << PlotHumidity2(runs, fname) << endl;
    10091017
    1010     gROOT->SetSelectedPad(0);
    1011     c->cd(8);
    1012     gPad->SetGrid();
    1013     gPad->SetTopMargin(0);
    1014     gPad->SetRightMargin(0.001);
    1015     gPad->SetLeftMargin(0.04);
    1016     cout << PlotSqm(runs, fname) << endl;
    1017 
     1018    //check if the sqm was already installed
     1019    if( datestring.Atoi() > 20140723 ) {
     1020      gROOT->SetSelectedPad(0);
     1021      c->cd(7);
     1022      gPad->SetGrid();
     1023      gPad->SetTopMargin(0);
     1024      gPad->SetBottomMargin(0);
     1025      gPad->SetRightMargin(0.001);
     1026      gPad->SetLeftMargin(0.04);
     1027      cout << PlotHumidity(runs, fname) << endl;
     1028      cout << PlotHumidity2(runs, fname) << endl;
     1029
     1030      gROOT->SetSelectedPad(0);
     1031      c->cd(8);
     1032      gPad->SetGrid();
     1033      gPad->SetTopMargin(0);
     1034      gPad->SetRightMargin(0.001);
     1035      gPad->SetLeftMargin(0.04);
     1036      cout << PlotSqm(runs, fname) << endl;
     1037    }else{
     1038
     1039      gROOT->SetSelectedPad(0);
     1040      c->cd(7);
     1041      gPad->SetGrid();
     1042      gPad->SetTopMargin(0);
     1043      gPad->SetRightMargin(0.001);
     1044      gPad->SetLeftMargin(0.04);
     1045      cout << PlotHumidity(runs, fname) << endl;
     1046      cout << PlotHumidity2(runs, fname) << endl;
     1047    }
    10181048
    10191049    c->SaveAs(Form("%s/%04d%02d%02d.png", outpath, y, m, d));
Note: See TracChangeset for help on using the changeset viewer.