Changeset 4517 for trunk/MagicSoft/Mars/mastro
- Timestamp:
- 08/05/04 17:24:51 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc
r4358 r4517 11 11 ! * provided that the above copyright notice appear in all copies and 12 12 ! * that both that copyright notice and this permission notice appear 13 ! * in supporting documentation. It is provided "as is" without express 13 ! * in supporting documentation. It is provided "as is" without expressed 14 14 ! * or implied warranty. 15 15 ! * … … 17 17 ! 18 18 ! Author(s): Thomas Bretz, 03/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! Author(s): Robert Wagner, 08/2004 <mailto:rwagner@mppmu.mpg.de> 19 20 ! 20 21 ! Copyright: MAGIC Software Development, 2002-2004 … … 225 226 // -------------------------------------------------------------------------- 226 227 // 227 // Snippet to for reading c talog files.228 // Snippet to for reading catalog files. 228 229 // 229 230 TString MAstroCatalog::FindToken(TString &line, Char_t tok) … … 356 357 star->SetRaDec(ra0, dec0, mag); 357 358 star->SetName(name); 359 358 360 if (star->Angle(fRaDec)*TMath::RadToDeg()>fRadiusFOV) 359 361 { … … 692 694 693 695 return add; 696 } 697 698 // -------------------------------------------------------------------------- 699 // 700 // Add an object to the star catalog manually. 701 // 702 Int_t MAstroCatalog::AddObject(Float_t ra, Float_t dec, Float_t mag, TString name) 703 { 704 SetBit(kHasChanged); 705 706 MVector3 *star = new MVector3(); 707 star->SetRaDec(ra, dec, mag); 708 star->SetName(name); 709 710 if (star->Angle(fRaDec)*TMath::RadToDeg()<=fRadiusFOV) { 711 fList.Add(star); 712 } else { 713 delete(star); 714 } 715 716 return 1; 694 717 } 695 718
Note:
See TracChangeset
for help on using the changeset viewer.