Changeset 6992 for trunk/MagicSoft/Mars/mpointing
- Timestamp:
- 05/03/05 13:50:24 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
r6914 r6992 188 188 } 189 189 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 204 190 *fLog << inf; 205 191 //*fLog << "Pointing Position: " << GetRaDec(*fPointPos) << endl; … … 247 233 248 234 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 } 249 248 return kTRUE; 249 } 250 250 251 251 MMcCorsikaRunHeader *h = (MMcCorsikaRunHeader*)plist->FindObject("MMcCorsikaRunHeader");
Note:
See TracChangeset
for help on using the changeset viewer.