Changeset 18565 for trunk/Mars/mpointing/MSrcPosCalc.cc
- Timestamp:
- 09/03/16 14:40:46 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mpointing/MSrcPosCalc.cc
r9613 r18565 336 336 337 337 fMcHeader = (const MMcRunHeader*)plist->FindObject("MMcRunHeader"); 338 /* 338 339 if (!fMcHeader) 339 340 { 340 341 *fLog << err << "MMcRunHeader not found... aborting." << endl; 341 342 return kFALSE; 342 } 343 }*/ 343 344 344 345 fMcCorsika = 0; 345 if ( fMcHeader->IsCeres())346 if (!fMcHeader || fMcHeader->IsCeres()) 346 347 return kTRUE; 347 348 … … 404 405 // If the reflector version is too old take source position 405 406 // from the WobbleMode in the header 406 if (fMcHeader ->GetReflVersion()<=600)407 if (fMcHeader && fMcHeader->GetReflVersion()<=600) 407 408 { 408 409 SetSrcPos(fFixedPos/fGeom->GetConvMm2Deg()); … … 429 430 // If it was not ceres due to a bug in the MAGIC MCs 430 431 // we have to fix the sign of X 431 if ( !fMcHeader->IsCeres())432 if (fMcHeader && !fMcHeader->IsCeres()) 432 433 SetSrcPos(TVector2(-fSrcPosCam->GetX(), fSrcPosCam->GetY())); 433 434
Note:
See TracChangeset
for help on using the changeset viewer.