Changeset 8108 for trunk


Ignore:
Timestamp:
10/17/06 19:19:10 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/macros
Files:
2 edited

Legend:

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

    r8107 r8108  
    7171    }
    7272
    73     serv.SetIdSummy(dummy);
     73    serv.SetIsDummy(dummy);
    7474
    7575    cout << "insertdataset" << endl;
     
    8080
    8181    //get source key
    82     Int_t sourcekey = serv.QueryNameKEY("Source", source.Data(), kFALSE);
     82    Int_t sourcekey = serv.QueryKeyOfName("Source", source.Data(), kFALSE);
    8383    if (sourcekey<0)
    8484    {
  • trunk/MagicSoft/Mars/datacenter/macros/insertsequence.C

    r8107 r8108  
    9595    //get source key
    9696    TString sourcename = sequ.GetValue("Source", "");
    97     Int_t sourcekey = serv.QueryNameKEY("Source", sourcename.Data());
     97    Int_t sourcekey = serv.QueryKeyOfName("Source", sourcename.Data(), kFALSE);
     98    if (sourcekey<0)
     99    {
     100        cout << "Error - could not get sourcename from DB -> " << flush;
     101        cout << "maybe you have the wrong sourcename in your datasetfile" << endl;
     102        return 2;
     103    }
    98104
    99105    //get values for the sequence
     
    163169    {
    164170        cout << "new source name: " << sourcename << " -> inserting..." << endl;
    165         sourcekey = serv.QueryNameKEY("Source", sourcename.Data(), kFALSE);
     171        sourcekey = serv.QueryKeyOfName("Source", sourcename.Data(), kFALSE);
     172        if (sourcekey<0)
     173        {
     174            cout << "Error - could not get sourcename from DB -> " << flush;
     175            cout << "maybe you have the wrong sourcename in your datasetfile" << endl;
     176            return 2;
     177        }
    166178        source=Form("%d",sourcekey);
    167179    }
Note: See TracChangeset for help on using the changeset viewer.