| 38 |
printf("\n [-host host] [-user username] [-psw password] [+-all] [+-detector [ detector options ] ]\n"); |
printf("\n [-host host] [-user username] [-psw password] [+-all] [+-detector [ detector options ] ]\n"); |
| 39 |
printf("\n --version print informations about compilation and exit\n"); |
printf("\n --version print informations about compilation and exit\n"); |
| 40 |
printf("\n -h | --help print this help and exit \n"); |
printf("\n -h | --help print this help and exit \n"); |
| 41 |
printf("\n -v | --verbose be verbose [default: print nothing on STDOUT]\n"); |
printf("\n -v | --verbose be verbose [default]\n"); |
| 42 |
|
printf("\n -s | --silent print nothing on STDOUT]\n"); |
| 43 |
printf("\n -idRun ID_RUN: ID number of the run to be processed \n"); |
printf("\n -idRun ID_RUN: ID number of the run to be processed \n"); |
| 44 |
printf("\n -processFile output filename [default ID_RUN.Level2.root]\n"); |
printf("\n -processFile output filename [default ID_RUN.Level2.root]\n"); |
| 45 |
printf("\n -host name for the host [default = mysql://localhost/pamelaprod]\n"); |
printf("\n -host name for the host [default = $PAM_DBHOST or mysql://localhost/pamelaprod]\n"); |
| 46 |
printf("\n -user username for the DB [default = anonymous] \n"); |
printf("\n -user username for the DB [default = $PAM_DBUSER or \"anonymous\"] \n"); |
| 47 |
printf("\n -psw password for the DB [default = \"\"]\n"); |
printf("\n -psw password for the DB [default = $PAM_DBPSW or \"\"]\n"); |
| 48 |
printf("\n +all | +ALL call all detectors software [default]\n"); |
printf("\n +all | +ALL call all detectors software [default]\n"); |
| 49 |
printf("\n -all | -ALL call nothing\n"); |
printf("\n -all | -ALL call nothing\n"); |
| 50 |
printf("\n +detector process detector; detector can be: TOF,TRK,CAL,TRG,ORB,S4,ND,AC,RUN\n"); |
printf("\n +detector process detector; detector can be: TOF,TRK,CAL,TRG,ORB,S4,ND,AC,RUN\n"); |
| 79 |
Int_t NDSGN = 0; |
Int_t NDSGN = 0; |
| 80 |
// |
// |
| 81 |
Bool_t debug = false; |
Bool_t debug = false; |
| 82 |
Bool_t beverbose = false; |
Bool_t beverbose = true; |
| 83 |
Bool_t givenid = false; |
Bool_t givenid = false; |
| 84 |
Bool_t CAL = true; |
Bool_t CAL = true; |
| 85 |
Bool_t TRK = true; |
Bool_t TRK = true; |
| 122 |
TString user = "anonymous"; |
TString user = "anonymous"; |
| 123 |
TString psw = ""; |
TString psw = ""; |
| 124 |
// |
// |
| 125 |
|
// |
| 126 |
|
const char *pamdbhost=gSystem->Getenv("PAM_DBHOST"); |
| 127 |
|
const char *pamdbuser=gSystem->Getenv("PAM_DBUSER"); |
| 128 |
|
const char *pamdbpsw=gSystem->Getenv("PAM_DBPSW"); |
| 129 |
|
if ( strcmp(pamdbhost,"") ) host = pamdbhost; |
| 130 |
|
if ( strcmp(pamdbuser,"") ) user = pamdbuser; |
| 131 |
|
if ( strcmp(pamdbpsw,"") ) psw = pamdbpsw; |
| 132 |
|
// |
| 133 |
|
// |
| 134 |
TFile *processFile = 0; |
TFile *processFile = 0; |
| 135 |
// |
// |
| 136 |
// Checking input parameters |
// Checking input parameters |
| 207 |
found = true; |
found = true; |
| 208 |
beverbose = true; |
beverbose = true; |
| 209 |
}; |
}; |
| 210 |
|
if ( !strcmp(inps[i],"-s") || !strcmp(inps[i],"--silent") ){ |
| 211 |
|
found = true; |
| 212 |
|
beverbose = false; |
| 213 |
|
}; |
| 214 |
// |
// |
| 215 |
if ( !strcmp(inps[i],"-g") || !strcmp(inps[i],"--debug") ){ |
if ( !strcmp(inps[i],"-g") || !strcmp(inps[i],"--debug") ){ |
| 216 |
debug = true; |
debug = true; |