46 |
printf(" -outdir dir output directory \"dir\"\n"); |
printf(" -outdir dir output directory \"dir\"\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"); |
50 |
printf(" -host name of the DB host [default = $PAM_DBHOST or mysql://localhost/pamelaprod]\n"); |
printf(" -host name of the DB host [default = $PAM_DBHOST or mysql://localhost/pamelaprod]\n"); |
51 |
printf(" -user username for the DB connection [default = $PAM_DBUSER or \"anonymous\"] \n"); |
printf(" -user username for the DB connection [default = $PAM_DBUSER or \"anonymous\"] \n"); |
52 |
printf(" -psw password for the DB connection [default = $PAM_DBPSW or \"\"]\n"); |
printf(" -psw password for the DB connection [default = $PAM_DBPSW or \"\"]\n"); |
75 |
TString psw = ""; |
TString psw = ""; |
76 |
Bool_t debug = false; |
Bool_t debug = false; |
77 |
Bool_t delop = false; |
Bool_t delop = false; |
78 |
|
Bool_t dbup = true; |
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 |
}; |
}; |
111 |
|
if ( !strcmp(inps[i],"-no-DBupdate") ){ |
112 |
|
dbup = false; |
113 |
|
}; |
114 |
if ( !strcmp(inps[i],"-idRun") ) { |
if ( !strcmp(inps[i],"-idRun") ) { |
115 |
if ( numinp-1 < i+1 ) { |
if ( numinp-1 < i+1 ) { |
116 |
amidalausage(); |
amidalausage(); |
293 |
// |
// |
294 |
rg->MergeRootfile(l); |
rg->MergeRootfile(l); |
295 |
// |
// |
296 |
rg->UpdateDB(l); |
if ( dbup ) rg->UpdateDB(l); |
297 |
// |
// |
298 |
if ( delop ) rg->DeleteRunFiles(l); |
if ( delop ) rg->DeleteRunFiles(l); |
299 |
// |
// |