Fork me on GitHub

Changeset 358 in svn


Ignore:
Timestamp:
May 6, 2009, 10:21:36 PM (16 years ago)
Author:
Xavier Rouby
Message:

update converters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Delphes.cpp

    r353 r358  
    252252 
    253253  // data converters
    254   DataConverter *converter=NULL;
    255254  cout <<"**                                                                 **"<<endl;
    256255  cout <<"**        ####### Start convertion to TRoot format ########        **"<< endl;
     
    260259      cout <<"**                 StdHEP file format detected                     **"<<endl;
    261260      cout <<"**                This can take several minutes                    **"<< endl;
    262       converter = new STDHEPConverter(inputFileList,outputfilename);//case ntpl file in input list
     261      STDHEPConverter converter(inputFileList,outputfilename);//case ntpl file in input list
    263262    }
    264263  else if(line.length() == 1+line.find_last_of(".lhe"))
     
    266265      cout <<"**                   LHEF file format detected                     **"<<endl;
    267266      cout <<"**                 This can take several minutes                   **"<< endl;
    268       converter = new LHEFConverter(inputFileList,outputfilename);//case ntpl file in input list
     267      LHEFConverter converter(inputFileList,outputfilename);//case ntpl file in input list
    269268    }
    270269  else if(line.length() == 1+line.find_last_of(".root"))
     
    272271      cout <<"**                   h2root file format detected                   **"<<endl;
    273272      cout <<"**                  This can take several minutes                  **"<< endl;
    274       converter = new HEPEVTConverter(inputFileList,outputfilename);//case ntpl file in input list
     273      HEPEVTConverter converter(inputFileList,outputfilename);//case ntpl file in input list
    275274    }
    276275  else if(line.length() == 1+line.find_last_of(".hepmc"))
     
    278277      cout <<"**                HepMC ASCII file format detected                 **"<<endl;
    279278      cout <<"**                  This can take several minutes                  **"<< endl;
    280       converter = new HepMCConverter(inputFileList,outputfilename);
     279      HepMCConverter converter(inputFileList,outputfilename);
    281280    }
    282281  else {
     
    809808  delete JETRUN;
    810809  delete VFD;
    811   delete converter;
    812810 
    813811  //  todo("TODO");
Note: See TracChangeset for help on using the changeset viewer.