Ignore:
Timestamp:
05/03/05 13:50:24 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6914 r6992  
    188188    }
    189189
    190     fObservatory = (MObservatory*)pList->FindObject("MObservatory");
    191     if (!fObservatory)
    192     {
    193         *fLog << err << "MObservatory not found... aborting." << endl;
    194         return kFALSE;
    195     }
    196 
    197     fTime = (MTime*)pList->FindObject("MTime");
    198     if (!fTime)
    199     {
    200         *fLog << err << "MTime not found... aborting." << endl;
    201         return kFALSE;
    202     }
    203 
    204190    *fLog << inf;
    205191    //*fLog << "Pointing Position: " << GetRaDec(*fPointPos)  << endl;
     
    247233
    248234    if (fRunType!=MRawRunHeader::kRTMonteCarlo)
     235    {
     236        fObservatory = (MObservatory*)plist->FindObject("MObservatory");
     237        if (!fObservatory)
     238        {
     239            *fLog << err << "MObservatory not found... aborting." << endl;
     240            return kFALSE;
     241        }
     242        fTime = (MTime*)plist->FindObject("MTime");
     243        if (!fTime)
     244        {
     245            *fLog << err << "MTime not found... aborting." << endl;
     246            return kFALSE;
     247        }
    249248        return kTRUE;
     249    }
    250250
    251251    MMcCorsikaRunHeader *h = (MMcCorsikaRunHeader*)plist->FindObject("MMcCorsikaRunHeader");
Note: See TracChangeset for help on using the changeset viewer.