/[PAMELA software]/DarthVader/RunInfo/src/RunInfoLevel2.cpp
ViewVC logotype

Diff of /DarthVader/RunInfo/src/RunInfoLevel2.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mocchiut, Fri May 19 13:15:47 2006 UTC revision 1.2 by mocchiut, Tue Sep 5 13:21:11 2006 UTC
# Line 55  int main(int numinp, char *inps[]){ Line 55  int main(int numinp, char *inps[]){
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;
# Line 79  int main(int numinp, char *inps[]){ Line 79  int main(int numinp, char *inps[]){
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 ){
# Line 131  int main(int numinp, char *inps[]){ Line 130  int main(int numinp, char *inps[]){
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);    
# Line 149  int main(int numinp, char *inps[]){ Line 149  int main(int numinp, char *inps[]){
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      //      //

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23