Changeset 451 in svn for trunk/Examples
- Timestamp:
- Jul 3, 2009, 6:24:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Examples/Convertors_Only.cpp
r443 r451 173 173 cout <<"** ####### Start conversion to TRoot format ######## **"<< endl; 174 174 175 if(line.length() == 1+line.find_last_of(".hep")) 175 if(line.rfind(".hepmc") < line.length()) 176 { 177 cout <<"** HepMC ASCII file format detected **"<<endl; 178 cout <<"** This can take several minutes **"<< endl; 179 HepMCConverter converter(inputFileList,outputfilename,DET.PDGtable,DET.NEvents); 180 } 181 else if(line.rfind(".hep") < line.length()) 176 182 { 177 183 cout <<"** StdHEP file format detected **"<<endl; 178 184 cout <<"** This can take several minutes **"<< endl; 179 STDHEPConverter converter(inputFileList,outputfilename,DET.PDGtable );//case ntpl file in input list180 } 181 else if(line. length() == 1+line.find_last_of(".lhe"))185 STDHEPConverter converter(inputFileList,outputfilename,DET.PDGtable,DET.NEvents); 186 } 187 else if(line.rfind(".lhe") < line.length()) 182 188 { 183 189 cout <<"** LHEF file format detected **"<<endl; 184 190 cout <<"** This can take several minutes **"<< endl; 185 LHEFConverter converter(inputFileList,outputfilename,DET.PDGtable );//case ntpl file in input list186 } 187 else if(line. length() == 1+line.find_last_of(".root"))191 LHEFConverter converter(inputFileList,outputfilename,DET.PDGtable,DET.NEvents); 192 } 193 else if(line.rfind(".root") < line.length()) 188 194 { 189 195 cout <<"** h2root file format detected **"<<endl; 190 196 cout <<"** This can take several minutes **"<< endl; 191 HEPEVTConverter converter(inputFileList,outputfilename,DET.PDGtable);//case ntpl file in input list 192 } 193 else if(line.length() == 1+line.find_last_of(".hepmc")) 194 { 195 cout <<"** HepMC ASCII file format detected **"<<endl; 196 cout <<"** This can take several minutes **"<< endl; 197 HepMCConverter converter(inputFileList,outputfilename,DET.PDGtable); 197 HEPEVTConverter converter(inputFileList,outputfilename,DET.PDGtable,DET.NEvents); 198 198 } 199 199 else {
Note:
See TracChangeset
for help on using the changeset viewer.