23 | | == How to use the code. |
24 | | |
25 | | You have a switch to run the reweight command from the launch/generate_events command. |
26 | | In addition you HAVE TO define/edit the reweight_card.dat, the syntax is explained in the file. |
| 22 | == How to use the code on the flight. |
| 23 | |
| 24 | When running the generation of events (./bin/generate_events from the local directory or "launch" via the mg5 interface) |
| 25 | you will have two questions. The first one is: |
| 26 | {{{ |
| 27 | The following switches determine which programs are run: |
| 28 | 1 Run the pythia shower/hadronization: pythia=NOT INSTALLED |
| 29 | 2 Run PGS as detector simulator: pgs=NOT INSTALLED |
| 30 | 3 Run Delphes as detector simulator: delphes=NOT INSTALLED |
| 31 | 4 Decay particles with the MadSpin module: madspin=OFF |
| 32 | 5 Add weight to events based on coupling parameters: reweight=OFF |
| 33 | Either type the switch number (1 to 5) to change its default setting, |
| 34 | or set any switch explicitly (e.g. type 'madspin=ON' at the prompt) |
| 35 | Type '0', 'auto', 'done' or just press enter when you are done. |
| 36 | [0, 4, 5, auto, done, madspin=ON, madspin=OFF, madspin, reweight=ON, ... ][60s to answer] |
| 37 | > |
| 38 | }}} |
| 39 | As you can see the reweight options is OFF by default, to set it on you can either type "5" (not adviced if you script) or "reweight=ON". |
| 40 | Then you should have: |
| 41 | {{{ |
| 42 | The following switches determine which programs are run: |
| 43 | 1 Run the pythia shower/hadronization: pythia=NOT INSTALLED |
| 44 | 2 Run PGS as detector simulator: pgs=NOT INSTALLED |
| 45 | 3 Run Delphes as detector simulator: delphes=NOT INSTALLED |
| 46 | 4 Decay particles with the MadSpin module: madspin=OFF |
| 47 | 5 Add weight to events based on coupling parameters: reweight=ON |
| 48 | Either type the switch number (1 to 5) to change its default setting, |
| 49 | or set any switch explicitly (e.g. type 'madspin=ON' at the prompt) |
| 50 | Type '0', 'auto', 'done' or just press enter when you are done. |
| 51 | [0, 4, 5, auto, done, madspin=ON, madspin=OFF, madspin, reweight=ON, ... ][60s to answer] |
| 52 | }}} |
| 53 | Then the second question is (after that you just press enter on that question): |
| 54 | {{{ |
| 55 | Do you want to edit a card (press enter to bypass editing)? |
| 56 | 1 / param : param_card.dat |
| 57 | 2 / run : run_card.dat |
| 58 | 3 / reweight : reweight_card.dat |
| 59 | you can also |
| 60 | - enter the path to a valid card or banner. |
| 61 | - use the 'set' command to modify a parameter directly. |
| 62 | The set option works only for param_card and run_card. |
| 63 | Type 'help set' for more information on this command. |
| 64 | [0, done, 1, param, 2, run, 3, reweight, enter path][60s to answer] |
| 65 | }}} |
| 66 | You '''HAVE TO define/edit''' the reweight_card.dat, the syntax is explained in the file. |
| 67 | The default file is basically empty and will make the re-weighting to crash since both theoretical hypothesis are identical. |
| 68 | |
| 69 | == How to use the code afterwards. |