This is an old revision of the document!
Madweight requires as input a set of datacards and an LHCO file.
A LHCO file is a text file collecting basic info on all the events of the sample.
LHCO files can be converted from LHE files. To do this a script is available from MadGraph website. Download it in the working directory:
mv lhe2lhco.py.txt lhe2lhco.py
LHCO files can converted also from EDM LHE files using a standard tool provided within the CMS framework (ExternalLHEAsciiDumper). Copy it and change the name of the input file:
To convert root files to LHCO files a standard tool does not exist, because it depends on the structure of the user root file. A root/lhco converter script to convert tH analysis root ntuples in lhco file is going to be implemented and it will be posted here as soon as it will be ready.