Changeset 19266 for trunk/Mars/fact/plots
- Timestamp:
- 10/22/18 20:50:24 (6 years ago)
- Location:
- trunk/Mars/fact/plots
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/plots/plotratescan.C
r18865 r19266 172 172 leg.SetFillColor(kWhite); 173 173 leg.SetTextAlign(12); 174 leg.AddText(Form("Ratescan % d ", search_id));174 leg.AddText(Form("Ratescan %lld ", search_id)); 175 175 //leg.AddText(""); 176 176 leg.AddText(Form("Begin %s", time_beg)); … … 230 230 //c->SaveAs(name+".eps"); 231 231 //c->SaveAs("/loc_data/analysis/"+name+".png"); 232 c->SaveAs(Form("/data1/analysis/ratescans/%04d/%02d/%02d/%06d_% d.png", atoi(night)/10000, (atoi(night)/100)%100, atoi(night)%100, atoi(night), search_id));232 c->SaveAs(Form("/data1/analysis/ratescans/%04d/%02d/%02d/%06d_%lld.png", atoi(night)/10000, (atoi(night)/100)%100, atoi(night)%100, atoi(night), search_id)); 233 233 234 234 delete c; 235 236 return kTRUE; 235 237 } 236 238 … … 245 247 bool old = file.HasColumn("Data0"); 246 248 247 Double_t *ptime = file.SetPtrAddress("Time");248 UInt_t *pid = file.SetPtrAddress(old ? "Data0" : "Id");249 Float_t *rates = file.SetPtrAddress(old ? "Data5" : "BoardRate");250 UInt_t *pth = file.SetPtrAddress(old ? "Data1" : "Threshold");251 Float_t *ptrig = file.SetPtrAddress(old ? "Data4" : "TriggerRate");252 Float_t *pontime = file.SetPtrAddress(old ? "Data3" : "RelOnTime");249 Double_t *ptime = (Double_t*)file.SetPtrAddress("Time"); 250 UInt_t *pid = (UInt_t*) file.SetPtrAddress(old ? "Data0" : "Id"); 251 Float_t *rates = (Float_t*) file.SetPtrAddress(old ? "Data5" : "BoardRate"); 252 UInt_t *pth = (UInt_t*) file.SetPtrAddress(old ? "Data1" : "Threshold"); 253 Float_t *ptrig = (Float_t*) file.SetPtrAddress(old ? "Data4" : "TriggerRate"); 254 Float_t *pontime = (Float_t*) file.SetPtrAddress(old ? "Data3" : "RelOnTime"); 253 255 254 256 if (!ptime || !pid || !rates || !pth || !ptrig || !pontime) … … 283 285 Long64_t night = atol(_night); 284 286 285 TString fname = Form("/fact/aux/%04 d/%02d/%02d/%06d.RATE_SCAN_DATA.fits",287 TString fname = Form("/fact/aux/%04lld/%02lld/%02lld/%06lld.RATE_SCAN_DATA.fits", 286 288 night/10000, (night/100)%100, night%100, night); 287 289 … … 316 318 } 317 319 318 TString oname = Form("%06 d-ratescan.root", night);320 TString oname = Form("%06lld-ratescan.root", night); 319 321 //cout << " " << oname << '\n' << endl; 320 322 TFile rootfile(oname.Data(), "recreate"); -
trunk/Mars/fact/plots/quality.C
r18260 r19266 1 #ifndef __CLING__ 1 2 #include <algorithm> 2 3 #include <functional> 4 #include <vector> 5 #include <pair> 6 #endif 3 7 4 8 Bool_t Contains(TArrayD **vec, Double_t t0, Double_t range=0) … … 71 75 return 0; 72 76 } 73 74 #include <vector>75 #include <pair>76 77 77 78 vector<pair<double, Nova::EquPosn>> vecp; … … 948 949 TCanvas *c = NULL; 949 950 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); 951 if (datestring.Atoi() > 20140723) 952 { 953 c = new TCanvas("quality", Form("Quality %04d/%02d/%02d", y, m, d), 1280, 1280); 954 c->Divide(1, 8, 1e-5, 1e-5); 955 } 956 else 957 { 958 c = new TCanvas("quality", Form("Quality %04d/%02d/%02d", y, m, d), 1280, 1120); 959 c->Divide(1, 7, 1e-5, 1e-5); 956 960 } 957 961 … … 983 987 gPad->SetLeftMargin(0.04); 984 988 cout << PlotRate(runs, fname) << endl; 985 cout << PlotRateQC(night, serv) << endl;989 PlotRateQC(night, serv); 986 990 987 991 gROOT->SetSelectedPad(0);
Note:
See TracChangeset
for help on using the changeset viewer.