55 |
int nul = 0; |
int nul = 0; |
56 |
Int_t error = 0; |
Int_t error = 0; |
57 |
Bool_t beverbose = false; |
Bool_t beverbose = false; |
58 |
ULong64_t run = 0; |
UInt_t run = 0; |
59 |
TString filename; |
TString filename; |
60 |
TString processFolder = "runinfoFolder"; |
TString processFolder = "runinfoFolder"; |
61 |
TSQLServer *dbc = 0; |
TSQLServer *dbc = 0; |
79 |
exit(-3); |
exit(-3); |
80 |
}; |
}; |
81 |
givenid = true; |
givenid = true; |
82 |
char *pEnd; |
run = (UInt_t)atoll(inps[i+1]); |
|
run = strtoull(inps[i+1],&pEnd,0); |
|
83 |
}; |
}; |
84 |
if ( !strcmp(inps[i],"-processFile") ) { |
if ( !strcmp(inps[i],"-processFile") ) { |
85 |
if ( numinp-1 < i+1 ){ |
if ( numinp-1 < i+1 ){ |
130 |
// |
// |
131 |
printf("\nConnecting to database... \n"); |
printf("\nConnecting to database... \n"); |
132 |
// |
// |
133 |
dbc = TSQLServer::Connect("mysql://localhost/pamelaprod","anonymous",""); |
// dbc = TSQLServer::Connect("mysql://localhost/","anonymous",""); |
134 |
// |
dbc = TSQLServer::Connect("mysql://srv-g2-01.ts.infn.it/pamelaflightnew","root","Calo0%Ts"); |
135 |
|
// |
136 |
if( !dbc ) { |
if( !dbc ) { |
137 |
printf(" RunInfo - ERROR: problems connecting to the DB (check username and passwd), exiting...\n\n"); |
printf(" RunInfo - ERROR: problems connecting to the DB (check username and passwd), exiting...\n\n"); |
138 |
exit(-2); |
exit(-2); |
149 |
// |
// |
150 |
stringstream name; |
stringstream name; |
151 |
name.str(""); |
name.str(""); |
152 |
if ( run != 0ULL ){ |
if ( run != 0 ){ |
153 |
// |
// |
154 |
// Run is not 0, we must process only one run . |
// Run is not 0, we must process only one run . |
155 |
// |
// |