KeyError : 'xdxdx_ll' Computing sigmav with method: madevent

Bug #1971961 reported by Mattia Di Mauro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadDM
Fix Committed
High
Daniele Massaro

Bug Description

I am running the model DMsimp_s_spin1 using the following commands:

####################
import model DMsimp_s_spin1
define darkmatter xd
generate relic_density
add direct_detection
add indirect_detection
output Spin1_06052022_sigmav
launch Spin1_06052022_sigmav
####################

Then I calculate only the sigmav:

####################
The following switches determine which programs are run:
/==================== Description ====================|=============== values ===============|======== other options =========\
| 1. Compute the Relic Density | relic = OFF | ON |
| 2. Compute direct(ional) detection | direct = OFF | directional|direct |
| 3. Compute indirect detection/flux (cont spectrum) | indirect = sigmav | flux_source|flux_earth|OFF |
| 4. Compute indirect detection in aX (line spectrum) | spectral = OFF | Please install module |
| 5. Run Multinest scan | nestscan = OFF | Please install module |
\=============================================================================================================================/
####################

I set:

####################
set MXd 500
set sigmav_method = madevent
set precise
####################

I obtain the following error:

####################
Command "launch Spin1_06052022_sigmav" interrupted with error:
KeyError : 'xdxdx_ll'
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.
####################

The same run for the model DMsimp_s_spin0 works!

You can find in the attached zip file the Cards folder with the MG5_debug file.
Thanks for the consideration!

Related branches

Revision history for this message
Mattia Di Mauro (mdimauro) wrote :
Changed in maddm:
assignee: nobody → Daniele Massaro (dmassaro)
Changed in maddm:
status: New → Triaged
importance: Undecided → High
Changed in maddm:
status: Triaged → Fix Committed
Revision history for this message
Daniele Massaro (dmassaro) wrote :

Hi Mattia,

I committed a fix in the lp:~maddm/maddm/process_keys which you can download.

The main issue is that MadGraph automatically groups different subprocesses when it is faster to compute them together. So they appear like dmdm_ll (for leptons) and dmdm_vlvl (for neutrinos). So far it is not possible to translate back the key name to one of a generated process.

Cheers.
--
Daniele

Revision history for this message
Mattia Di Mauro (mdimauro) wrote :

Hi Daniele,

thanks for the help and to have committed a fix.
I am quite new of the bzr system.
I have installed it and done bzr branch lp:~maddm/maddm/process_keys.
I think I downloaded correctly. Should I reinstall maddm?
How can I see the available branches (I am more used to github)?
Is there a way to move from the branch to the master version?
Thanks for the consideration.

Revision history for this message
Mattia Di Mauro (mdimauro) wrote :

I tried to rerun the example and getting the same error so I think I did not get correctly the branch with the fix. Can you give me some guidance how to have the fix working?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1971961] KeyError : 'xdxdx_ll' Computing sigmav with method: madevent

you can do
rm -rf PLUGIN/maddm
cd PLUGIN
bzr branch lp:~maddm/maddm/process_keys maddm

and you should have it.

Cheers,

Olivier

> On 20 May 2022, at 10:57, Mattia Di Mauro <email address hidden> wrote:
>
> I tried to rerun the example and getting the same error so I think I did
> not get correctly the branch with the fix. Can you give me some guidance
> how to have the fix working?
>
> --
> You received this bug notification because you are a member of maddm,
> which is subscribed to MadDM.
> https://bugs.launchpad.net/bugs/1971961
>
> Title:
> KeyError : 'xdxdx_ll' Computing sigmav with method: madevent
>
> Status in MadDM:
> Fix Committed
>
> Bug description:
> I am running the model DMsimp_s_spin1 using the following commands:
>
> ####################
> import model DMsimp_s_spin1
> define darkmatter xd
> generate relic_density
> add direct_detection
> add indirect_detection
> output Spin1_06052022_sigmav
> launch Spin1_06052022_sigmav
> ####################
>
> Then I calculate only the sigmav:
>
> ####################
> The following switches determine which programs are run:
> /==================== Description ====================|=============== values ===============|======== other options =========\
> | 1. Compute the Relic Density | relic = OFF | ON |
> | 2. Compute direct(ional) detection | direct = OFF | directional|direct |
> | 3. Compute indirect detection/flux (cont spectrum) | indirect = sigmav | flux_source|flux_earth|OFF |
> | 4. Compute indirect detection in aX (line spectrum) | spectral = OFF | Please install module |
> | 5. Run Multinest scan | nestscan = OFF | Please install module |
> \=============================================================================================================================/
> ####################
>
> I set:
>
> ####################
> set MXd 500
> set sigmav_method = madevent
> set precise
> ####################
>
> I obtain the following error:
>
> ####################
> Command "launch Spin1_06052022_sigmav" interrupted with error:
> KeyError : 'xdxdx_ll'
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
> ####################
>
> The same run for the model DMsimp_s_spin0 works!
>
> You can find in the attached zip file the Cards folder with the MG5_debug file.
> Thanks for the consideration!
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/maddm/+bug/1971961/+subscriptions
>

Revision history for this message
Daniele Massaro (dmassaro) wrote :

Hi Mattia,

you download the branch with `bzr branch lp:~maddm/maddm/process_keys` as you did.
This will create a directory which is called process_keys in the current working directory.
In order to use that branch as the new maddm, you need to substitute the content of the directory $madgraph_path/PLUGIN/maddm with the content of process_keys.

This is what I usually do (I switch the maddm version between branches by soft linking the maddm directory in the madgraph folder with the branch directory which I keep in another folder).
I am also not acquainted with the bazaar branch management yet, so maybe @olivier could help in case.

Cheers.
--
Daniele

Revision history for this message
Mattia Di Mauro (mdimauro) wrote :

Thanks for the suggestions. It works!
As usual many thanks for your help!
I really appreciate it!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.