Changes between Version 11 and Version 12 of Reweight


Ignore:
Timestamp:
Oct 7, 2013, 5:21:21 PM (11 years ago)
Author:
Olivier Mattelaer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Reweight

    v11 v12  
    1313
    1414 == How to get the code
    15  The code is currently (30/06/13) in beta, and is still expect to be modify before the official release (especially on the interface).
     15 The code is currently (30/06/13) in beta.
    1616 In order to download the code, you need to have bazaar install on your computer. Then you can download the code via the command
    1717{{{bzr branch lp:~maddevelopers/madgraph5/2.0.0beta4}}} 
    1818After that in order to update your version. You only need to do:
    1919{{{bzr pull}}}
    20 
    2120 Those functionalities are going to be release in the 2.0.0beta version of the code.
    2221 
    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 {{{
     27The 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 {{{
     42The 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   {{{
     55Do 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.
    2770
    2871 You can also use the madevent interface as explained below:
    2972 
    3073 1. go to the process directory.
    31  2. launch the '''./bin/madevent''' script
     74 2. launch the '''./bin/madevent''' script 
    3275 3. type '''reweight RUN_NAME'''
    3376 4. then you will see the following question: