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
=== modified file 'Template/Cards/run_card.dat'
--- Template/Cards/run_card.dat 2011-04-19 00:55:55 +0000
+++ Template/Cards/run_card.dat 2011-05-10 22:47:53 +0000
@@ -157,6 +157,11 @@
157 0 = mmnl ! min invariant mass for all letpons (l+- and vl) 157 0 = mmnl ! min invariant mass for all letpons (l+- and vl)
158 1d5 = mmnlmax ! max invariant mass for all letpons (l+- and vl) 158 1d5 = mmnlmax ! max invariant mass for all letpons (l+- and vl)
159#*********************************************************************159#*********************************************************************
160# Minimum and maximum pt for 4-momenta sum of leptons *
161#*********************************************************************
162 0 = ptllmin ! Minimum pt for 4-momenta sum of leptons(l and vl)
163 1d5 = ptllmax ! Maximum pt for 4-momenta sum of leptons(l and vl)
164#*********************************************************************
160# Inclusive cuts *165# Inclusive cuts *
161#*********************************************************************166#*********************************************************************
162 0 = xptj ! minimum pt for at least one jet 167 0 = xptj ! minimum pt for at least one jet
163168
=== modified file 'Template/Cards/run_card_default.dat'
--- Template/Cards/run_card_default.dat 2011-03-02 18:01:07 +0000
+++ Template/Cards/run_card_default.dat 2011-05-10 22:47:53 +0000
@@ -70,6 +70,11 @@
70# BW cutoff (M+/-bwcutoff*Gamma)70# BW cutoff (M+/-bwcutoff*Gamma)
71#**********************************71#**********************************
72 15 = bwcutoff72 15 = bwcutoff
73#**********************************************************
74# Apply pt/E/eta/dr/mij cuts on decay products or not
75# (note that etmiss/ptll/ptheavy/sorted cuts always apply)
76#**********************************************************
77 F = cut_decays
73#******************* 78#*******************
74# Standard Cuts79# Standard Cuts
75#******************* 80#*******************
@@ -152,6 +157,11 @@
152 0 = mmnl ! min invariant mass for all letpons (l+- and vl) 157 0 = mmnl ! min invariant mass for all letpons (l+- and vl)
153 1d5 = mmnlmax ! max invariant mass for all letpons (l+- and vl) 158 1d5 = mmnlmax ! max invariant mass for all letpons (l+- and vl)
154#*********************************************************************159#*********************************************************************
160# Minimum and maximum pt for 4-momenta sum of leptons *
161#*********************************************************************
162 0 = ptllmin ! Minimum pt for 4-momenta sum of leptons(l and vl)
163 1d5 = ptllmax ! Maximum pt for 4-momenta sum of leptons(l and vl)
164#*********************************************************************
155# Inclusive cuts *165# Inclusive cuts *
156#*********************************************************************166#*********************************************************************
157 0 = xptj ! minimum pt for at least one jet 167 0 = xptj ! minimum pt for at least one jet
158168
=== modified file 'Template/SubProcesses/cluster.f'
--- Template/SubProcesses/cluster.f 2011-04-14 02:31:58 +0000
+++ Template/SubProcesses/cluster.f 2011-05-10 22:47:53 +0000
@@ -498,6 +498,7 @@
498 include 'nexternal.inc'498 include 'nexternal.inc'
499 include 'cluster.inc'499 include 'cluster.inc'
500 include 'message.inc'500 include 'message.inc'
501 include 'maxconfigs.inc'
501 real*8 p(0:3,nexternal), pcmsp(0:3), p1(0:3)502 real*8 p(0:3,nexternal), pcmsp(0:3), p1(0:3)
502 real*8 pi(0:3), nr(0:3), pz(0:3)503 real*8 pi(0:3), nr(0:3), pz(0:3)
503 integer i, j, k, n, idi, idj, idij, icgs(0:n_max_cg)504 integer i, j, k, n, idi, idj, idij, icgs(0:n_max_cg)
@@ -505,6 +506,9 @@
505 double precision nn2,ct,st506 double precision nn2,ct,st
506 double precision minpt2ij,pt2ij(n_max_cl),zij(n_max_cl)507 double precision minpt2ij,pt2ij(n_max_cl),zij(n_max_cl)
507508
509 integer mapconfig(0:lmaxconfigs), this_config
510 common/to_mconfigs/mapconfig, this_config
511
508 integer nbw,ibwlist(nexternal)512 integer nbw,ibwlist(nexternal)
509 logical isbw(n_max_cl)513 logical isbw(n_max_cl)
510 data isbw/n_max_cl*.false./514 data isbw/n_max_cl*.false./
@@ -632,13 +636,13 @@
632 write(*,*)'winner ',n,': ',idacl(n,1),'&',idacl(n,2),636 write(*,*)'winner ',n,': ',idacl(n,1),'&',idacl(n,2),
633 & ' -> ',minpt2ij,', z = ',zcl(n)637 & ' -> ',minpt2ij,', z = ',zcl(n)
634 endif638 endif
635c Reset igscl with new mother639c Reset igraphs with new mother
636 if (.not.findmt(imocl(n),igraphs,nbw,ibwlist)) then640 if (.not.findmt(imocl(n),igraphs,nbw,ibwlist)) then
637 write(*,*) 'cluster.f: Error. Invalid combination.' 641 write(*,*) 'cluster.f: Error. Invalid combination.'
638 return642 return
639 endif643 endif
640 if (btest(mlevel,4)) then644 if (btest(mlevel,4)) then
641 write(*,*)'diagrams: ',(igraphs(k),k=1,igraphs(0))645 write(*,*)'graphs: ',(igraphs(k),k=1,igraphs(0))
642 endif646 endif
643 if (iwin.lt.3) then647 if (iwin.lt.3) then
644c is clustering648c is clustering
@@ -739,6 +743,15 @@
739 write(*,*) 'Last vertex is ',imap(1,2),imap(2,2),imap(3,2)743 write(*,*) 'Last vertex is ',imap(1,2),imap(2,2),imap(3,2)
740 write(*,*) ' -> ',pt2ijcl(n+1),sqrt(pt2ijcl(n+1))744 write(*,*) ' -> ',pt2ijcl(n+1),sqrt(pt2ijcl(n+1))
741 endif745 endif
746c If present channel among graphs, use only this channel
747c This is important when we have mixed QED-QCD
748 do i=1,igraphs(0)
749 if (igraphs(i).eq.this_config) then
750 igraphs(0)=1
751 igraphs(1)=this_config
752 exit
753 endif
754 enddo
742c if(pt2ijcl(n).gt. pt2ijcl(n+1))then755c if(pt2ijcl(n).gt. pt2ijcl(n+1))then
743c pt2ijcl(n+1)=pt2ijcl(n)756c pt2ijcl(n+1)=pt2ijcl(n)
744c if (btest(mlevel,3)) then757c if (btest(mlevel,3)) then
745758
=== modified file 'Template/SubProcesses/reweight.f'
--- Template/SubProcesses/reweight.f 2011-04-21 15:56:29 +0000
+++ Template/SubProcesses/reweight.f 2011-05-10 22:47:53 +0000
@@ -412,8 +412,10 @@
412 if (btest(mlevel,1)) then412 if (btest(mlevel,1)) then
413 write(*,*)'setclscales: identified tree {'413 write(*,*)'setclscales: identified tree {'
414 do i=1,nexternal-2414 do i=1,nexternal-2
415 write(*,*)' ',i,': ',idacl(i,1),'&',idacl(i,2),415 write(*,*)' ',i,': ',idacl(i,1),'(',ipdgcl(idacl(i,1),igraphs(1)),')',
416 & ' -> ',imocl(i),', ptij = ',dsqrt(pt2ijcl(i)) 416 $ '&',idacl(i,2),'(',ipdgcl(idacl(i,2),igraphs(1)),')',
417 $ ' -> ',imocl(i),', ptij = ',dsqrt(pt2ijcl(i)),
418 $ '(',ipdgcl(imocl(i),igraphs(1)),')'
417 enddo419 enddo
418 write(*,*)' graphs (',igraphs(0),'):',(igraphs(i),i=1,igraphs(0))420 write(*,*)' graphs (',igraphs(0),'):',(igraphs(i),i=1,igraphs(0))
419 write(*,*)'}'421 write(*,*)'}'
420422
=== modified file 'UpdateNotes.txt'
--- UpdateNotes.txt 2011-05-08 22:57:35 +0000
+++ UpdateNotes.txt 2011-05-10 22:47:53 +0000
@@ -1,8 +1,13 @@
1Update notes for MadGraph 5 (in reverse time order)1Update notes for MadGraph 5 (in reverse time order)
22
31.2.2 (09/05/11) OM: fix ALOHA symmetries creating not gauge invariant result for scalar octet31.2.3 (11/05/11): JA: Fixed problem with scale choice in processes with mixed
44 QED/QCD orders, e.g. p p > t t~ QED=2
51.2.1 (08/05/11) OM: reduce the quantity of RAM use by matrix.f5 JA: Added the ptllmin/max options in the default run_card.dat
6
71.2.2 (09/05/11): OM: fix ALOHA symmetries creating not gauge invariant result
8 for scalar octet
9
101.2.1 (08/05/11): OM: reduce the quantity of RAM use by matrix.f
6 OM: support speed of psyco if this python module is installed11 OM: support speed of psyco if this python module is installed
7 OM: fix a minor bug in the model parsing12 OM: fix a minor bug in the model parsing
8 OM: add the check of valid model.pkl also for v4 model13 OM: add the check of valid model.pkl also for v4 model
914
=== modified file 'madgraph/VERSION'
--- madgraph/VERSION 2011-05-08 22:57:35 +0000
+++ madgraph/VERSION 2011-05-10 22:47:53 +0000
@@ -1,2 +1,2 @@
1version = 1.2.21version = 1.2.3
2date = 2011-05-082date = 2011-05-11
33
=== modified file 'madgraph/interface/launch_ext_program.py'
--- madgraph/interface/launch_ext_program.py 2011-05-03 19:17:59 +0000
+++ madgraph/interface/launch_ext_program.py 2011-05-10 22:47:53 +0000
@@ -36,7 +36,6 @@
36 program_dir = ''36 program_dir = ''
37 executable = '' # path from program_dir37 executable = '' # path from program_dir
38 38
39 cards = [] # files can be modified (path from self.card_dir)
40 force = False39 force = False
41 40
42 def __init__(self, running_dir, card_dir='', timeout=None,41 def __init__(self, running_dir, card_dir='', timeout=None,
@@ -51,6 +50,7 @@
51 for key,value in options.items():50 for key,value in options.items():
52 setattr(self, key, value)51 setattr(self, key, value)
53 52
53 self.cards = [] # files can be modified (path from self.card_dir)
54 54
55 def run(self):55 def run(self):
56 """ execute the main code """56 """ execute the main code """
@@ -147,12 +147,12 @@
147class SALauncher(ExtLauncher):147class SALauncher(ExtLauncher):
148 """ A class to launch a simple Standalone test """148 """ A class to launch a simple Standalone test """
149 149
150 cards = ['param_card.dat']
151
152 def __init__(self, running_dir, timeout, **options):150 def __init__(self, running_dir, timeout, **options):
153 """ initialize the StandAlone Version"""151 """ initialize the StandAlone Version"""
154 152
155 ExtLauncher.__init__(self, running_dir, './Cards', timeout, **options)153 ExtLauncher.__init__(self, running_dir, './Cards', timeout, **options)
154 self.cards = ['param_card.dat']
155
156 156
157 def launch_program(self):157 def launch_program(self):
158 """launch the main program"""158 """launch the main program"""
@@ -170,8 +170,6 @@
170class MELauncher(ExtLauncher):170class MELauncher(ExtLauncher):
171 """A class to launch MadEvent run"""171 """A class to launch MadEvent run"""
172 172
173 cards = ['param_card.dat', 'run_card.dat']
174
175 def __init__(self, running_dir, timeout, unit='pb', **option):173 def __init__(self, running_dir, timeout, unit='pb', **option):
176 """ initialize the StandAlone Version"""174 """ initialize the StandAlone Version"""
177 175
@@ -182,6 +180,7 @@
182 assert hasattr(self, 'name')180 assert hasattr(self, 'name')
183 self.unit = unit181 self.unit = unit
184 182
183 self.cards = ['param_card.dat', 'run_card.dat']
185 # Check for pythia-pgs directory184 # Check for pythia-pgs directory
186 if os.path.isdir(os.path.join(MG5DIR,'pythia-pgs')):185 if os.path.isdir(os.path.join(MG5DIR,'pythia-pgs')):
187 self.pythia = os.path.join(MG5DIR,'pythia-pgs')186 self.pythia = os.path.join(MG5DIR,'pythia-pgs')
@@ -305,20 +304,16 @@
305class Pythia8Launcher(ExtLauncher):304class Pythia8Launcher(ExtLauncher):
306 """A class to launch Pythia8 run"""305 """A class to launch Pythia8 run"""
307 306
308 cards = []
309
310 def __init__(self, running_dir, timeout, **option):307 def __init__(self, running_dir, timeout, **option):
311 """ initialize launching Pythia 8"""308 """ initialize launching Pythia 8"""
312309
313 running_dir = os.path.join(running_dir, 'examples')310 running_dir = os.path.join(running_dir, 'examples')
314 ExtLauncher.__init__(self, running_dir, '.', timeout, **option)311 ExtLauncher.__init__(self, running_dir, '.', timeout, **option)
315
316
317 def prepare_run(self):
318 """ ask for pythia-pgs/delphes run """
319
320 self.cards = []312 self.cards = []
321 313
314 def prepare_run(self):
315 """ ask for pythia-pgs/delphes run """
316
322 # Find all main_model_process.cc files317 # Find all main_model_process.cc files
323 date_file_list = []318 date_file_list = []
324 for file in glob.glob(os.path.join(self.running_dir,'main_*_*.cc')):319 for file in glob.glob(os.path.join(self.running_dir,'main_*_*.cc')):

Subscribers

People subscribed via source and target branches