Changeset 6508
- Timestamp:
- 02/15/05 19:41:20 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/callisto.rc
r6477 r6508 1 # ========================================================================== 1 # 2 ========================================================================== 2 3 ############################################################################# 3 4 # ========================================================================== … … 316 317 317 318 # ------------------------------------------------------------------------- 319 # Use this if you want to change to time from run headers instead of event time 320 # ------------------------------------------------------------------------- 321 #MJCalibrateSignal.MPointingPosInterpolate.TimeMode: eventtime, runtime 322 323 # ------------------------------------------------------------------------- 318 324 # Use this if you want to change the signal extractor 319 325 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mpointing/MPointingPosInterpolate.cc
r6488 r6508 177 177 // Sometimes there are two reports with the same time 178 178 // 179 if (reporttime->GetTime() == reportTime[n-2]) 180 { 181 *fLog << warn <<"["<< GetName() 182 << "]: Warning: this report has the same time that the previous one...skipping it " << endl; 183 continue; 184 } 179 if (n>1) 180 if (reporttime->GetTime() == reportTime[n-2]) 181 { 182 *fLog << warn <<"["<< GetName() 183 << "]: Warning: this report has the same time that the previous one...skipping it " << endl; 184 continue; 185 } 185 186 186 187 reportTime[n-1] = reporttime->GetTime(); … … 294 295 //const Int_t run = fRunHeader->GetRunNumber(); 295 296 const MTime &StartRunTime = fRunHeader->GetRunStart(); 297 const MTime &EndRunTime = fRunHeader->GetRunEnd(); 296 298 Int_t time = StartRunTime.GetTime(); 297 299 … … 302 304 // Check that we have drive report for this time 303 305 // 306 307 time = (EndRunTime.GetTime() + StartRunTime.GetTime())/2; 308 304 309 if( StartRunTime<fFirstDriveTime || StartRunTime>fLastDriveTime) 305 310 { … … 317 322 318 323 case kEventTime: 324 319 325 time = fEvtTime->GetTime(); 320 326 321 if (fDebug)322 {323 *fLog << " real time : " << time324 << " first time: " << fFirstDriveTime.GetTime()325 << " last time: " << fLastDriveTime.GetTime() << endl;326 }327 327 // 328 328 // Check that we have drive report for this time … … 340 340 else time = fLastDriveTime.GetTime(); 341 341 342 if (fDebug)343 {344 *fLog << " PointingPos: time = " << time << " (" << *fEvtTime << ") (zd, az) = ("345 << fSplineZd->Eval( time )<< ", " <<fSplineAz->Eval( time )<< ")" << endl;346 }347 342 } 348 343 break; 349 344 } 350 345 346 if (fDebug) 347 { 348 *fLog << " real time : " << time 349 << " first time: " << fFirstDriveTime.GetTime() 350 << " last time: " << fLastDriveTime.GetTime() << endl; 351 *fLog << " PointingPos: time = " << time << " (" << *fEvtTime << ") (zd, az) = (" 352 << fSplineZd->Eval( time )<< ", " <<fSplineAz->Eval( time )<< ")" << endl; 353 } 351 354 // 352 355 // Check that we have drive report for this time … … 389 392 rc = kTRUE; 390 393 } 394 395 if (IsEnvDefined(env, prefix, "TimeMode", print)) 396 { 397 398 TString dat(GetEnvValue(env, prefix, "TimeMode", "")); 399 dat.ToLower(); 400 401 rc = kTRUE; 402 403 if (dat.Contains("eventtime")) 404 SetTimeMode(kEventTime); 405 else if (dat.Contains("runtime")) 406 SetTimeMode(kRunTime); 407 else 408 rc = kFALSE; 409 } 391 410 return rc; 392 411 } 412
Note:
See TracChangeset
for help on using the changeset viewer.