Changeset 4720
- Timestamp:
- 08/24/04 10:05:46 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/MHTelAxisFromStars.cc
r4719 r4720 276 276 } 277 277 278 278 //------------------------------------------- 279 279 // copy names from MStarCam to the histograms 280 MStarPos* starpos; 281 Int_t istar = 0; 282 TIter Next(fSourceCam->GetList()); 283 284 while ((starpos=(MStarPos*)Next())) { 285 fStarnames[istar] = starpos->GetName(); 286 //*fLog << "istar, star name = " << istar << ", " 287 // << fStarnames[istar] << endl; 288 istar++; 289 if (istar >= fNstarnames) break; 290 } 291 280 292 if (fSourceCam) 281 293 { 282 *fLog << "Source container exists " << endl;283 284 294 MStarPos *starSource = 0; 285 295 TIter nextSource(fSourceCam->GetList()); 286 287 *fLog << "&nextSource = " << &nextSource << endl; 288 289 starSource = (MStarPos*)nextSource(); 290 if (starSource) 296 while ( (starSource = (MStarPos*)nextSource()) ) 291 297 { 292 *fLog << "name of source container1 : " << starSource->GetName() 293 << endl; 294 295 fEstPos1->SetName(starSource->GetName()); 296 297 starSource = (MStarPos*)nextSource(); 298 if (starSource) 299 { 300 *fLog << "name of source container2 : " << starSource->GetName() 301 << endl; 302 303 304 fEstPos2->SetName(starSource->GetName()); 305 306 starSource = (MStarPos*)nextSource(); 307 if (starSource) 308 { 309 310 *fLog << "name of source container3 : " << starSource->GetName() 311 << endl; 312 313 fEstPos3->SetName(starSource->GetName()); 314 } 315 } 298 if ( fNstarnames > 0 && starSource->GetName() == fStarnames[0] ) 299 fEstPos1->SetName(starSource->GetName()); 300 301 else if( fNstarnames > 1 && starSource->GetName() == fStarnames[1] ) 302 fEstPos2->SetName(starSource->GetName()); 303 304 else if( fNstarnames > 2 && starSource->GetName() == fStarnames[2] ) 305 fEstPos3->SetName(starSource->GetName()); 316 306 } 317 307 } … … 455 445 TIter nextSource(fSourceCam->GetList()); 456 446 457 starSource = (MStarPos*)nextSource();458 if (starSource)447 while( (starSource = (MStarPos*)nextSource()) ) 448 //if (starSource) 459 449 { 460 450 if (fInputType == 1) … … 471 461 if (x>lowx && x<higx && y>lowy && y<higy) 472 462 { 473 fEstPos1 ->Fill(x, y, w); 474 //fEstPos1->SetName(starSource->GetName()); 463 if ( fNstarnames > 0 && starSource->GetName() == fStarnames[0] ) 464 fEstPos1->Fill(x, y, w); 465 466 else if( fNstarnames > 1 && starSource->GetName() == fStarnames[1] ) 467 fEstPos2->Fill(x, y, w); 468 469 else if( fNstarnames > 2 && starSource->GetName() == fStarnames[2] ) 470 fEstPos3->Fill(x, y, w); 475 471 } 476 472 477 473 /* 478 474 starSource = (MStarPos*)nextSource(); 479 475 if (starSource) … … 517 513 } 518 514 } 515 */ 516 519 517 } 520 518 } -
trunk/MagicSoft/Mars/mtemp/MHTelAxisFromStars.h
r4705 r4720 35 35 MSkyCamTrans *fSkyCamTrans; //! 36 36 37 38 39 37 Float_t fMm2Deg; //! 40 38 Bool_t fUseMmScale; //! 41 39 Int_t fInputType; //! 40 41 const static Int_t fNstarnames = 3; //! 42 TString fStarnames[fNstarnames]; //! 42 43 43 44 void SetColors() const; -
trunk/MagicSoft/Mars/mtemp/MSourceDirections.cc
r4709 r4720 115 115 fAstro.SetObservatory(magic1); 116 116 117 118 // make the starlist available already in the preprocessing 119 fStars->GetList()->Delete(); 120 fAstro.SetTime(*fTimeCurr); 121 fAstro.SetGuiActive(); 122 fAstro.FillStarList(fStars->GetList()); 123 *fLog << inf << "in preprocessing " << GetName() << " found " 124 << fStars->GetList()->GetSize() 125 << " directions inside the chosen FOV." << endl; 126 127 117 128 return kTRUE; 118 129 } … … 164 175 } 165 176 177 178 179 180 181 182 183 184 185 186 187 188
Note:
See TracChangeset
for help on using the changeset viewer.