Changeset 344 in svn
- Timestamp:
- Apr 28, 2009, 1:07:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r321 r344 255 255 cout <<"** ####### Start convertion to TRoot format ######## **"<< endl; 256 256 257 if( strstr(line.c_str(),".hep"))257 if(line.length() == 1+line.find_last_of(".hep")) 258 258 { 259 259 cout <<"** StdHEP file format detected **"<<endl; … … 261 261 converter = new STDHEPConverter(inputFileList,outputfilename);//case ntpl file in input list 262 262 } 263 else if( strstr(line.c_str(),".lhe"))263 else if(line.length() == 1+line.find_last_of(".lhe")) 264 264 { 265 265 cout <<"** LHEF file format detected **"<<endl; … … 267 267 converter = new LHEFConverter(inputFileList,outputfilename);//case ntpl file in input list 268 268 } 269 else if( strstr(line.c_str(),".root"))269 else if(line.length() == 1+line.find_last_of(".root")) 270 270 { 271 271 cout <<"** h2root file format detected **"<<endl; 272 272 cout <<"** This can take several minutes **"<< endl; 273 273 converter = new HEPEVTConverter(inputFileList,outputfilename);//case ntpl file in input list 274 } 275 else if(line.length() == 1+line.find_last_of(".hepmc")) 276 { 277 cout <<"** hepmc file format detected **"<<endl; 278 cout <<"** Delphes can not yet used this format **"<<endl; 279 return -1; 274 280 } 275 281 else {
Note:
See TracChangeset
for help on using the changeset viewer.