198 |
if ( !strcmp(inps[i],"+all") || !strcmp(inps[i],"+ALL") ) { |
if ( !strcmp(inps[i],"+all") || !strcmp(inps[i],"+ALL") ) { |
199 |
dectlist +=" +ALL"; |
dectlist +=" +ALL"; |
200 |
}; |
}; |
201 |
|
if ( !strcmp(inps[i],"+auto") || !strcmp(inps[i],"+AUTO") ) { |
202 |
|
dectlist +=" +AUTO"; |
203 |
|
}; |
204 |
if ( !strcmp(inps[i],"+CAL") ) { |
if ( !strcmp(inps[i],"+CAL") ) { |
205 |
dectlist +=" +CAL"; |
dectlist +=" +CAL"; |
206 |
}; |
}; |
273 |
}; |
}; |
274 |
// |
// |
275 |
myquery.str(""); |
myquery.str(""); |
276 |
myquery << "SET time_zone='+0:00'"; |
myquery << "SET time_zone='+0:00';"; |
277 |
dbc->Query(myquery.str().c_str()); |
delete dbc->Query(myquery.str().c_str()); |
278 |
|
delete dbc->Query("SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"); |
279 |
// |
// |
280 |
RunGlue *rg = new RunGlue(dbc,run,dir,outdir); |
RunGlue *rg = new RunGlue(dbc,run,dir,outdir); |
281 |
// |
// |
282 |
if ( debug ) rg->SetDebug(true); |
if ( debug ) rg->SetDebug(true); |
283 |
|
if ( !dbup ) rg->SetUpgrade(false); |
284 |
rg->SetDList(dectlist); |
rg->SetDList(dectlist); |
285 |
// |
// |
286 |
TList *l = 0; |
TList *l = 0; |
287 |
// |
// |
288 |
TString treelist="+ALL"; |
Int_t RET=0; |
289 |
|
// |
290 |
|
// TString treelist="+AUTO"; |
291 |
// |
// |
292 |
while ( !rg->End() ){ |
while ( !rg->End() ){ |
293 |
// |
// |
306 |
// |
// |
307 |
rg->Clean(); |
rg->Clean(); |
308 |
// |
// |
309 |
|
} else { |
310 |
|
RET = 255; |
311 |
}; |
}; |
312 |
|
} else { |
313 |
|
RET = 255; |
314 |
}; |
}; |
315 |
delete l; |
delete l; |
316 |
// |
// |
322 |
// |
// |
323 |
if ( dbc ) dbc->Close(); |
if ( dbc ) dbc->Close(); |
324 |
// |
// |
325 |
|
if ( debug ) printf(" exit with error code %i \n",RET); |
326 |
|
// |
327 |
printf("\n"); |
printf("\n"); |
328 |
// |
// |
329 |
exit(0); |
exit(RET); |
330 |
} |
} |