Skip to content

Switches change state when running bin/generate_events.py multiple times after quitting #55

Description

@Qubitol

Generate a random process, like

generate g g > t t~
output TEST

Then go to TEST/ and

./bin/generate_events

This will show the following question:

The following switches determine which programs are run:
/=================== Description ===================|================ values =================|======================== other options ========================\
| 1. Choose the shower/hadronization program        |        shower = OFF                     |     Pythia8                                                   |
| 2. Choose the detector simulation program         |      detector = Not Avail.              |     Please install module                                     |
| 3. Choose an analysis package (plot/convert)      |      analysis = Not Avail.              |     Please install module                                     |
| 4. Decay onshell particles                        |       madspin = OFF                     |     ON|onshell|madspin|full|PA|none|madspin_v1|onshell_v1     |
| 5. Add weights to events for new hypp.            |      reweight = OFF                     |     ON|density                                                |
\=============================================================================================================================================================/
 You can also edit the following cards:
/------------------------------------------------------------\
|  6. param : param_card.dat                                 |
|  7. run   : run_card.toml                                  |
\------------------------------------------------------------/
 you can also
   - enter the path to a valid card or banner.
   - use the 'set' command to modify a parameter directly.

>

If user quits (it does not happen when it gives ok and goes ahead with the generation), and then re-runs:

./bin/generate_events

Now the question shows:

The following switches determine which programs are run:
/=================== Description ===================|================ values =================|======================== other options =========================\
| 1. Choose the shower/hadronization program        |        shower = Pythia8                 |     OFF                                                        |
| 2. Choose the detector simulation program         |      detector = Not Avail.              |     Please install module                                      |
| 3. Choose an analysis package (plot/convert)      |      analysis = Not Avail.              |     Please install module                                      |
| 4. Decay onshell particles                        |       madspin = ON                      |     onshell|madspin|full|PA|none|madspin_v1|onshell_v1|OFF     |
| 5. Add weights to events for new hypp.            |      reweight = ON                      |     density|OFF                                                |
\==============================================================================================================================================================/
 You can also edit the following cards:
/------------------------------------------------------------\
|  6. param    : param_card.dat                              |
|  7. run      : run_card.toml                               |
|  8. pythia8  : pythia8_card.dat                            |
|  9. madspin  : madspin_card.dat                            |
|  10. reweight : reweight_card.dat                          |
\------------------------------------------------------------/
 you can also
   - enter the path to a valid card or banner.
   - use the 'set' command to modify a parameter directly.

>

As you can see, all the installed switches changed state (shower, madspin, and reweight in this example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions