Changeset 18260 for trunk/Mars/fact/plots/quality.C
- Timestamp:
- 06/23/15 13:54:05 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/plots/quality.C
r18258 r18260 945 945 } 946 946 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 } 949 957 950 958 gROOT->SetSelectedPad(0); … … 1008 1016 cout << PlotHumidity2(runs, fname) << endl; 1009 1017 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 } 1018 1048 1019 1049 c->SaveAs(Form("%s/%04d%02d%02d.png", outpath, y, m, d));
Note:
See TracChangeset
for help on using the changeset viewer.