Ignore:
Timestamp:
03/22/04 12:20:24 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3568 r3569  
    9797    }
    9898
     99    fObservatory = (MObservatory*)pList->FindObject("MObservatory");
     100    if (!fObservatory)
     101    {
     102        *fLog << err << "MObservatory not found... aborting." << endl;
     103        return kFALSE;
     104    }
     105
    99106    fSrcPos = (MSrcPosCam*)pList->FindCreateObj("MSrcPosCam");
    100107    if (!fSrcPos)
     
    110117Bool_t MSrcPosCalc::ReInit(MParList *pList)
    111118{
    112     fObservatory = (MObservatory*)pList->FindObject("MObservatory");
    113     if (!fObservatory)
    114     {
    115         *fLog << err << "MObservatory not found... aborting." << endl;
    116         return kFALSE;
    117     }
    118 
    119119    if (fX!=0 || fY!=0)
    120120        return kTRUE;
     
    169169    TVector2 v(fX, fY);
    170170
     171    *fLog << dbg << fPointPos << " " << fGeom << " " << fObservatory << " " << fSrcPos << endl;
     172
    171173    // rotate the source position by the current rotation angle
    172174    const Double_t rho = fPointPos->RotationAngle(*fObservatory);
Note: See TracChangeset for help on using the changeset viewer.