This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
mem:mem [2013/07/03 14:12] – created decosa | mem:mem [2013/07/05 14:44] – decosa | ||
---|---|---|---|
Line 1: | Line 1: | ||
| | ||
- | 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. | + | In order to have MadWeight |
- | It stores info about the type of particles in the event (muon, electron, jet, met) and relative pt, eta, phi, btag, ect. | + | This is the development branch, the most up to date. |
- | More info about the structure of lhco files can be found at: | + | |
- | * http:// | + | |
+ | < | ||
+ | bzr branch lp: | ||
+ | </ | ||
+ | |||
+ | 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 | ||
+ | ./ | ||
+ | generate p p > t h b~ j $$ w+ w-, h > b b~ , t > b l+ vl # generating the process | ||
+ | add process p p > t~ h b j $$ w+ w-, h > b b~ , t~ > b~ l- vl~ # adding the complementary channel | ||
+ | output madweight tHbb_HP | ||
+ | </ | ||
+ | |||
+ | |||
+ | 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, | ||
+ | |||
+ | * __**param_card.dat**__: | ||
+ | * __**run_card.dat**__: | ||
+ | * __**Madweight_card.dat**__: | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | * run_card.dat and param_card.dat have to remain unchanged once the hypothesis is defined. The parameter '' | ||
+ | * Also the lhco file has to be updated each time MadWeight has to be run over a new sample: the lhco file related to the specific sample must be placed in the Events directory and named '' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | A **LHCO** file is a text file collecting basic info on all the events of the sample. | ||
+ | * It stores info about the type of particles in the event (muon, electron, jet, met) and relative pt, eta, phi, btag, ect. | ||
+ | * More info about the structure of LHCO files can be found at: http:// | ||
+ | |||
+ | __**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: | ||
+ | |||
+ | < | ||
+ | wget https:// | ||
+ | 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: | ||
+ | * [[http:// | ||
+ | |||
+ | |||
+ | __**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. | ||
+ |