Changeset 4685 for trunk/MagicSoft/Mars/mtemp
- Timestamp:
- 08/19/04 10:27:35 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/MFindStars.cc
r4546 r4685 57 57 #include "MTime.h" 58 58 #include "MReportDrive.h" 59 #include "MStar LocalCam.h"60 #include "MStar LocalPos.h"59 #include "MStarCam.h" 60 #include "MStarPos.h" 61 61 62 62 #include "MParList.h" … … 107 107 MTaskList* tlist = (MTaskList*)plist->FindObject("MTaskList"); 108 108 MFindStars* find = (MFindStars*)tlist->FindObject("MFindStars"); 109 MStar LocalCam* stars =110 (MStar LocalCam*)plist->FindObject("MStarLocalCam","MStarLocalCam");109 MStarCam* stars = 110 (MStarCam*)plist->FindObject("MStarCam","MStarCam"); 111 111 MGeomCam* geom = (MGeomCam*)plist->FindObject("MGeomCam"); 112 112 … … 373 373 374 374 375 fStars = (MStar LocalCam*)pList->FindCreateObj(AddSerialNumber("MStarLocalCam"),"MStarLocalCam");375 fStars = (MStarCam*)pList->FindCreateObj(AddSerialNumber("MStarCam"),"MStarCam"); 376 376 if (!fStars) 377 377 { 378 *fLog << err << AddSerialNumber("MStar LocalCam") << " cannot be created ... aborting" << endl;378 *fLog << err << AddSerialNumber("MStarCam") << " cannot be created ... aborting" << endl; 379 379 return kFALSE; 380 380 } … … 442 442 cout << "Number of Stars added by astrocamera is " <<fStars->GetList()->GetSize() << endl; 443 443 444 MStar LocalPos* starpos;444 MStarPos* starpos; 445 445 TIter Next(fStars->GetList()); 446 while ((starpos=(MStar LocalPos*)Next())) {446 while ((starpos=(MStarPos*)Next())) { 447 447 starpos->SetCalcValues(40,40,starpos->GetXExp(),starpos->GetYExp(),fRingInterest/2,fRingInterest/2); 448 448 starpos->SetFitValues (40,40,starpos->GetXExp(),starpos->GetYExp(),fRingInterest/2,fRingInterest/2,0.,-1); … … 484 484 while(FindPixelWithMaxDC(maxPixelDC, maxPixel)) { 485 485 486 MStar LocalPos *starpos = new MStarLocalPos;486 MStarPos *starpos = new MStarPos; 487 487 starpos->SetExpValues(maxPixelDC,maxPixel.GetX(),maxPixel.GetY()); 488 488 starpos->SetCalcValues(maxPixelDC,maxPixelDC,maxPixel.GetX(),maxPixel.GetY(),fRingInterest/2,fRingInterest/2); … … 515 515 516 516 TIter Next(fStars->GetList()); 517 MStar LocalPos* star;518 while ((star=(MStar LocalPos*)Next())) {517 MStarPos* star; 518 while ((star=(MStarPos*)Next())) { 519 519 FindStar(star); 520 520 ShadowStar(star); … … 772 772 // 773 773 774 Bool_t MFindStars::FindStar(MStar LocalPos* star)774 Bool_t MFindStars::FindStar(MStarPos* star) 775 775 { 776 776 UInt_t numPixels = fGeomCam->GetNumPixels(); … … 1235 1235 } 1236 1236 1237 Bool_t MFindStars::ShadowStar(MStar LocalPos* star)1237 Bool_t MFindStars::ShadowStar(MStarPos* star) 1238 1238 { 1239 1239 UInt_t numPixels = fGeomCam->GetNumPixels(); -
trunk/MagicSoft/Mars/mtemp/MFindStars.h
r4546 r4685 27 27 class MTime; 28 28 class MReportDrive; 29 class MStar LocalCam;30 class MStar LocalPos;29 class MStarCam; 30 class MStarPos; 31 31 32 32 class MFindStars : public MTask … … 39 39 MTime *fTimeCurr; 40 40 MReportDrive *fDrive; 41 MStar LocalCam *fStars;41 MStarCam *fStars; 42 42 43 43 MAstroCamera fAstro; … … 74 74 Bool_t DCPedestalCalc(); 75 75 Bool_t FindPixelWithMaxDC(Float_t &maxDC, MGeomPix &maxPix); 76 Bool_t FindStar(MStar LocalPos* star);77 Bool_t ShadowStar(MStar LocalPos* star);76 Bool_t FindStar(MStarPos* star); 77 Bool_t ShadowStar(MStarPos* star); 78 78 79 79 TString fGeometryFile; -
trunk/MagicSoft/Mars/mtemp/MSourceDirections.cc
r4558 r4685 53 53 #include "MTime.h" 54 54 #include "MReportDrive.h" 55 #include "MStar LocalCam.h"56 #include "MStar LocalPos.h"55 #include "MStarCam.h" 56 #include "MStarPos.h" 57 57 58 58 #include "MParList.h" … … 90 90 } 91 91 92 fStars = (MStar LocalCam*)pList->FindCreateObj(AddSerialNumber("MStarLocalCam"),"MSourceLocalCam");92 fStars = (MStarCam*)pList->FindCreateObj(AddSerialNumber("MStarCam"),"MSourceCam"); 93 93 if (!fStars) { 94 *fLog << err << AddSerialNumber("MStar LocalCam") << " cannot be created ... aborting" << endl;94 *fLog << err << AddSerialNumber("MStarCam") << " cannot be created ... aborting" << endl; 95 95 return kFALSE; 96 96 } … … 128 128 fAstro.FillStarList(fStars->GetList()); 129 129 130 MStar LocalPos* starpos;130 MStarPos* starpos; 131 131 TIter Next(fStars->GetList()); 132 while ((starpos=(MStar LocalPos*)Next())) {132 while ((starpos=(MStarPos*)Next())) { 133 133 starpos->SetCalcValues(40,40,starpos->GetXExp(),starpos->GetYExp(),0.,0.); 134 134 starpos->SetFitValues (40,40,starpos->GetXExp(),starpos->GetYExp(),0.,0.,0.,1); -
trunk/MagicSoft/Mars/mtemp/MSourceDirections.h
r4558 r4685 12 12 class MTime; 13 13 class MReportDrive; 14 class MStar LocalCam;15 class MStar LocalPos;14 class MStarCam; 15 class MStarPos; 16 16 17 17 class MSourceDirections : public MTask … … 23 23 MTime *fTimeCurr; 24 24 MReportDrive *fDrive; 25 MStar LocalCam *fStars;25 MStarCam *fStars; 26 26 27 27 MAstroCamera fAstro;
Note:
See TracChangeset
for help on using the changeset viewer.