Merge lp:~maddevelopers/mg5amcnlo/version_1_2_3 into lp:~madteam/mg5amcnlo/trunk

Proposed by Johan Alwall
Status: Merged
Merged at revision: 137
Proposed branch: lp:~maddevelopers/mg5amcnlo/version_1_2_3
Merge into: lp:~madteam/mg5amcnlo/trunk
Diff against target: 221 lines (+52/-22)
7 files modified
Template/Cards/run_card.dat (+5/-0)
Template/Cards/run_card_default.dat (+10/-0)
Template/SubProcesses/cluster.f (+15/-2)
Template/SubProcesses/reweight.f (+4/-2)
UpdateNotes.txt (+8/-3)
madgraph/VERSION (+2/-2)
madgraph/interface/launch_ext_program.py (+8/-13)
To merge this branch: bzr merge lp:~maddevelopers/mg5amcnlo/version_1_2_3
Reviewer Review Type Date Requested Status
Olivier Mattelaer Approve
Review via email: mp+60562@code.launchpad.net

Description of the change

- Fixed long-standing problem that Bogdan pointed out with mixed QED/QCD orders.
- Some fixes to run_card and launch command.

To post a comment you must log in.
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Could you comment on your modification on the launch command.
I don't see the point of those modifications, is there a reason for this change, or this is only for the beauty of it?

review: Approve
Revision history for this message
Johan Alwall (johan-alwall) wrote :

Hello Olivier,

Sorry, I thought it was obvious. With static variables, if you run
launch several times with running pythia (and pgs), the pythia_card
(and pgs_card) are added on but never removed, so you get multiple
questions if you want to edit the pythia_card.dat.

Johan

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Template/Cards/run_card.dat'
2--- Template/Cards/run_card.dat 2011-04-19 00:55:55 +0000
3+++ Template/Cards/run_card.dat 2011-05-10 22:47:53 +0000
4@@ -157,6 +157,11 @@
5 0 = mmnl ! min invariant mass for all letpons (l+- and vl)
6 1d5 = mmnlmax ! max invariant mass for all letpons (l+- and vl)
7 #*********************************************************************
8+# Minimum and maximum pt for 4-momenta sum of leptons *
9+#*********************************************************************
10+ 0 = ptllmin ! Minimum pt for 4-momenta sum of leptons(l and vl)
11+ 1d5 = ptllmax ! Maximum pt for 4-momenta sum of leptons(l and vl)
12+#*********************************************************************
13 # Inclusive cuts *
14 #*********************************************************************
15 0 = xptj ! minimum pt for at least one jet
16
17=== modified file 'Template/Cards/run_card_default.dat'
18--- Template/Cards/run_card_default.dat 2011-03-02 18:01:07 +0000
19+++ Template/Cards/run_card_default.dat 2011-05-10 22:47:53 +0000
20@@ -70,6 +70,11 @@
21 # BW cutoff (M+/-bwcutoff*Gamma)
22 #**********************************
23 15 = bwcutoff
24+#**********************************************************
25+# Apply pt/E/eta/dr/mij cuts on decay products or not
26+# (note that etmiss/ptll/ptheavy/sorted cuts always apply)
27+#**********************************************************
28+ F = cut_decays
29 #*******************
30 # Standard Cuts
31 #*******************
32@@ -152,6 +157,11 @@
33 0 = mmnl ! min invariant mass for all letpons (l+- and vl)
34 1d5 = mmnlmax ! max invariant mass for all letpons (l+- and vl)
35 #*********************************************************************
36+# Minimum and maximum pt for 4-momenta sum of leptons *
37+#*********************************************************************
38+ 0 = ptllmin ! Minimum pt for 4-momenta sum of leptons(l and vl)
39+ 1d5 = ptllmax ! Maximum pt for 4-momenta sum of leptons(l and vl)
40+#*********************************************************************
41 # Inclusive cuts *
42 #*********************************************************************
43 0 = xptj ! minimum pt for at least one jet
44
45=== modified file 'Template/SubProcesses/cluster.f'
46--- Template/SubProcesses/cluster.f 2011-04-14 02:31:58 +0000
47+++ Template/SubProcesses/cluster.f 2011-05-10 22:47:53 +0000
48@@ -498,6 +498,7 @@
49 include 'nexternal.inc'
50 include 'cluster.inc'
51 include 'message.inc'
52+ include 'maxconfigs.inc'
53 real*8 p(0:3,nexternal), pcmsp(0:3), p1(0:3)
54 real*8 pi(0:3), nr(0:3), pz(0:3)
55 integer i, j, k, n, idi, idj, idij, icgs(0:n_max_cg)
56@@ -505,6 +506,9 @@
57 double precision nn2,ct,st
58 double precision minpt2ij,pt2ij(n_max_cl),zij(n_max_cl)
59
60+ integer mapconfig(0:lmaxconfigs), this_config
61+ common/to_mconfigs/mapconfig, this_config
62+
63 integer nbw,ibwlist(nexternal)
64 logical isbw(n_max_cl)
65 data isbw/n_max_cl*.false./
66@@ -632,13 +636,13 @@
67 write(*,*)'winner ',n,': ',idacl(n,1),'&',idacl(n,2),
68 & ' -> ',minpt2ij,', z = ',zcl(n)
69 endif
70-c Reset igscl with new mother
71+c Reset igraphs with new mother
72 if (.not.findmt(imocl(n),igraphs,nbw,ibwlist)) then
73 write(*,*) 'cluster.f: Error. Invalid combination.'
74 return
75 endif
76 if (btest(mlevel,4)) then
77- write(*,*)'diagrams: ',(igraphs(k),k=1,igraphs(0))
78+ write(*,*)'graphs: ',(igraphs(k),k=1,igraphs(0))
79 endif
80 if (iwin.lt.3) then
81 c is clustering
82@@ -739,6 +743,15 @@
83 write(*,*) 'Last vertex is ',imap(1,2),imap(2,2),imap(3,2)
84 write(*,*) ' -> ',pt2ijcl(n+1),sqrt(pt2ijcl(n+1))
85 endif
86+c If present channel among graphs, use only this channel
87+c This is important when we have mixed QED-QCD
88+ do i=1,igraphs(0)
89+ if (igraphs(i).eq.this_config) then
90+ igraphs(0)=1
91+ igraphs(1)=this_config
92+ exit
93+ endif
94+ enddo
95 c if(pt2ijcl(n).gt. pt2ijcl(n+1))then
96 c pt2ijcl(n+1)=pt2ijcl(n)
97 c if (btest(mlevel,3)) then
98
99=== modified file 'Template/SubProcesses/reweight.f'
100--- Template/SubProcesses/reweight.f 2011-04-21 15:56:29 +0000
101+++ Template/SubProcesses/reweight.f 2011-05-10 22:47:53 +0000
102@@ -412,8 +412,10 @@
103 if (btest(mlevel,1)) then
104 write(*,*)'setclscales: identified tree {'
105 do i=1,nexternal-2
106- write(*,*)' ',i,': ',idacl(i,1),'&',idacl(i,2),
107- & ' -> ',imocl(i),', ptij = ',dsqrt(pt2ijcl(i))
108+ write(*,*)' ',i,': ',idacl(i,1),'(',ipdgcl(idacl(i,1),igraphs(1)),')',
109+ $ '&',idacl(i,2),'(',ipdgcl(idacl(i,2),igraphs(1)),')',
110+ $ ' -> ',imocl(i),', ptij = ',dsqrt(pt2ijcl(i)),
111+ $ '(',ipdgcl(imocl(i),igraphs(1)),')'
112 enddo
113 write(*,*)' graphs (',igraphs(0),'):',(igraphs(i),i=1,igraphs(0))
114 write(*,*)'}'
115
116=== modified file 'UpdateNotes.txt'
117--- UpdateNotes.txt 2011-05-08 22:57:35 +0000
118+++ UpdateNotes.txt 2011-05-10 22:47:53 +0000
119@@ -1,8 +1,13 @@
120 Update notes for MadGraph 5 (in reverse time order)
121
122-1.2.2 (09/05/11) OM: fix ALOHA symmetries creating not gauge invariant result for scalar octet
123-
124-1.2.1 (08/05/11) OM: reduce the quantity of RAM use by matrix.f
125+1.2.3 (11/05/11): JA: Fixed problem with scale choice in processes with mixed
126+ QED/QCD orders, e.g. p p > t t~ QED=2
127+ JA: Added the ptllmin/max options in the default run_card.dat
128+
129+1.2.2 (09/05/11): OM: fix ALOHA symmetries creating not gauge invariant result
130+ for scalar octet
131+
132+1.2.1 (08/05/11): OM: reduce the quantity of RAM use by matrix.f
133 OM: support speed of psyco if this python module is installed
134 OM: fix a minor bug in the model parsing
135 OM: add the check of valid model.pkl also for v4 model
136
137=== modified file 'madgraph/VERSION'
138--- madgraph/VERSION 2011-05-08 22:57:35 +0000
139+++ madgraph/VERSION 2011-05-10 22:47:53 +0000
140@@ -1,2 +1,2 @@
141-version = 1.2.2
142-date = 2011-05-08
143+version = 1.2.3
144+date = 2011-05-11
145
146=== modified file 'madgraph/interface/launch_ext_program.py'
147--- madgraph/interface/launch_ext_program.py 2011-05-03 19:17:59 +0000
148+++ madgraph/interface/launch_ext_program.py 2011-05-10 22:47:53 +0000
149@@ -36,7 +36,6 @@
150 program_dir = ''
151 executable = '' # path from program_dir
152
153- cards = [] # files can be modified (path from self.card_dir)
154 force = False
155
156 def __init__(self, running_dir, card_dir='', timeout=None,
157@@ -51,6 +50,7 @@
158 for key,value in options.items():
159 setattr(self, key, value)
160
161+ self.cards = [] # files can be modified (path from self.card_dir)
162
163 def run(self):
164 """ execute the main code """
165@@ -147,12 +147,12 @@
166 class SALauncher(ExtLauncher):
167 """ A class to launch a simple Standalone test """
168
169- cards = ['param_card.dat']
170-
171 def __init__(self, running_dir, timeout, **options):
172 """ initialize the StandAlone Version"""
173
174 ExtLauncher.__init__(self, running_dir, './Cards', timeout, **options)
175+ self.cards = ['param_card.dat']
176+
177
178 def launch_program(self):
179 """launch the main program"""
180@@ -170,8 +170,6 @@
181 class MELauncher(ExtLauncher):
182 """A class to launch MadEvent run"""
183
184- cards = ['param_card.dat', 'run_card.dat']
185-
186 def __init__(self, running_dir, timeout, unit='pb', **option):
187 """ initialize the StandAlone Version"""
188
189@@ -182,6 +180,7 @@
190 assert hasattr(self, 'name')
191 self.unit = unit
192
193+ self.cards = ['param_card.dat', 'run_card.dat']
194 # Check for pythia-pgs directory
195 if os.path.isdir(os.path.join(MG5DIR,'pythia-pgs')):
196 self.pythia = os.path.join(MG5DIR,'pythia-pgs')
197@@ -305,20 +304,16 @@
198 class Pythia8Launcher(ExtLauncher):
199 """A class to launch Pythia8 run"""
200
201- cards = []
202-
203 def __init__(self, running_dir, timeout, **option):
204 """ initialize launching Pythia 8"""
205
206 running_dir = os.path.join(running_dir, 'examples')
207 ExtLauncher.__init__(self, running_dir, '.', timeout, **option)
208-
209-
210- def prepare_run(self):
211- """ ask for pythia-pgs/delphes run """
212-
213 self.cards = []
214-
215+
216+ def prepare_run(self):
217+ """ ask for pythia-pgs/delphes run """
218+
219 # Find all main_model_process.cc files
220 date_file_list = []
221 for file in glob.glob(os.path.join(self.running_dir,'main_*_*.cc')):

Subscribers

People subscribed via source and target branches