Ignore:
Timestamp:
10/22/18 20:50:24 (6 years ago)
Author:
tbretz
Message:
Fixed some minor issues with the cling based interpreter - this should not have any effect at runtime maybe except stability
File:
1 edited

Legend:

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

    r18865 r19266  
    172172    leg.SetFillColor(kWhite);
    173173    leg.SetTextAlign(12);
    174     leg.AddText(Form("Ratescan %d ", search_id));
     174    leg.AddText(Form("Ratescan %lld ", search_id));
    175175    //leg.AddText("");
    176176    leg.AddText(Form("Begin       %s", time_beg));
     
    230230    //c->SaveAs(name+".eps");
    231231    //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));
    233233
    234234    delete c;
     235
     236    return kTRUE;
    235237}
    236238
     
    245247    bool old = file.HasColumn("Data0");
    246248
    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");
    253255
    254256    if (!ptime || !pid || !rates || !pth || !ptrig || !pontime)
     
    283285    Long64_t night = atol(_night);
    284286
    285     TString fname = Form("/fact/aux/%04d/%02d/%02d/%06d.RATE_SCAN_DATA.fits",
     287    TString fname = Form("/fact/aux/%04lld/%02lld/%02lld/%06lld.RATE_SCAN_DATA.fits",
    286288                         night/10000, (night/100)%100, night%100, night);
    287289
     
    316318    }
    317319
    318     TString oname = Form("%06d-ratescan.root", night);
     320    TString oname = Form("%06lld-ratescan.root", night);
    319321    //cout << "   " << oname << '\n' << endl;
    320322    TFile rootfile(oname.Data(), "recreate");
Note: See TracChangeset for help on using the changeset viewer.