| 44 |
printf(" -g | --debug set debug flag\n"); |
printf(" -g | --debug set debug flag\n"); |
| 45 |
printf(" -idRun run merge all runs in the directory which have the same date of run \"run\"\n"); |
printf(" -idRun run merge all runs in the directory which have the same date of run \"run\"\n"); |
| 46 |
printf(" -outdir dir output directory \"dir\"\n"); |
printf(" -outdir dir output directory \"dir\"\n"); |
| 47 |
|
printf(" -castor the output directory is a CASTOR path, use RFIO\n"); |
| 48 |
printf(" -dir dir merge all runs in the directory \"dir\"\n"); |
printf(" -dir dir merge all runs in the directory \"dir\"\n"); |
| 49 |
printf(" -d | -delete delete original DarthVader runs once merged\n"); |
printf(" -d | -delete delete original DarthVader runs once merged\n"); |
| 50 |
printf(" -no-DBupdate do not update the DB\n"); |
printf(" -no-DBupdate do not update the DB\n"); |
| 77 |
Bool_t debug = false; |
Bool_t debug = false; |
| 78 |
Bool_t delop = false; |
Bool_t delop = false; |
| 79 |
Bool_t dbup = true; |
Bool_t dbup = true; |
| 80 |
|
Bool_t castor = false; |
| 81 |
// |
// |
| 82 |
const char *pamdbhost=gSystem->Getenv("PAM_DBHOST"); |
const char *pamdbhost=gSystem->Getenv("PAM_DBHOST"); |
| 83 |
const char *pamdbuser=gSystem->Getenv("PAM_DBUSER"); |
const char *pamdbuser=gSystem->Getenv("PAM_DBUSER"); |
| 110 |
if ( !strcmp(inps[i],"-d") || !strcmp(inps[i],"-delete") ){ |
if ( !strcmp(inps[i],"-d") || !strcmp(inps[i],"-delete") ){ |
| 111 |
delop = true; |
delop = true; |
| 112 |
}; |
}; |
| 113 |
|
if ( !strcmp(inps[i],"-castor") ){ |
| 114 |
|
castor = true; |
| 115 |
|
}; |
| 116 |
if ( !strcmp(inps[i],"-no-DBupdate") ){ |
if ( !strcmp(inps[i],"-no-DBupdate") ){ |
| 117 |
dbup = false; |
dbup = false; |
| 118 |
}; |
}; |
| 278 |
myquery << "SET time_zone='+0:00'"; |
myquery << "SET time_zone='+0:00'"; |
| 279 |
dbc->Query(myquery.str().c_str()); |
dbc->Query(myquery.str().c_str()); |
| 280 |
// |
// |
| 281 |
RunGlue *rg = new RunGlue(dbc,run,dir,outdir); |
RunGlue *rg = new RunGlue(dbc,run,dir,outdir,castor); |
| 282 |
// |
// |
| 283 |
if ( debug ) rg->SetDebug(true); |
if ( debug ) rg->SetDebug(true); |
| 284 |
rg->SetDList(dectlist); |
rg->SetDList(dectlist); |