Changeset 3569 for trunk/MagicSoft/Mars/mpointing
- Timestamp:
- 03/22/04 12:20:24 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
r3568 r3569 97 97 } 98 98 99 fObservatory = (MObservatory*)pList->FindObject("MObservatory"); 100 if (!fObservatory) 101 { 102 *fLog << err << "MObservatory not found... aborting." << endl; 103 return kFALSE; 104 } 105 99 106 fSrcPos = (MSrcPosCam*)pList->FindCreateObj("MSrcPosCam"); 100 107 if (!fSrcPos) … … 110 117 Bool_t MSrcPosCalc::ReInit(MParList *pList) 111 118 { 112 fObservatory = (MObservatory*)pList->FindObject("MObservatory");113 if (!fObservatory)114 {115 *fLog << err << "MObservatory not found... aborting." << endl;116 return kFALSE;117 }118 119 119 if (fX!=0 || fY!=0) 120 120 return kTRUE; … … 169 169 TVector2 v(fX, fY); 170 170 171 *fLog << dbg << fPointPos << " " << fGeom << " " << fObservatory << " " << fSrcPos << endl; 172 171 173 // rotate the source position by the current rotation angle 172 174 const Double_t rho = fPointPos->RotationAngle(*fObservatory);
Note:
See TracChangeset
for help on using the changeset viewer.