Changeset 3847
- Timestamp:
- 04/27/04 11:17:16 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.cc
r3599 r3847 1 1 2 /* ======================================================================== *\ 2 3 ! … … 54 55 #include "MGeomCam.h" 55 56 #include "MSrcPosCam.h" 56 #include "M McEvt.hxx"57 #include "MPointingPos.h" 57 58 58 59 #include "MLog.h" … … 246 247 247 248 248 fMcEvt = (MMcEvt*)pList->FindCreateObj("MMcEvt"); 249 if (!fMcEvt) 249 250 fPointPos = (MPointingPos*)pList->FindCreateObj("MPointingPos"); 251 if (!fPointPos) 250 252 { 251 *fLog << err << "MSourcePosfromStarPos::PreProcess; M McEvtnot found... aborting." << endl;253 *fLog << err << "MSourcePosfromStarPos::PreProcess; MPointingPos not found... aborting." << endl; 252 254 return kFALSE; 253 255 } … … 502 504 { 503 505 //----------------------------------------- 504 // put the zenith angle into M McEvt506 // put the zenith angle into MPointingPos 505 507 506 508 Double_t thetarad = fThetaTel[i]; … … 516 518 fPhiradold = phirad; 517 519 518 fMcEvt->SetTelescopeTheta(thetarad); 519 fMcEvt->SetTelescopePhi(phirad); 520 fMcEvt->SetReadyToSave(); 520 fPointPos->SetLocalPosition(thetarad*kRad2Deg, phirad*kRad2Deg); 521 fPointPos->SetReadyToSave(); 521 522 522 523 *fLog << all << "theta, phi = " << thetarad*kRad2Deg << ", " … … 588 589 589 590 Double_t thetarad = fThetaradold; 590 fMcEvt->SetTelescopeTheta(thetarad);591 592 591 Double_t phirad = fPhiradold; 593 fMcEvt->SetTelescopePhi(phirad); 594 fMcEvt->SetReadyToSave(); 592 fPointPos->SetLocalPosition(thetarad*kRad2Deg, phirad*kRad2Deg); 593 fPointPos->SetReadyToSave(); 594 595 595 596 596 *fLog << warn << "MSourcePosfromStarPos::ReInit; no information on theta, phi and source position for run number = " -
trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.h
r3598 r3847 29 29 class TList; 30 30 class MRawRunHeader; 31 class M McEvt;31 class MPointingPos; 32 32 class MGeomCam; 33 33 class MSrcPosCam; … … 40 40 const MRawRunHeader *fRun; //! 41 41 const MGeomCam *fGeomCam; //! Camera Geometry used to calculate Hillas 42 M McEvt *fMcEvt;//!42 MPointingPos *fPointPos; //! 43 43 MSrcPosCam *fSrcPos; //! 44 44 MObservatory *fObservatory; //!
Note:
See TracChangeset
for help on using the changeset viewer.