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"); |
|
printf(" -castor the output directory is a CASTOR path, use RFIO\n"); |
|
47 |
printf(" -dir dir merge all runs in the directory \"dir\"\n"); |
printf(" -dir dir merge all runs in the directory \"dir\"\n"); |
48 |
printf(" -d | -delete delete original DarthVader runs once merged\n"); |
printf(" -d | -delete delete original DarthVader runs once merged\n"); |
49 |
printf(" -no-DBupdate do not update the DB\n"); |
printf(" -no-DBupdate do not update the DB\n"); |
76 |
Bool_t debug = false; |
Bool_t debug = false; |
77 |
Bool_t delop = false; |
Bool_t delop = false; |
78 |
Bool_t dbup = true; |
Bool_t dbup = true; |
|
Bool_t castor = false; |
|
79 |
// |
// |
80 |
const char *pamdbhost=gSystem->Getenv("PAM_DBHOST"); |
const char *pamdbhost=gSystem->Getenv("PAM_DBHOST"); |
81 |
const char *pamdbuser=gSystem->Getenv("PAM_DBUSER"); |
const char *pamdbuser=gSystem->Getenv("PAM_DBUSER"); |
108 |
if ( !strcmp(inps[i],"-d") || !strcmp(inps[i],"-delete") ){ |
if ( !strcmp(inps[i],"-d") || !strcmp(inps[i],"-delete") ){ |
109 |
delop = true; |
delop = true; |
110 |
}; |
}; |
|
if ( !strcmp(inps[i],"-castor") ){ |
|
|
castor = true; |
|
|
}; |
|
111 |
if ( !strcmp(inps[i],"-no-DBupdate") ){ |
if ( !strcmp(inps[i],"-no-DBupdate") ){ |
112 |
dbup = false; |
dbup = false; |
113 |
}; |
}; |
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 |
}; |
}; |
276 |
myquery << "SET time_zone='+0:00'"; |
myquery << "SET time_zone='+0:00'"; |
277 |
dbc->Query(myquery.str().c_str()); |
dbc->Query(myquery.str().c_str()); |
278 |
// |
// |
279 |
RunGlue *rg = new RunGlue(dbc,run,dir,outdir,castor); |
RunGlue *rg = new RunGlue(dbc,run,dir,outdir); |
280 |
// |
// |
281 |
if ( debug ) rg->SetDebug(true); |
if ( debug ) rg->SetDebug(true); |
282 |
rg->SetDList(dectlist); |
rg->SetDList(dectlist); |
283 |
// |
// |
284 |
TList *l = 0; |
TList *l = 0; |
285 |
// |
// |
286 |
TString treelist="+ALL"; |
TString treelist="+AUTO"; |
287 |
// |
// |
288 |
while ( !rg->End() ){ |
while ( !rg->End() ){ |
289 |
// |
// |