| 53 |
printf(" when already validated the surroundings, it is equivalent to:\n"); |
printf(" when already validated the surroundings, it is equivalent to:\n"); |
| 54 |
printf(" -remove same -validate same -cleanfrag same -nofrag\n"); |
printf(" -remove same -validate same -cleanfrag same -nofrag\n"); |
| 55 |
printf(" -check performs some test on the GL_RUN table to check its consistency\n"); |
printf(" -check performs some test on the GL_RUN table to check its consistency\n"); |
| 56 |
|
printf(" -checkfrom idrun performs some test on the GL_RUN table to check its consistency starting from run number idrun\n"); |
| 57 |
|
printf(" -checkto idrun performs some test on the GL_RUN table to check its consistency arriving till run number idrun\n"); |
| 58 |
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"); |
| 59 |
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"); |
| 60 |
printf(" -psw password for the DB connection [default = $PAM_DBPSW or \"\"]\n"); |
printf(" -psw password for the DB connection [default = $PAM_DBPSW or \"\"]\n"); |
| 74 |
UInt_t tsync = 0; |
UInt_t tsync = 0; |
| 75 |
UInt_t obt0 = 0; |
UInt_t obt0 = 0; |
| 76 |
UInt_t dwinput = 0; |
UInt_t dwinput = 0; |
| 77 |
|
UInt_t chfrom = 0; |
| 78 |
|
UInt_t chto = 0; |
| 79 |
Long64_t olderthan = -1LL; |
Long64_t olderthan = -1LL; |
| 80 |
// |
// |
| 81 |
// |
// |
| 192 |
}; |
}; |
| 193 |
boot = atoi(inps[i+1]); |
boot = atoi(inps[i+1]); |
| 194 |
}; |
}; |
| 195 |
|
if ( !strcmp(inps[i],"-checkfrom") ) { |
| 196 |
|
if ( numinp-1 < i+1 ){ |
| 197 |
|
usage(); |
| 198 |
|
exit(1); |
| 199 |
|
}; |
| 200 |
|
chfrom = atoi(inps[i+1]); |
| 201 |
|
check = true; |
| 202 |
|
}; |
| 203 |
|
if ( !strcmp(inps[i],"-checkto") ) { |
| 204 |
|
if ( numinp-1 < i+1 ){ |
| 205 |
|
usage(); |
| 206 |
|
exit(1); |
| 207 |
|
}; |
| 208 |
|
chto = atoi(inps[i+1]); |
| 209 |
|
check = true; |
| 210 |
|
}; |
| 211 |
if ( !strcmp(inps[i],"-tsync") ) { |
if ( !strcmp(inps[i],"-tsync") ) { |
| 212 |
if ( numinp-1 < i+1 ){ |
if ( numinp-1 < i+1 ){ |
| 213 |
usage(); |
usage(); |
| 506 |
//Check GL_RUN table consistency |
//Check GL_RUN table consistency |
| 507 |
//---------------------------------------------- |
//---------------------------------------------- |
| 508 |
if ( beverbose ) printf(" 13 => Check GL_RUN table consistency\n"); |
if ( beverbose ) printf(" 13 => Check GL_RUN table consistency\n"); |
| 509 |
UInt_t ch = pamDB->Check(); |
UInt_t ch = pamDB->Check(chfrom,chto); |
| 510 |
if ( !ch ){ |
if ( !ch ){ |
| 511 |
printf(" GL_RUN table seems ok!\n"); |
printf(" GL_RUN table seems ok!\n"); |
| 512 |
} else { |
} else { |