/[PAMELA software]/DarthVader/CalorimeterLevel2/src/CalorimeterLevel2.cpp
ViewVC logotype

Diff of /DarthVader/CalorimeterLevel2/src/CalorimeterLevel2.cpp

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

revision 1.1 by mocchiut, Fri May 19 13:15:50 2006 UTC revision 1.3 by pam-fi, Tue Nov 29 13:50:11 2011 UTC
# Line 19  Line 19 
19  //  //
20  // ROOT headers  // ROOT headers
21  //  //
22    #include <TFile.h>
23  #include <TString.h>  #include <TString.h>
24  #include <TSQLServer.h>  #include <TSQLServer.h>
25  //  //
# Line 60  int main(int numinp, char *inps[]){ Line 61  int main(int numinp, char *inps[]){
61    Int_t error = 0;    Int_t error = 0;
62    TFile *processFile =0;    TFile *processFile =0;
63    Bool_t beverbose = false;    Bool_t beverbose = false;
64    ULong64_t run = 0;    UInt_t run = 0;
65    TString filename;    TString filename;
66    TString processFolder;    TString processFolder;
67    TString outDir="./";    TString outDir="./";
# Line 90  int main(int numinp, char *inps[]){ Line 91  int main(int numinp, char *inps[]){
91            exit(-3);            exit(-3);
92          };          };
93          givenid = true;          givenid = true;
94          char *pEnd;              run = (UInt_t)atoll(inps[i+1]);
         run = strtoull(inps[i+1],&pEnd,0);        
95        };        };
96        if ( !strcmp(inps[i],"-processFile") ) {        if ( !strcmp(inps[i],"-processFile") ) {
97          if ( numinp-1 < i+1 ){          if ( numinp-1 < i+1 ){
# Line 194  int main(int numinp, char *inps[]){ Line 194  int main(int numinp, char *inps[]){
194    //    //
195    printf("\nClose the connection to the database... \n");    printf("\nClose the connection to the database... \n");
196    dbc->Close();    dbc->Close();
197      delete dbc;
198      dbc = 0;
199    printf("...connection terminated!\n\n");      printf("...connection terminated!\n\n");  
200    //    //
201    // Close redirection if the case.    // Close redirection if the case.

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

  ViewVC Help
Powered by ViewVC 1.1.23