TWiki
>
Main Web
>
WebPreferences
>
LearningMadGraph
(2018-09-20,
WillButtinger
)
(raw view)
E
dit
A
ttach
P
DF
---++ MadGraph basics The configuration of your event generation is primarily handled by three files: * <b>proc_card</b> : the actual physics process you want to generate * <b>param_card</b> : where you can override parameter values (decay widths etc) of the model you are using in your proc_card * <b>run_card</b> : primarily used to specify the generator-level cuts you want to apply ---+++ The proc_card This is where you specify the process. You usually have to load a model first, and then use the madgraph syntax to specify the feynman diagrams. This example will use the =HAHM= model for exotics decays of the higgs to model decay of h boson (produced from gg initial state) to two =Zd= bosons, which subsequently decay to leptons: <verbatim> import model HAHM_variableMW_v3_UFO define l+ = e+ mu+ define l- = e- mu- generate g g > h HIG=1 HIW=0 QED=0 QCD=0, (h > Zp Zp, Zp > l+ l-) </verbatim> ---+++ The param_card This will appear in your process directory under the =Cards= subdirectory when you run madgraph with a proc_card. It has the form of blocks of parameters, e.g. in my param_card I see: <verbatim> .... ################################### ## INFORMATION FOR GAUGEMASS ################################### BLOCK GAUGEMASS # 1 9.118800e+01 # mzinput ################################### ## INFORMATION FOR HIDDEN ################################### BLOCK HIDDEN # 1 5.000000e+01 # mzdinput 2 2.000000e+02 # mhsinput 3 1.000000e-04 # epsilon 4 1.000000e-04 # kap ... </verbatim> the way you should read this snippet is that the =GAUGEMASS= block has a parameter called =mzinput=, and the =HIDDEN= block has four parameters with nams =mzdinput, mhsinput, epsilon, kap=. You could speicify values for all of these in your on-the-fly joboptions (see sections below) by a dictionary of dictionaries in python: <verbatim> param_card_extra = { "GAUGEMASS" : {"mzinput":"1.234"} "HIDDEN" : {"mzdinput":"3.46" , "mhsinput":'4.5' , "kap":'2.4'} #assumes we will keep default value for epsilon </verbatim> ---+++ The run_card This contains generator_level cuts. And example snippet is: <verbatim> .... #******************* # Standard Cuts #******************* # #********************************************************************* # Minimum and maximum pt's (for max, -1 means no cut) * #********************************************************************* 0.0 = ptj ! minimum pt for the jets 0.0 = ptb ! minimum pt for the b 0.0 = pta ! minimum pt for the photons 0.0 = ptl ! minimum pt for the charged leptons ... </verbatim> Again, you can see there's a bunch of arguments here, which you can specify in the on-the-fly setup below by doing e.g: <verbatim> run_card_extra = {"ptj":'1.0' , #overrides ptj in the run_card "ptl",'2.0' } </verbatim> Units are in GeV ---++ MadGraph on-the-fly in ATLAS This tutorial supposes you have figured out a proc_card you want to use, and you've decided what settings you want to have in the param_card and run_card. Download [[%ATTACHURL%/MC15.XXXXXX.MadGraphPythia8EvtGen_A14NNPDF23LO_YYYYYYYYY.py.txt][This template file]]. It is a template joboption for a madgraph event generation with LO PDF. It is important that you preserve the naming convention of the file exactly (apart from the .txt extension, which you should remove), and you will replace the XXXXX and YYYYYY parts in a moment. The template includes instructions in comments near the top, but basically you insert the proc_card content where it says, and list your param_card and run_card overrides. The template is actually an example of generating events an exotic decay of the h boson, so you should replace that proc_card code with your own proc_card. You replace the XXXXXX in the filename with your own 6-digit 'run number', which for testing purposes could simply be 123456. The YYYYYY part is also a short description you are free to specify, but there are restrictions on the length, I think you only have about 20 characters to play with here. To run your event generation you would just setup an appropriate release of the =MCProd= project, e.g. <verbatim> asetup MCProd,19.2.5.26.4,here </verbatim> Update (03/10/2017): The example scripts work with 19.2.5.26, i.e. instead please do: <verbatim> asetup AtlasProduction,19.2.5.25,here </verbatim> And then run your joboptions like this: <verbatim> Generate_tf.py --ecmEnergy=13000 --runNumber=123456 --firstEvent=1 --asetup="" --maxEvents=5000 --randomSeed=1 --jobConfig="MC15.123456.MadGraphPythia8EvtGen_A14NNPDF23LO_MyDescription.py" --outputEVNTFile=my.evgen.root </verbatim> Simples. If you have any problems, email me. -- Main.WillButtinger - 2016-10-10
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
txt
MC15.XXXXXX.MadGraphPythia8EvtGen_A14NNPDF23LO_YYYYYYYYY.py.txt
r1
manage
3.4 K
2016-10-11 - 00:13
WillButtinger
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r3 - 2018-09-20
-
WillButtinger
Log In
Main
Home
Index
Search
User Search
Changes
Notifications
RSS Feed
Documentation
Support
Webs
Main
Main Archive
Plugins
Sandbox for tests
Public webs
Public webs
ABATBEA
ACPP
ADCgroup
AEGIS
AfricaMap
AgileInfrastructure
ALICE
AliceEbyE
AliceSPD
AliceSSD
AliceTOF
AliFemto
ALPHA
ArdaGrid
ASACUSA
AthenaFCalTBAna
Atlas
AtlasLBNL
AXIALPET
CAE
CALICE
CDS
CENF
CERNSearch
CLIC
Cloud
CloudServices
CMS
Controls
CTA
CvmFS
DB
DefaultWeb
DESgroup
DPHEP
DM-LHC
DSSGroup
EGEE
EgeePtf
ELFms
EMI
ETICS
FIOgroup
FlukaTeam
Frontier
Gaudi
GeneratorServices
GuidesInfo
HardwareLabs
HCC
HEPIX
ILCBDSColl
ILCTPC
IMWG
Inspire
IPv6
IT
ItCommTeam
ITCoord
ITdeptTechForum
ITDRP
ITGT
ITSDC
LAr
LCG
LCGAAWorkbook
Leade
LHCAccess
LHCAtHome
LHCb
LHCgas
LHCONE
LHCOPN
LinuxSupport
Main
Medipix
Messaging
MPGD
NA49
NA61
NA62
NTOF
Openlab
PDBService
Persistency
PESgroup
Plugins
PSAccess
PSBUpgrade
R2Eproject
RCTF
RD42
RFCond12
RFLowLevel
ROXIE
Sandbox
SocialActivities
SPI
SRMDev
SSM
Student
SuperComputing
Support
SwfCatalogue
TMVA
TOTEM
TWiki
UNOSAT
Virtualization
VOBox
WITCH
XTCA
Welcome Guest
Login
or
Register
Cern Search
TWiki Search
Google Search
Main
All webs
Copyright &© 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback