Changeset 18074 for trunk/Mars


Ignore:
Timestamp:
01/04/15 05:04:17 (10 years ago)
Author:
Daniela Dorner
Message:
added possibility to run ganymed for 1 starfile without the need of a dataset file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/analysis/ganymed.C

    r15235 r18074  
    3030}
    3131
    32 int ganymed(const char *dataset, const char *outfile, Float_t ra, Float_t dec)
     32int process(MDirIter &files, const char *outfile, Float_t ra, Float_t dec)
    3333{
     34    /*
    3435    MDirIter files;
    3536    if (files.ReadList(dataset)<=0)
    3637        return 2;
     38    */
    3739    files.Sort();
    3840
     
    449451    {
    450452        TString title = "--  Analysis #";
    451         title += dataset;
     453        title += gSystem->BaseName(outfile);
    452454        title += "  --";
    453455        d->SetTitle(title, kFALSE);
     
    465467    return 0;
    466468}
     469
     470int 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
     480int 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.