-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdm_tutorial_text.py
More file actions
executable file
·137 lines (104 loc) · 4.49 KB
/
dm_tutorial_text.py
File metadata and controls
executable file
·137 lines (104 loc) · 4.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
################################################################################
#
# Copyright (c) 2018 The MadGraph5_aMC@NLO Development team and Contributors
#
# This file is a part of the MadGraph5_aMC@NLO project, an application which
# automatically generates Feynman diagrams and matrix elements for arbitrary
# high-energy processes in the Standard Model and beyond.
#
# It is subject to the MadGraph5_aMC@NLO license which should accompany this
# distribution.
#
# For more information, visit madgraph.phys.ucl.ac.be and amcatnlo.web.cern.ch
#
################################################################################
tutorial = """
You have entered tutorial mode. This will introduce you to the main
syntax options of the MadDM plugin.
As compared with MG5aMC, the following functions have additional options
1) define
2) generate
3) add
4) output
You can type help XXXX to see the associated help.
The goal of this tutorial is to learn how to generate processes for dark matter annihilation and scattering
and to use those to compute the relic density, direct and/or indirect detection.
First you need to import your model of interest. If you do not have a favorite model you
can use one of those available online (that can be download automatically). For example:
MadDM> import model DMsimp_s_spin0_MD
"""
help=tutorial
display_modellist="""
The second stage is to define what is your darkmatter candidate
MadDM> define darkmatter ~xd
If your model has R-parity and that you do not know what is your DM for a given
benchmark, you can ask us to find it for you with:
MadDM> define darkmatter
You will need to define your benchmark point (edit the file) and then
the code will pick the lightest massive neutral BSM particle (with zero width).
"""
import_model = """
You have just imported a new BSM model.
If you want to see the list of models that can be downloaded automatically you can enter:
MadDM> display modellist
""" +display_modellist
define_coannihilator = """Now that the dark matter candidate and coannihilator(s) are defined.
You can specify what type of computation you want to do
- computation of relic density
MadDM> generate relic_density
- computation of direct detection (detector on earth for DM interaction with matter)
MadDM> add direct_detection
- computation of indirect detection (annihilation of dark matter in halos and detector on or close to the Earth)
MadDM> add indirect_detection
Note: 'generate' remove all previously generated matrix-element.
'add' keeps those
for the rest they are identical
"""
define_darkmatter = """
Now that the dark matter candidate is defined. You can either
1) define coannihilator
[Note that we do not have such particles for the proposed model]
MadDM> define coannihilator ~xr
2) specify what type of computation you want to do
- computation of relic density
MadDM> generate relic_density
- computation of direct detection (detector on earth for DM interaction with matter)
MadDM> add direct_detection
- computation of indirect detection (annihilation of dark matter in halos and detector on or close to the Earth)
MadDM> add indirect_detection
Note: 'generate' remove all previously generated matrix-element.
'add' keeps those
for the rest they are identical
"""
generate="""
You can add additional type of computation if you want
- computation of relic density
MadDM> add relic_density
- computation of direct detection (detector on earth for DM interaction with matter)
MadDM> add direct_detection
- computation of indirect detection (detector on earth for DM interaction with matter)
MadDM> add indirect_detection
When you have all the type of computation that you want, you can do
MadDM> output MY_FIRST_MADDM_RUN
"""
add=generate
output="""
You have now in your local directory a new directory called "MY_FIRST_MADDM_RUN".
with all the information needed to make the computation requested.
MadDM> launch MY_FIRST_MADDM_RUN
and then follow instruction on the screen to edit your benchmark point/ choose
what to run/...
"""
launch="""
Here you are, you have finished your first computation!
and you have reached the end of this tutorial.
you can now type
MadDM> tutorial stop
"""
set_mxd="""
The above is only valid WITHIN the question trigger by the 'launch' command.
At this level of the interface, the 'set' command controls some options of the runs.
To see the list of such options you can do
MadDM> display options
"""
set_my0=set_mxd