Changeset 8993 for trunk


Ignore:
Timestamp:
07/03/08 16:39:44 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8992 r8993  
    2525     - this made local functions obsolete
    2626     - added new format 20080519 including telescope- and file-number
    27      - simplified the if-clauses testing for version numbers (due to the
    28        initial check only some version numbers allowed anyway)
     27     - simplified the if-clauses testing for version numbers (due to
     28       the initial check only some version numbers allowed anyway)
     29     - check for the combination of telescope-, run- and file-number
     30       to be unique.
    2931
    3032
  • 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.