Simplest way to run pre-made MadGraph cards

Asked by Vichayanun Wachirapusitanand

Hi,

I would like to generate private production using MadGraph based on a given set of MadGraph cards that looks like this:

https://github.com/cms-sw/genproductions/tree/421fdb3d061157fb31029fee52d00676d36d893c/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/TTTT_5f_NLO

For now I would like to generate this private production on my local cluster and not using CMS Connect or anything like that. However, I can't seem to find any tutorial that explains how to run MadGraph with these pre-made configuration cards in a simple way. Could you please show me the simplest way to generate them?

Regards,
Vichayanun

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#1

You can edit the file input/mg5_configuration.txt
to set which type of scheduller you are using on your cluster.

Now CMS is using weird method to run the cards.
In particular the run_card provided by CMS is not a valid run_card to run whithin our code.
So you have first to remove all the variable that CMS add in this file and put the value that you want.
(No clue what value is fed by CMS within their framework, you can contact CMS people if you need to know that)

one example of line to change is this one:
 $DEFAULT_PDF_SETS = lhaid ! if pdlabel=lhapdf, this is the lhapdf number

then you can change the file
TTTT_5f_NLO_proc_card.dat <https://github.com/cms-sw/genproductions/blob/421fdb3d061157fb31029fee52d00676d36d893c/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/TTTT_5f_NLO/TTTT_5f_NLO_proc_card.dat>
and add the following line
launch
MadSpin=ON
./TTTT_5f_NLO_run_card.dat <https://github.com/cms-sw/genproductions/blob/421fdb3d061157fb31029fee52d00676d36d893c/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/TTTT_5f_NLO/TTTT_5f_NLO_proc_card.dat>
./TTTT_5f_NLO_madspin_card.dat <https://github.com/cms-sw/genproductions/blob/421fdb3d061157fb31029fee52d00676d36d893c/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/TTTT_5f_NLO/TTTT_5f_NLO_proc_card.dat>
then
you can continue by adding within that file all the line present in
./TTTT_5f_NLO_customize_card.dat <https://github.com/cms-sw/genproductions/blob/421fdb3d061157fb31029fee52d00676d36d893c/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/TTTT_5f_NLO/TTTT_5f_NLO_proc_card.dat>

Then you can run that new file like this:
$path_to_MG5amC_directory/bin/mg5 ./TTTT_5f_NLO_proc_card.dat <https://github.com/cms-sw/genproductions/blob/421fdb3d061157fb31029fee52d00676d36d893c/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/TTTT_5f_NLO/TTTT_5f_NLO_proc_card.dat>

Cheers,

Olivier

PS: I do not know all the tweak of the CMS framework so it is possible that I miss something here.

> On 29 Aug 2021, at 13:15, Vichayanun Wachirapusitanand <email address hidden> wrote:
>
> New question #698560 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/698560
>
> Hi,
>
> I would like to generate private production using MadGraph based on a given set of MadGraph cards that looks like this:
>
> https://github.com/cms-sw/genproductions/tree/421fdb3d061157fb31029fee52d00676d36d893c/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/TTTT_5f_NLO
>
> For now I would like to generate this private production on my local cluster and not using CMS Connect or anything like that. However, I can't seem to find any tutorial that explains how to run MadGraph with these pre-made configuration cards in a simple way. Could you please show me the simplest way to generate them?
>
> Regards,
> Vichayanun
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Vichayanun Wachirapusitanand (vicha-w) said :
#2

Thanks Olivier Mattelaer, that solved my question.