Ignore:
Timestamp:
11/25/05 11:17:51 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/checkfileavail.C

    r7112 r7426  
    7171}
    7272
    73 int checkfileavail(TString sequenceno)
     73int checkfileavail(TString sequencefile)
    7474{
    7575    TEnv env("sql.rc");
     
    8989    TEnv rc("steps.rc");
    9090
    91     cout << "sequ: " << sequenceno.Data() << endl;
    92     TString query(Form("SELECT fRunNumber FROM RunData WHERE fSequenceFirst=%s",
    93                        sequenceno.Data()));
     91    TEnv sequ(sequencefile);
     92
     93    TString runs;
     94    runs = sequ.GetValue("Runs", "");
     95    runs.ReplaceAll(" ", ",");
     96    if (runs.IsNull())
     97    {
     98        cout << "ERROR - No runs in file " << sequencefile << " found." << endl;
     99        return 0;
     100    }
     101
     102    cout << "sequ file: " << sequencefile.Data() << endl;
     103    TString query(Form("SELECT fRunNumber FROM RunData WHERE fRunNumber in (%s)",
     104                       sequencefile.Data()));
    94105
    95106    TSQLResult *res = serv.Query(query);
Note: See TracChangeset for help on using the changeset viewer.