Changeset 245 in svn for trunk/src/STDHEPConverter.cc
- Timestamp:
- Feb 5, 2009, 2:09:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STDHEPConverter.cc
r220 r245 101 101 if(!infile.is_open()) 102 102 { 103 cerr << "** ERROR: Can't open '" << inputFileList << "' for input" << endl; 103 cerr << left << setw(30) <<"** ERROR: Can't open "<<"" 104 << left << setw(20) << inputFileList <<"" 105 << right << setw(19) <<"for input **"<<""<<endl; 106 104 107 exit(1); 105 108 } … … 109 112 if(!infile.good()) break; 110 113 ifstream checking_the_file(filename.c_str()); 111 if(!checking_the_file.good()) { cout << filename << ": file not found\n"; continue;} 114 if(!checking_the_file.good()) 115 { 116 cerr << left << setw(30) <<"** ERROR: Can't find file "<<"" 117 << left << setw(20) << filename <<"" 118 << right << setw(19) <<"for input **"<<""<<endl; 119 continue; 120 } 112 121 else checking_the_file.close(); 113 122 … … 116 125 if(ierr != 0) 117 126 { 118 cerr << "** ERROR: Can't open file for input" <<endl;127 cerr <<"** ERROR: Can't open file for input **"<<endl; 119 128 break; 120 129 } 121 130 122 131 Long64_t allEntries = nevt; 123 cout << "** Input file contains " << allEntries << " entries" << endl;124 132 125 133 if(allEntries > 0) … … 134 142 if(ierr != 0) 135 143 { 136 cerr << "** ERROR: Unexpected end of file after " << entry << " entries" << endl; 144 cerr << left << setw(49) <<"** ERROR: Unexpected end of file after"<<"" 145 << left << setw(10) << entry <<"" 146 << right << setw(10) <<"entries **"<<""<<endl; 137 147 break; 138 148 } … … 162 172 } 163 173 } 174 StdHepXdrEnd(istr); 164 175 } 165 176 treeWriter->Write(); 166 cout << "** Exiting..." << endl;167 177 168 178 delete treeWriter; 169 StdHepXdrEnd(istr);170 179 171 180 }
Note:
See TracChangeset
for help on using the changeset viewer.