- Timestamp:
- 10/17/06 19:19:10 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/macros
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/insertdataset.C
r8107 r8108 71 71 } 72 72 73 serv.SetI dSummy(dummy);73 serv.SetIsDummy(dummy); 74 74 75 75 cout << "insertdataset" << endl; … … 80 80 81 81 //get source key 82 Int_t sourcekey = serv.Query NameKEY("Source", source.Data(), kFALSE);82 Int_t sourcekey = serv.QueryKeyOfName("Source", source.Data(), kFALSE); 83 83 if (sourcekey<0) 84 84 { -
trunk/MagicSoft/Mars/datacenter/macros/insertsequence.C
r8107 r8108 95 95 //get source key 96 96 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 } 98 104 99 105 //get values for the sequence … … 163 169 { 164 170 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 } 166 178 source=Form("%d",sourcekey); 167 179 }
Note:
See TracChangeset
for help on using the changeset viewer.