Changeset 18565


Ignore:
Timestamp:
09/03/16 14:40:46 (8 years ago)
Author:
tbretz
Message:
Ceres fits files do not provide (yet?) MMcRunHeader, ignore it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mpointing/MSrcPosCalc.cc

    r9613 r18565  
    336336
    337337    fMcHeader = (const MMcRunHeader*)plist->FindObject("MMcRunHeader");
     338    /*
    338339    if (!fMcHeader)
    339340    {
    340341        *fLog << err << "MMcRunHeader not found... aborting." << endl;
    341342        return kFALSE;
    342     }
     343    }*/
    343344
    344345    fMcCorsika = 0;
    345     if (fMcHeader->IsCeres())
     346    if (!fMcHeader || fMcHeader->IsCeres())
    346347        return kTRUE;
    347348
     
    404405        // If the reflector version is too old take source position
    405406        // from the WobbleMode in the header
    406         if (fMcHeader->GetReflVersion()<=600)
     407        if (fMcHeader && fMcHeader->GetReflVersion()<=600)
    407408        {
    408409            SetSrcPos(fFixedPos/fGeom->GetConvMm2Deg());
     
    429430        // If it was not ceres due to a bug in the MAGIC MCs
    430431        // we have to fix the sign of X
    431         if (!fMcHeader->IsCeres())
     432        if (fMcHeader && !fMcHeader->IsCeres())
    432433            SetSrcPos(TVector2(-fSrcPosCam->GetX(), fSrcPosCam->GetY()));
    433434
Note: See TracChangeset for help on using the changeset viewer.