Changeset 18074 for trunk/Mars/fact
- Timestamp:
- 01/04/15 05:04:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/analysis/ganymed.C
r15235 r18074 30 30 } 31 31 32 int ganymed(const char *dataset, const char *outfile, Float_t ra, Float_t dec)32 int process(MDirIter &files, const char *outfile, Float_t ra, Float_t dec) 33 33 { 34 /* 34 35 MDirIter files; 35 36 if (files.ReadList(dataset)<=0) 36 37 return 2; 38 */ 37 39 files.Sort(); 38 40 … … 449 451 { 450 452 TString title = "-- Analysis #"; 451 title += dataset;453 title += gSystem->BaseName(outfile); 452 454 title += " --"; 453 455 d->SetTitle(title, kFALSE); … … 465 467 return 0; 466 468 } 469 470 int ganymed(const char *dataset, const char *outfile, Float_t ra, Float_t dec) 471 { 472 MDirIter files; 473 if (files.ReadList(dataset)<=0) 474 return 2; 475 files.Sort(); 476 return process(files, outfile, ra, dec); 477 } 478 479 480 int ganymed(Float_t ra, Float_t dec, const char *starfile, const char *outfile) 481 { 482 MDirIter files; 483 files.AddFile(starfile); 484 return process(files, outfile, ra, dec); 485 } 486 487
Note:
See TracChangeset
for help on using the changeset viewer.