Changeset 18204 for trunk/Mars
- Timestamp:
- 06/15/15 00:01:36 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/processing/fillratescan.C
r17102 r18204 48 48 Float_t GetOffset(TString fname, Double_t beg, Double_t end) 49 49 { 50 fname.ReplaceAll("RATE_SCAN_DATA", "FEEDBACK_DEVIATION"); 50 if (end < 15937) 51 fname.ReplaceAll("RATE_SCAN_DATA", "FEEDBACK_DEVIATION"); 52 else 53 fname.ReplaceAll("RATE_SCAN_DATA", "FEEDBACK_CALIBRATED_CURRENTS"); 51 54 52 55 fits file(fname.Data()); … … 61 64 return -100; 62 65 63 if (!file.SetPtrAddress("DeltaUser", &delta)) 64 return -100; 66 if (end < 15937) 67 { 68 if (!file.SetPtrAddress("DeltaUser", &delta)) 69 return -100; 70 } 71 else 72 { 73 if (!file.SetPtrAddress("U_nom", &delta)) 74 return -100; 75 } 65 76 66 77 //cout << "Search for: " << beg-15773 << " " << end-15773 << endl; … … 80 91 Float_t GetCurrent(TString fname, Double_t beg, Double_t end) 81 92 { 82 fname.ReplaceAll("RATE_SCAN_DATA", "CALIBRATED_CURRENTS"); 83 fname = gSystem->BaseName(fname.Data()); 84 85 fname.Prepend("/scratch_nfs/calibrated_currents/"); 93 fname.ReplaceAll("RATE_SCAN_DATA", "FEEDBACK_CALIBRATED_CURRENTS"); 94 95 //the next two lines are needed for ISDC and data before 11.3.2013 96 //fname.ReplaceAll("RATE_SCAN_DATA", "CALIBRATED_CURRENTS"); 97 //fname = gSystem->BaseName(fname.Data()); 98 //fname.Prepend("/scratch_nfs/calibrated_currents/"); 86 99 87 100 fits file(fname.Data()); … … 326 339 !file.SetPtrAddress(string(old ? "Data3" : "RelOnTime"), &ontime)) 327 340 return -1; 328 */341 */ 329 342 Double_t *ptime = file.SetPtrAddress("Time"); 330 343 ULong64_t *pid = file.SetPtrAddress(old ? "Data0" : "Id");
Note:
See TracChangeset
for help on using the changeset viewer.