Changeset 18270 for trunk/Mars
- Timestamp:
- 07/16/15 15:11:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/analysis/callisto_data.C
r18147 r18270 90 90 // ------------------------------------------------------- 91 91 92 TFile file(drstime);93 if ( file.IsZombie())92 MDrsCalibrationTime timecam; 93 if (!timecam.ReadFits(drstime)) 94 94 { 95 gLog << err << "ERROR - Could not open" << drstime << endl;95 gLog << err << "ERROR - Could not get MDrsCalibrationTime from " << drstime << endl; 96 96 return 21; 97 97 } 98 98 99 MDrsCalibrationTime *timecam = 0; 100 file.GetObject("MDrsCalibrationTime", timecam); 101 if (!timecam) 99 if (delays) 102 100 { 103 gLog << err << "ERROR - Could not get MDrsCalibrationTime from " << drstime << endl; 104 return 22; 101 TGraph g(delays); 102 if (g.GetN()!=1440) 103 { 104 gLog << err << "Error reading file " << delays << endl; 105 return 22; 106 } 107 108 timecam.SetDelays(g); 105 109 } 106 110 … … 203 207 plist5.AddToList(&drscalib300); 204 208 plist5.AddToList(&badpixels); 205 plist5.AddToList( timecam);209 plist5.AddToList(&timecam); 206 210 207 211 MEvtLoop loop5("CalibratingData");
Note:
See TracChangeset
for help on using the changeset viewer.