Changeset 9292 for trunk/MagicSoft/Mars/mastro
- Timestamp:
- 02/03/09 13:28:09 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mastro
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc
r8999 r9292 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.3 1 2008-07-14 19:59:08 tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.32 2009-02-03 13:27:58 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 169 169 using namespace std; 170 170 171 // Datacenter default path for catalogs 172 const TString MAstroCatalog::kDefaultPath="/magic/datacenter/setup"; 173 171 174 // -------------------------------------------------------------------------- 172 175 // … … 281 284 gLog << inf << "Reading Xephem catalog: " << catalog << endl; 282 285 286 gSystem->ExpandPathName(catalog); 287 if (gSystem->AccessPathName(catalog, kReadPermission)) 288 { 289 gLog << inf2 << "Searching Xephem catalog " << catalog << " in " << kDefaultPath << endl; 290 catalog.Prepend(kDefaultPath); 291 } 292 283 293 MZlib fin(catalog); 284 294 if (!fin) … … 362 372 gLog << inf << "Reading NGC2000 catalog: " << catalog << endl; 363 373 374 gSystem->ExpandPathName(catalog); 375 if (gSystem->AccessPathName(catalog, kReadPermission)) 376 { 377 gLog << inf2 << "Searching NGC2000 catalog " << catalog << " in " << kDefaultPath << endl; 378 catalog.Prepend(kDefaultPath); 379 } 380 364 381 MZlib fin(catalog); 365 382 if (!fin) … … 425 442 { 426 443 gLog << inf << "Reading Bright Star Catalog (BSC5) catalog: " << catalog << endl; 444 445 gSystem->ExpandPathName(catalog); 446 if (gSystem->AccessPathName(catalog, kReadPermission)) 447 { 448 gLog << inf2 << "Searching Bright Star catalog " << catalog << " in " << kDefaultPath << endl; 449 catalog.Prepend(kDefaultPath); 450 } 427 451 428 452 MZlib fin(catalog); … … 497 521 { 498 522 gLog << inf << "Reading Heasarc PPM catalog: " << catalog << endl; 523 524 gSystem->ExpandPathName(catalog); 525 if (gSystem->AccessPathName(catalog, kReadPermission)) 526 { 527 gLog << inf2 << "Searching Heasarc PPM catalog " << catalog << " in " << kDefaultPath << endl; 528 catalog.Prepend(kDefaultPath); 529 } 499 530 500 531 MZlib fin(catalog); … … 601 632 602 633 gLog << inf << "Reading MAstroCatalog compressed catalog: " << catalog << endl; 634 635 gSystem->ExpandPathName(catalog); 636 if (gSystem->AccessPathName(catalog, kReadPermission)) 637 { 638 gLog << inf2 << "Searching MAstroCatalog comressed catalog " << catalog << " in " << kDefaultPath << endl; 639 catalog.Prepend(kDefaultPath); 640 } 603 641 604 642 MZlib fin(catalog); -
trunk/MagicSoft/Mars/mastro/MAstroCatalog.h
r8907 r9292 34 34 { 35 35 private: 36 static const TString kDefaultPath; //! Datacenter default path for catalogs 37 36 38 Double_t fLimMag; // [1] Limiting Magnitude 37 39 Double_t fRadiusFOV; // [deg] Radius of Field of View
Note:
See TracChangeset
for help on using the changeset viewer.