/[PAMELA software]/PamelaLevel2/src/PamLevel2.cpp
ViewVC logotype

Diff of /PamelaLevel2/src/PamLevel2.cpp

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

revision 1.24 by pam-fi, Thu Mar 15 12:18:51 2007 UTC revision 1.25 by mocchiut, Thu Mar 15 13:42:36 2007 UTC
# Line 999  TList*  PamLevel2::GetListOfLevel2Files( Line 999  TList*  PamLevel2::GetListOfLevel2Files(
999  //    char *fullpath;  //    char *fullpath;
1000  //    const char *fullpath;  //    const char *fullpath;
1001            
1002      // if no input file list is given:        // if input file list is given:    
1003      if ( flisttxt != "" ){      if ( flisttxt != "" ){
1004                    
1005  //      if( !gSystem->IsFileInIncludePath(flisttxt,&fullpath) ){          //      if( !gSystem->IsFileInIncludePath(flisttxt,&fullpath) ){        
# Line 1009  TList*  PamLevel2::GetListOfLevel2Files( Line 1009  TList*  PamLevel2::GetListOfLevel2Files(
1009  //      }        //      }      
1010  //      flisttxt = fullpath;  //      flisttxt = fullpath;
1011    
1012          if ( !flisttxt.EndsWith(".root") ){
1013          flisttxt = gSystem->ConcatFileName(gSystem->DirName(flisttxt),gSystem->BaseName(flisttxt));          flisttxt = gSystem->ConcatFileName(gSystem->DirName(flisttxt),gSystem->BaseName(flisttxt));
1014    
1015          if( !gSystem->ChangeDirectory(ddir) ){          if( !gSystem->ChangeDirectory(ddir) ){
# Line 1049  TList*  PamLevel2::GetListOfLevel2Files( Line 1050  TList*  PamLevel2::GetListOfLevel2Files(
1050  //          };  //          };
1051          };          };
1052          in.close();          in.close();
1053                  } else {
1054              char *fullpath = gSystem->ConcatFileName(gSystem->DirName(flisttxt),gSystem->BaseName(flisttxt));
1055              contents->Add(new TSystemFile(fullpath,gSystem->DirName(fullpath)));// add file to the list
1056              delete fullpath;
1057          };      
1058      }else{      }else{
1059                    
1060          cout << "No input file list given."<<endl;          cout << "No input file list given."<<endl;

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.23