MadSpin spinmode option inconsistency

Bug #1876573 reported by Michael Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Undecided
Unassigned

Bug Description

Hello

I'm running MadGraph + MadSpin to study spin correlations in ttbar events.

I prepared an command card (mg_settings.cmd [1]) to set the process card, run card, and madspin card with different options (which I am modifying in my shell script).

I'm executing the following lines on lxplus (using the latest MG version):
source /cvmfs/sft.cern.ch/lcg/views/LCG_95/x86_64-centos7-gcc7-opt/setup.sh
bin/mg5_aMC mg_settings.txt

Unfortunately, the madspin option on/off it is not working due to mismatch between the expected and requested settings (probably in MadSpin/interface_madspin.py file):

When I run with "set spinmode madspin" I get the following error:
InvalidCmd : spinmode can only take one of those 3 value: full/onshell/none

If I run with "set spinmode full" I get the following warning:
value 'full' for entry 'spinmode' is not valid. Preserving previous value: 'madspin'.
allowed values are madspin, none, onshell

I can use:
#set spinmode none
to run with correct spin correlations, but it is less convenient for me.

Another question is how to set up other madspin settings in my mg_settings.cmd file?

I'm running in lxplus7, with a large number of events. Madspin fails to handle with the default folder (full_me), with the following error:
OSError : [Errno 39] Directory not empty: '/afs/cern.ch/work/m/mpitt/...'
I followed the solution proposed in https://bugs.launchpad.net/mg5amcnlo/+bug/1788615, which is the following:
set ms_dir TEST
but this option is not working when I set it in my mg_settings.cmd file.

Can the other Madspin options be readable from the mg_settings.cmd file?

Thank you in advance,
Michael

[1] mg_settings.cmd:
generate p p > t t~
launch
madspin=on
set nevents 100000
#madspin options:
set spinmode madspin
set ms_dir TEST # to allow large number of generated events
decay t > w+ b, w+ > l+ vl
decay t~ > w- b~, w- > l- vl~
done

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi,

You will find the patch (and download of the nightly build) here:
https://bazaar.launchpad.net/~mg5core1/mg5amcnlo/2.7.3/revision/306

For editting the madspin card, the only option (but for the decay mode and the spinmode)
is to use the "edit" command
for example:

edit madspin_card --replace_line='set ms_dir' --after_line=banner set ms_dir TEST_XX
(the after_line argument is only use if they are no line starting by "set ms_dir" in your file)

Therefore your script can be:

generate p p > t t~
launch
madspin=full
set nevents 100000
edit madspin_card --replace_line='set ms_dir' --after_line=banner set ms_dir TEST_XX
decay t > w+ b, w+ > l+ vl
decay t~ > w- b~, w- > l- vl~

Note that you can not use the same TEST_XX for the three mode of madspin.

Cheers,

Olivier

Changed in mg5amcnlo:
status: New → Fix Committed
Changed in mg5amcnlo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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