46 |
printf(" -force to be used to reprocess a file or to process a file\n"); |
printf(" -force to be used to reprocess a file or to process a file\n"); |
47 |
printf(" when already validated the surroundings, it is equivalent to:\n"); |
printf(" when already validated the surroundings, it is equivalent to:\n"); |
48 |
printf(" -remove same -validate same -cleanfrag same -nofrag\n"); |
printf(" -remove same -validate same -cleanfrag same -nofrag\n"); |
49 |
|
printf(" -check performs some test on the GL_RUN table to check its consistency\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"); |
105 |
// |
// |
106 |
Bool_t force = false; |
Bool_t force = false; |
107 |
// |
// |
108 |
|
Bool_t check = false; |
109 |
|
// |
110 |
Int_t i = 0; |
Int_t i = 0; |
111 |
// |
// |
112 |
if ( numinp > 1 ){ |
if ( numinp > 1 ){ |
231 |
// |
// |
232 |
if ( !strcmp(inps[i],"-nofrag") ) nofrag = true; |
if ( !strcmp(inps[i],"-nofrag") ) nofrag = true; |
233 |
// |
// |
234 |
|
if ( !strcmp(inps[i],"-check") ) check = true; |
235 |
|
// |
236 |
i++; |
i++; |
237 |
}; |
}; |
238 |
} else { |
} else { |
416 |
if ( beverbose ) printf(" 12 => Insert TLE elements in the GL_TLE table from file %s \n",tlefilename.Data()); |
if ( beverbose ) printf(" 12 => Insert TLE elements in the GL_TLE table from file %s \n",tlefilename.Data()); |
417 |
WAR[10] = pamDB->populateTLE(); |
WAR[10] = pamDB->populateTLE(); |
418 |
} |
} |
419 |
|
|
420 |
|
if ( check ){ |
421 |
|
//---------------------------------------------- |
422 |
|
//Check GL_RUN table consistency |
423 |
|
//---------------------------------------------- |
424 |
|
if ( beverbose ) printf(" 13 => Check GL_RUN table consistency\n"); |
425 |
|
UInt_t ch = pamDB->Check(); |
426 |
|
if ( !ch ){ |
427 |
|
printf(" GL_RUN table seems ok!\n"); |
428 |
|
} else { |
429 |
|
printf(" Problems found in the GL_RUN table!\n"); |
430 |
|
}; |
431 |
|
}; |
432 |
|
|
433 |
} catch (Int_t exc) { |
} catch (Int_t exc) { |
434 |
signal = exc; |
signal = exc; |