Changeset 18205 for trunk/Mars/fact/plots
- Timestamp:
- 06/15/15 00:02:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/plots/plotratescan.C
r15243 r18205 129 129 { 130 130 TString query; 131 query += "SELECT fTimeBegin, fTimeEnd, fVoltageIsOn, fOvervoltage, fCurrentMedMean, fNight ";131 query += "SELECT fTimeBegin, fTimeEnd, fVoltageIsOn, fOvervoltage, fCurrentMedMean, fNight, fAzMin, fAzMax, fZdMin, fZdMax "; 132 132 query += "FROM Ratescan WHERE fRatescanID="; 133 133 query += search_id; … … 149 149 const char *time_end = (*row)[1]; 150 150 const char *night = (*row)[5]; 151 const char *az_beg = (*row)[6]; 152 const char *az_end = (*row)[7]; 153 const char *zd_beg = (*row)[8]; 154 const char *zd_end = (*row)[9]; 151 155 152 156 int voltage_on = (*row)[2] ? atoi((*row)[2]) : -1; … … 167 171 leg.SetBorderSize(1); 168 172 leg.SetFillColor(kWhite); 169 leg.AddText("Ratescan"); 170 leg.AddText(""); 171 leg.AddText(Form("Begin %s", time_beg)); 172 leg.AddText(Form("End %s", time_end)); 173 leg.AddText(""); 173 leg.SetTextAlign(12); 174 leg.AddText(Form("Ratescan %d ", search_id)); 175 //leg.AddText(""); 176 leg.AddText(Form("Begin %s", time_beg)); 177 leg.AddText(Form("End %s", time_end)); 178 leg.AddText(Form("Az %s#circ to %s#circ", az_beg, az_end)); 179 leg.AddText(Form("Zd %s#circ to %s#circ", zd_beg, zd_end)); 180 //leg.AddText(""); 174 181 if (voltage_on==0) 175 182 leg.AddText("Voltage off"); … … 179 186 leg.AddText(Form("Current <I_{med}> = %.1f #muA", current)); 180 187 if (overvoltage>-70) 181 leg.AddText(Form("Voltage 188 leg.AddText(Form("Voltage #DeltaU = %+.2f V", overvoltage)); 182 189 } 183 190 … … 209 216 g.DrawClone("PL"); 210 217 218 TGraph gr("good_ratescan_edit.txt", "%lg %lg"); 219 gr.SetLineColor(12); 220 gr.DrawClone("L"); 221 211 222 c->Write(); 212 223 … … 216 227 name += time_beg; 217 228 218 c->SaveAs(name+".pdf"); 219 c->SaveAs(name+".eps"); 220 c->SaveAs(name+".png"); 229 //c->SaveAs(name+".pdf"); 230 //c->SaveAs(name+".eps"); 231 //c->SaveAs("/loc_data/analysis/"+name+".png"); 232 c->SaveAs(Form("/loc_data/analysis/ratescans/%04d/%02d/%02d/%06d_%d.png", atoi(night)/10000, (atoi(night)/100)%100, atoi(night)%100, atoi(night), search_id)); 221 233 222 234 delete c; … … 305 317 306 318 TString oname = Form("%06d-ratescan.root", night); 307 308 cout << " " << oname << '\n' << endl; 309 319 //cout << " " << oname << '\n' << endl; 310 320 TFile rootfile(oname.Data(), "recreate"); 311 321
Note:
See TracChangeset
for help on using the changeset viewer.