Ignore:
Timestamp:
07/03/08 16:39:44 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8992 r8993  
    139139    while (1)
    140140    {
    141         Int_t telnumber = 1;
     141        Int_t telnumber = 1; // FIXME: "NULL"?
    142142        if (version >=200805190)
    143143        {
     
    174174        }
    175175
    176         Int_t filenumber = 0;
     176        Int_t filenumber = 0; // FIXME: "NULL"?
    177177        if (version >=200805190)
    178178        {
     
    181181        }
    182182
    183         if (serv.ExistStr("fRunNumber", "RunData", strng))
    184         {
    185             // FIXME: Maybe we can implement an switch to update mode?
    186             cout << "Run #" << runnumber << " already existing... skipped." << endl;
     183        TString where = Form("((fTelescopeNumber=%d AND fFileNumber=%d) OR"
     184                             "(ISNULL(fTelescopeNumber) AND ISNULL(fFileNumber)))",
     185                             telnumber, filenumber);
     186        if (serv.ExistStr("fRunNumber", "RunData", strng, where))
     187        {
     188            // FIXME: Maybe we can implement a switch to update mode?
     189            cout << "Entry M" << telnumber << ":" << runnumber << "/" << filenumber << " already existing... skipped." << endl;
    187190            strng.ReadLine(fin);
    188191            continue;
Note: See TracChangeset for help on using the changeset viewer.