Changeset 4585
- Timestamp:
- 08/12/04 07:15:35 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4584 r4585 23 23 24 24 2004/08/12 : Wolfgang Wittek 25 26 * manalysis/MSourcPosFromStarPos.[h,cc] 27 - replace MMcEvt by MPointingPos 25 28 26 29 * manalysis/MSigmabarCalc.[h,cc] -
trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.cc
r3847 r4585 56 56 #include "MSrcPosCam.h" 57 57 #include "MPointingPos.h" 58 #include "MMcEvt.hxx" 58 59 59 60 #include "MLog.h" … … 97 98 fdyStar.ResizeTo(fRows,fSize); 98 99 99 fStars = 0; 100 fStars = 0; 101 fStarsRead = 0; 100 102 fDecSource = 0.0; 101 103 fRaSource = 0.0; … … 255 257 } 256 258 257 258 fSrcPos = (MSrcPosCam*)pList->FindObject(AddSerialNumber("MSrcPosCam")); 259 fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt"); 260 if (!fMcEvt) 261 { 262 *fLog << all << "MSourcePosfromStarPos::PreProcess; MMcEvt not found... continue." << endl; 263 } 264 else 265 { 266 *fLog << all << "MSourcePosfromStarPos::PreProcess; MMcEvt was found... continue." << endl; 267 } 268 269 270 fSrcPos = (MSrcPosCam*)pList->FindCreateObj("MSrcPosCam"); 259 271 if (!fSrcPos) 260 272 { … … 490 502 Bool_t MSourcePosfromStarPos::ReInit(MParList *pList) 491 503 { 492 //if (1 == 1) return kTRUE;493 494 495 504 Int_t run = fRun->GetRunNumber(); 496 505 *fLog << all << "MSourcePosfromStarPos::ReInit; run = " << run << endl; 497 506 507 // temporary solution for MC 508 // copy (theta, phi) from MMcEvt into MPointingPos 509 if (fRun->GetRunType() > 255.5) 510 { 511 *fLog << all << " these are MC data" << endl; 512 Double_t thetarad = fMcEvt->GetTelescopeTheta(); 513 Double_t phirad = fMcEvt->GetTelescopePhi(); 514 fPointPos->SetLocalPosition(thetarad*kRad2Deg, phirad*kRad2Deg); 515 fPointPos->SetReadyToSave(); 516 return kTRUE; 517 } 498 518 499 519 //------------------------------------------------------------------- … … 652 672 << fStars << ", fRuns = " << fRuns << ", fRows = " << fRows 653 673 << ", fSize = " << fSize << endl; 654 *fLog << " first run : " << fRunNr[0] << ", last run : " 655 << fRunNr[fRuns-1] << endl; 674 if (fRuns > 0) 675 { 676 *fLog << " first run : " << fRunNr[0] << ", last run : " 677 << fRunNr[fRuns-1] << endl; 678 } 656 679 } 657 680 … … 725 748 726 749 fRuns += 1; 727 *fLog << fRuns <<"th run : " << ival << endl;750 //*fLog << fRuns <<"th run : " << ival << endl; 728 751 729 752 fRunNr.AddAt(ival, fRuns-1); -
trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.h
r3847 r4585 30 30 class MRawRunHeader; 31 31 class MPointingPos; 32 class MMcEvt; 32 33 class MGeomCam; 33 34 class MSrcPosCam; … … 40 41 const MRawRunHeader *fRun; //! 41 42 const MGeomCam *fGeomCam; //! Camera Geometry used to calculate Hillas 43 MMcEvt *fMcEvt; //! 42 44 MPointingPos *fPointPos; //! 43 45 MSrcPosCam *fSrcPos; //!
Note:
See TracChangeset
for help on using the changeset viewer.