385 |
Long64_t maxsize = 10000000000LL; |
Long64_t maxsize = 10000000000LL; |
386 |
// |
// |
387 |
Target = TFile::Open((this->GetFilename()).Data(), "RECREATE" ); |
Target = TFile::Open((this->GetFilename()).Data(), "RECREATE" ); |
388 |
fastMethod = kTRUE; |
//fastMethod = kTRUE; |
389 |
//fastMethod = kFALSE; |
fastMethod = kFALSE; |
390 |
// |
// |
391 |
// |
// |
392 |
if ( !Target || Target->IsZombie()) { |
if ( !Target || Target->IsZombie()) { |
434 |
// |
// |
435 |
UInt_t ll = 0; |
UInt_t ll = 0; |
436 |
UInt_t idl2 = 0; |
UInt_t idl2 = 0; |
437 |
|
UInt_t idr = 0; |
438 |
// |
// |
439 |
// |
// |
440 |
myquery.str(""); |
myquery.str(""); |
441 |
myquery << "insert into GL_ROOT (ID_RAW,PATH,NAME) values (4294967295,'" << outdir.Data() << "','" << ((TString)gSystem->BaseName(this->GetFilename())).Data() << "');"; |
myquery << "select ID from GL_RAW where NAME='level2 files';"; |
442 |
|
if ( DebugMode() ) printf(" query is %s \n",myquery.str().c_str()); |
443 |
|
// |
444 |
|
pResult = dbc->Query(myquery.str().c_str()); |
445 |
|
if ( !pResult ){ |
446 |
|
printf(" ERROR QUERYING ON DB!\n"); |
447 |
|
return; |
448 |
|
}; |
449 |
|
Row = pResult->Next(); |
450 |
|
if( Row == NULL ){ |
451 |
|
printf(" ERROR QUERYING THE DB!\n"); |
452 |
|
return; |
453 |
|
} else { |
454 |
|
idr = (UInt_t)atoll(Row->GetField(0)); |
455 |
|
}; |
456 |
|
// |
457 |
|
myquery.str(""); |
458 |
|
myquery << "insert into GL_ROOT (ID_RAW,PATH,NAME) values (" << idr << ",'" << outdir.Data() << "','" << ((TString)gSystem->BaseName(this->GetFilename())).Data() << "');"; |
459 |
if ( DebugMode() ) printf(" query is %s \n",myquery.str().c_str()); |
if ( DebugMode() ) printf(" query is %s \n",myquery.str().c_str()); |
460 |
// |
// |
461 |
pResult = dbc->Query(myquery.str().c_str()); |
pResult = dbc->Query(myquery.str().c_str()); |