Changeset 15009
- Timestamp:
- 03/10/13 12:02:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataCalib.cc
r14686 r15009 45 45 46 46 fData.fStep = 1; 47 fData.fDateRunBeg[2] = "1970-01-01T00:00:00"; 48 fData.fDateRunEnd[2] = "1970-01-01T00:00:00"; 49 fData.fDateEnd = fDateRunEnd[1]; 47 50 Update(dim, runs); 48 51 fData.fStep = 2; … … 75 78 #warning Time marker channels not sent 76 79 80 const Time time(fData.fDateObs); 81 77 82 dim.setQuality(fData.fStep); 78 dim.Update(buf); 83 dim.setData(buf); 84 dim.Update(time); 79 85 80 86 runs.setQuality(fData.fStep); 81 87 runs.setData(buf.data(), 4*sizeof(uint32_t)); 82 runs.Update( );88 runs.Update(time); 83 89 } 84 90 … … 212 218 } 213 219 } 214 220 /* 215 221 void DataCalib::WriteFitsImp(const string &filename, const vector<float> &vec) const 216 222 { … … 262 268 file.WriteRow(vec.data()+1, n*sizeof(float)); 263 269 } 264 270 */ 265 271 bool DataCalib::Close(RUN_TAIL *tail) 266 272 { … … 313 319 } 314 320 321 const Time beg(fTstart[0], fTstart[1]); 322 const Time end(fTstop[0], fTstop[1]); 323 324 if (fData.fStep==0) 325 fData.fDateObs = beg; 326 fData.fDateEnd = end; 327 328 fData.fDateRunBeg[fData.fStep] = beg; 329 fData.fDateRunEnd[fData.fStep] = end; 330 315 331 if (fData.fStep<=2) 316 332 { … … 318 334 try 319 335 { 320 WriteFitsImp(filename, fStats); 336 fData.WriteFitsImp(filename, fStats); 337 338 //WriteFitsImp(filename, fStats); 321 339 322 340 ostringstream str;
Note:
See TracChangeset
for help on using the changeset viewer.