/[PAMELA software]/DarthVader/ToFLevel2/src/TimeOfFlightLevel2.cpp
ViewVC logotype

Diff of /DarthVader/ToFLevel2/src/TimeOfFlightLevel2.cpp

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

revision 1.1 by mocchiut, Sat Jun 17 12:14:56 2006 UTC revision 1.3 by pam-fi, Tue Nov 29 15:20:16 2011 UTC
# Line 7  Line 7 
7  //  //
8  // ROOT headers  // ROOT headers
9  //  //
10    #include <TFile.h>
11  #include <TString.h>  #include <TString.h>
12  #include <TSQLServer.h>  #include <TSQLServer.h>
13  //  //
# Line 48  int main(int numinp, char *inps[]){ Line 49  int main(int numinp, char *inps[]){
49    int nul = 0;    int nul = 0;
50    Int_t error = 0;    Int_t error = 0;
51    Bool_t beverbose = false;    Bool_t beverbose = false;
52    ULong64_t run = 0;    UInt_t run = 0;
53    TString filename="";    TString filename="";
54    TString processFolder;    TString processFolder;
55    TString outdir = "./";    TString outdir = "./";
# Line 78  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],"-outDir") ) {        if ( !strcmp(inps[i],"-outDir") ) {
85          if ( numinp-1 < i+1 ){          if ( numinp-1 < i+1 ){
# Line 191  int main(int numinp, char *inps[]){ Line 191  int main(int numinp, char *inps[]){
191    //    //
192    printf("\nClose the connection to the database... \n");    printf("\nClose the connection to the database... \n");
193    dbc->Close();    dbc->Close();
194      delete dbc;
195      dbc = 0;
196    printf("...connection terminated!\n\n");      printf("...connection terminated!\n\n");  
197    //    //
198    // 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