| 71 |
if ( strcmp(pamdbuser,"") ) user = pamdbuser; |
if ( strcmp(pamdbuser,"") ) user = pamdbuser; |
| 72 |
if ( strcmp(pamdbpsw,"") ) psw = pamdbpsw; |
if ( strcmp(pamdbpsw,"") ) psw = pamdbpsw; |
| 73 |
// |
// |
| 74 |
printf(" host %s user %s psw %s \n",host.Data(),user.Data(),psw.Data()); |
// printf(" host %s user %s psw %s \n",host.Data(),user.Data(),psw.Data()); |
| 75 |
// |
// |
| 76 |
TString tzone = "MSK"; |
TString tzone = "MSK"; |
| 77 |
TString tzone2 = "MSK"; |
TString tzone2 = "MSK"; |
| 268 |
error = glrun->Query_GL_RUN(run,dbc); |
error = glrun->Query_GL_RUN(run,dbc); |
| 269 |
glroot->Clear(); |
glroot->Clear(); |
| 270 |
error = glroot->Query_GL_ROOT(glrun->ID_ROOT_L0,dbc); |
error = glroot->Query_GL_ROOT(glrun->ID_ROOT_L0,dbc); |
| 271 |
if ( error ){ |
if ( !glrun->ID_ROOT_L0 ){ |
|
printf(" Error querying the DB! \n"); |
|
|
exit(-4); |
|
|
}; |
|
|
if ( !glrun->ID ){ |
|
| 272 |
printf("\n No run with ID=%u in the DB!\n",run); |
printf("\n No run with ID=%u in the DB!\n",run); |
| 273 |
} else { |
} else { |
| 274 |
|
if ( error ){ |
| 275 |
|
printf(" Error querying the DB! \n"); |
| 276 |
|
exit(-4); |
| 277 |
|
}; |
| 278 |
printf("\n Run %u belongs to file %s \n",run,(glroot->PATH+glroot->NAME).Data()); |
printf("\n Run %u belongs to file %s \n",run,(glroot->PATH+glroot->NAME).Data()); |
| 279 |
}; |
}; |
| 280 |
}; |
}; |