Changeset 12639 for trunk/FACT++
- Timestamp:
- 11/24/11 15:53:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Fits.cc
r12636 r12639 316 316 } 317 317 318 const double tm = *reinterpret_cast<double*>(fStandardPointers[0]); 319 318 320 //the first standard variable is the current MjD 319 321 if (fEndMjD==0) 320 322 { 321 323 // FIXME: Check error? 322 const double time = *reinterpret_cast<double*>(fStandardPointers[0]); 323 324 fFile->WriteKeyNT("TSTARTI", uint32_t(floor(time)), "Time when first event received (integral part)"); 325 fFile->WriteKeyNT("TSTARTF", fmod(time, 1), "Time when first event received (fractional part)"); 324 fFile->WriteKeyNT("TSTARTI", uint32_t(floor(tm)), "Time when first event received (integral part)"); 325 fFile->WriteKeyNT("TSTARTF", fmod(tm, 1), "Time when first event received (fractional part)"); 326 326 fFile->WriteKeyNT("TSTOPI", uint32_t(floor(fEndMjD)), "Time when last event received (integral part)"); 327 327 fFile->WriteKeyNT("TSTOPF", fmod(fEndMjD, 1), "Time when last event received (fractional part)"); 328 328 329 fFile->WriteKeyNT("DATE-OBS", Time(t ime+40587).Iso(),329 fFile->WriteKeyNT("DATE-OBS", Time(tm+40587).Iso(), 330 330 "Time when first event received"); 331 331 … … 333 333 "Time when last event received"); 334 334 } 335 fEndMjD = time; 335 336 fEndMjD = tm; 336 337 337 338 return true;
Note:
See TracChangeset
for help on using the changeset viewer.