This is an old revision of the document!
In order to have MadWeight on the machine just check out it via bazaar (bazaar is installed on our tier 3). This is the development branch, the most up to date.
bzr branch lp:~maddevelopers/madgraph5/madweight_mc_perm
Once MadWeight is on the working machine, the first step is to calculate the matrix elements for the process to consider: the hypothesis HP. It is possible to it by launching MadGraph and defining the hypothesis process.
cd madweight_mc_perm
./bin/mdg5
# launching MadGraphgenerate p p > t h b~ j $$ w+ w-, h > b b~ , t > b l+ vl
# generating the processadd process p p > t~ h b j $$ w+ w-, h > b b~ , t~ > b~ l- vl~
# adding the complementary channeloutput madweight tHbb_HP
# saving the output in the tHbb folder (tHbb_HP folder will be automatically created)Madweight requires as input a set of datacards and an LHCO file. Datacards are stored in the sundirectory Cards of the created folder tHbb_HP. The datacards to customize are three: param_card.dat, run_card.dat and Madweight_card.dat
A LHCO file is a text file collecting basic info on all the events of the sample.
LHE to LHCO: 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
EDM LHE to LHCO: 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:
ROOT to LHCO: 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.