/[PAMELA software]/PamelaDigitizer/Pamelagp2Digits.cxx
ViewVC logotype

Diff of /PamelaDigitizer/Pamelagp2Digits.cxx

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

revision 1.12 by mocchiut, Thu Dec 18 17:11:47 2008 UTC revision 1.13 by mocchiut, Tue Aug 11 14:56:31 2009 UTC
# Line 288  int main(int argc, char **argv) Line 288  int main(int argc, char **argv)
288    void *qq = iq;    void *qq = iq;
289     q = (float*)qq;     q = (float*)qq;
290    char *file_in=argv[1];    char *file_in=argv[1];
291    char *file_out = " ";    char *file_out = new char[512];
292      strcpy(file_out," ");
293    char *file_raw;    char *file_raw;
294    
295    Int_t compress = 1;    Int_t compress = 1;
# Line 809  void convert_directory(const char *dir, Line 810  void convert_directory(const char *dir,
810    tree->Write();    tree->Write();
811    
812    cout << "Invoking Digitizer" << endl << flush;    cout << "Invoking Digitizer" << endl << flush;
813    char *ndl[8],*q,*q1;    const char *ndl[8];
814      char *q,*q1;
815    q=(char*)malloc(5 *sizeof(char));    q=(char*)malloc(5 *sizeof(char));
816    q1=(char*)malloc(5 *sizeof(char));    q1=(char*)malloc(5 *sizeof(char));
817    ndl[0]="nspe";    ndl[0]="nspe";
# Line 843  void convert_directory(const char *dir, Line 845  void convert_directory(const char *dir,
845        }        }
846        t=0;        t=0;
847        while(tmp){        while(tmp){
848          q1=ndl[t];          strcpy(q1,ndl[t]);
849          if(q[0]==q1[0] && q[1]==q1[1] && q[2]==q1[2] && q[3]==q1[3]){          if(q[0]==q1[0] && q[1]==q1[1] && q[2]==q1[2] && q[3]==q1[3]){
850            par[t]=tmp;            par[t]=tmp;
851            tmp=0;            tmp=0;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.23