Skip to content

Commit

Permalink
[banner] ** COMPLETE BANNER (again) ** regenerate all processes
Browse files Browse the repository at this point in the history
  • Loading branch information
valassi committed Oct 8, 2024
1 parent 1ef55d6 commit 750af82
Show file tree
Hide file tree
Showing 99 changed files with 406 additions and 858 deletions.
20 changes: 8 additions & 12 deletions epochX/cudacpp/ee_mumu.mad/CODEGEN_mad_ee_mumu_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ generate e+ e- > mu+ mu-
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.006434440612792969 
DEBUG: model prefixing takes 0.006119966506958008 
INFO: Restrict model sm with file models/sm/restrict_default.dat .
DEBUG: Simplifying conditional expressions 
DEBUG: remove interactions: u s w+ at order: QED=1 
Expand Down Expand Up @@ -181,18 +181,17 @@ INFO: Finding symmetric diagrams for subprocess group epem_mupmum
DEBUG: diag_to_iconfig =  {1: 1, 2: 2} [model_handling.py at line 1552] 
Generated helas calls for 1 subprocesses (2 diagrams) in 0.004 s
Wrote files for 8 helas calls in 0.069 s
DEBUG: self.vector_size =  32 [export_v4.py at line 7023] 
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV4 routines
ALOHA: aloha creates 3 routines in 0.201 s
ALOHA: aloha creates 3 routines in 0.202 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV4 routines
ALOHA: aloha creates FFV2_4 routines
ALOHA: aloha creates 7 routines in 0.255 s
ALOHA: aloha creates 7 routines in 0.257 s
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV2
Expand Down Expand Up @@ -220,21 +219,18 @@ DEBUG: cd /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu
patching file SubProcesses/makefile
DEBUG: cd /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/SubProcesses/P1_epem_mupmum; patch -p6 -i /data/avalassi/GPU2023/madgraph4gpuX/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1
patching file driver.f
Hunk #1 succeeded at 76 (offset 2 lines).
Hunk #2 succeeded at 280 (offset 8 lines).
Hunk #3 succeeded at 489 (offset 13 lines).
patching file matrix1.f
Hunk #2 succeeded at 236 (offset 22 lines).
DEBUG: p.returncode =  0 [output.py at line 264] 
Hunk #2 succeeded at 236 (offset 9 lines).
DEBUG: p.returncode =  0 [output.py at line 263] 
Output to directory /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu done.
Type "launch" to generate events from this process, or see
/data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/README
Run "open index.html" to see more information about this process.
quit

real 0m2.097s
user 0m1.775s
sys 0m0.272s
real 0m2.379s
user 0m1.796s
sys 0m0.241s
Code generation completed in 2 seconds
************************************************************
* *
Expand Down
2 changes: 1 addition & 1 deletion epochX/cudacpp/ee_mumu.mad/Cards/param_card.dat
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Block mass
Block sminputs
1 1.325070e+02 # aEWM1
2 1.166390e-05 # Gf
3 1.180000e-01 # aS (Note that Parameter not used if you use a PDF set)
3 1.180000e-01 # aS (Note: this Parameter is not used if you use a PDF set)

###################################
## INFORMATION FOR YUKAWA
Expand Down
2 changes: 1 addition & 1 deletion epochX/cudacpp/ee_mumu.mad/Cards/param_card_default.dat
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Block mass
Block sminputs
1 1.325070e+02 # aEWM1
2 1.166390e-05 # Gf
3 1.180000e-01 # aS (Note that Parameter not used if you use a PDF set)
3 1.180000e-01 # aS (Note: this Parameter is not used if you use a PDF set)

###################################
## INFORMATION FOR YUKAWA
Expand Down
28 changes: 0 additions & 28 deletions epochX/cudacpp/ee_mumu.mad/bin/internal/banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,18 +1006,10 @@ def __init__(self, finput=None, **opt):
self.allowed_value = {}

self.default_setup()
self.plugin_input(finput)


# if input is define read that input
if isinstance(finput, (file, str, StringIO.StringIO)):
self.read(finput, **opt)




def plugin_input(self, finput=None):
pass


def default_setup(self):
Expand Down Expand Up @@ -2654,26 +2646,6 @@ class RunCard(ConfigFile):
donewarning = []
include_as_parameter = []

def plugin_input(self, finput):

if not finput and not MADEVENT:
return
curr_dir = None
if isinstance(finput, file):
# expected path to be like "XXXX/Cards/run_card.dat"
curr_dir = os.path.dirname(os.path.dirname(finput.name))
elif isinstance(finput, str):
curr_dir = os.path.dirname(os.path.dirname(finput))

if curr_dir:
if os.path.exists(pjoin(curr_dir, 'bin', 'internal', 'plugin_run_card')):
# expected format {} passing everything as optional argument
for line in open(pjoin(curr_dir, 'bin', 'internal', 'plugin_run_card')):
if line.startswith('#'):
continue
opts = dict(eval(line))
self.add_param(**opts)

@classmethod
def fill_post_set_from_blocks(cls):
"""set the post_set function for any parameter defined in a run_block"""
Expand Down
3 changes: 0 additions & 3 deletions epochX/cudacpp/ee_mumu.mad/bin/internal/launch_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ def reset_makeopts(self, old_value, new_value, name):
Sourcedir = pjoin(os.path.dirname(os.path.dirname(self.path)), 'Source')
subprocess.call(['make', 'cleanall'], cwd=Sourcedir, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

def plugin_input(self, finput):
return

def default_setup(self):
super().default_setup()
self.add_param('floating_type', 'm', include=False, hidden=True,
Expand Down
18 changes: 12 additions & 6 deletions epochX/cudacpp/ee_mumu.mad/bin/internal/madevent_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2959,6 +2959,7 @@ def update_width_in_param_card(decay_info, initial=None, output=None):
param_card_file.close()

decay_lines = []
comment = collections.defaultdict(str)
line_number = 0
# Read and remove all decays from the param_card
while line_number < len(param_card):
Expand All @@ -2968,6 +2969,7 @@ def update_width_in_param_card(decay_info, initial=None, output=None):
# DECAY 6 1.455100e+00
line = param_card.pop(line_number)
line = line.split()
comment[int(line[1])] = ' '.join(line).split('#',1)[1] if '#' in line else ''
particle = 0
if int(line[1]) not in decay_info:
try: # If formatting is wrong, don't want this particle
Expand Down Expand Up @@ -3013,7 +3015,7 @@ def update_width_in_param_card(decay_info, initial=None, output=None):
for key in sorted(decay_info.keys()):
width = sum([r for p,r in decay_info[key]])
param_card.append("#\n# PDG Width")
param_card.append("DECAY %i %e" % (key, width.real))
param_card.append("DECAY %i %e # %s" % (key, width.real, comment[int(key)]))
if not width:
continue
if decay_info[key][0][0]:
Expand Down Expand Up @@ -6883,11 +6885,15 @@ def launch(self, nb_event, seed):
self.exec_cmd('systematics %s --from_card' % self.run_name,
postcmd=False,printcmd=False)
self.exec_cmd('decay_events -from_cards', postcmd=False)
elif self.run_card['use_syst'] and self.run_card['systematics_program'] == 'systematics':
self.options['nb_core'] = 1
self.exec_cmd('systematics %s --from_card' %
pjoin('Events', self.run_name, 'unweighted_events.lhe.gz'),
postcmd=False,printcmd=False)
if self.run_card['time_of_flight']>=0:
self.exec_cmd("add_time_of_flight --threshold=%s" % self.run_card['time_of_flight'] ,postcmd=False)
else:
path = pjoin('Events', self.run_name, 'unweighted_events.lhe.gz')
if self.run_card['use_syst'] and self.run_card['systematics_program'] == 'systematics':
self.options['nb_core'] = 1
self.exec_cmd('systematics %s --from_card' % path, postcmd=False, printcmd=False)
if self.run_card['time_of_flight']>=0:
self.exec_cmd("add_time_of_flight %s --threshold=%s" % (path, self.run_card['time_of_flight']) ,postcmd=False)


def refine4grid(self, nb_event):
Expand Down
12 changes: 6 additions & 6 deletions epochX/cudacpp/ee_mumu.sa/CODEGEN_cudacpp_ee_mumu_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ generate e+ e- > mu+ mu-
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.0062215328216552734 
DEBUG: model prefixing takes 0.006151437759399414 
INFO: Restrict model sm with file models/sm/restrict_default.dat .
DEBUG: Simplifying conditional expressions 
DEBUG: remove interactions: u s w+ at order: QED=1 
Expand Down Expand Up @@ -175,7 +175,7 @@ ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV4 routines
ALOHA: aloha creates FFV2_4 routines
ALOHA: aloha creates 4 routines in 0.267 s
ALOHA: aloha creates 4 routines in 0.266 s
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV2
Expand All @@ -194,7 +194,7 @@ INFO: Created files Parameters_sm.h and Parameters_sm.cc in directory
INFO: /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_cudacpp_ee_mumu/src/. and /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_cudacpp_ee_mumu/src/.
quit

real 0m0.781s
user 0m0.590s
sys 0m0.053s
Code generation completed in 1 seconds
real 0m0.661s
user 0m0.583s
sys 0m0.061s
Code generation completed in 0 seconds
2 changes: 1 addition & 1 deletion epochX/cudacpp/ee_mumu.sa/Cards/param_card.dat
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Block mass
Block sminputs
1 1.325070e+02 # aEWM1
2 1.166390e-05 # Gf
3 1.180000e-01 # aS (Note that Parameter not used if you use a PDF set)
3 1.180000e-01 # aS (Note: this Parameter is not used if you use a PDF set)

###################################
## INFORMATION FOR YUKAWA
Expand Down
19 changes: 7 additions & 12 deletions epochX/cudacpp/gg_tt.mad/CODEGEN_mad_gg_tt_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ generate g g > t t~
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.0059719085693359375 
DEBUG: model prefixing takes 0.006209373474121094 
INFO: Restrict model sm with file models/sm/restrict_default.dat .
DEBUG: Simplifying conditional expressions 
DEBUG: remove interactions: u s w+ at order: QED=1 
Expand Down Expand Up @@ -182,15 +182,14 @@ INFO: Finding symmetric diagrams for subprocess group gg_ttx
DEBUG: diag_to_iconfig =  {1: 1, 2: 2, 3: 3} [model_handling.py at line 1552] 
Generated helas calls for 1 subprocesses (3 diagrams) in 0.006 s
Wrote files for 10 helas calls in 0.072 s
DEBUG: self.vector_size =  32 [export_v4.py at line 7023] 
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 set of routines with options: P0
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates 2 routines in 0.150 s
ALOHA: aloha creates 2 routines in 0.144 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 set of routines with options: P0
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates 4 routines in 0.134 s
ALOHA: aloha creates 4 routines in 0.131 s
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
Expand All @@ -214,21 +213,17 @@ DEBUG: cd /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gg_tt;
patching file SubProcesses/makefile
DEBUG: cd /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gg_tt/SubProcesses/P1_gg_ttx; patch -p6 -i /data/avalassi/GPU2023/madgraph4gpuX/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1
patching file driver.f
Hunk #1 succeeded at 76 (offset 2 lines).
Hunk #2 succeeded at 280 (offset 8 lines).
Hunk #3 succeeded at 489 (offset 13 lines).
patching file matrix1.f
Hunk #2 succeeded at 227 (offset 13 lines).
DEBUG: p.returncode =  0 [output.py at line 264] 
DEBUG: p.returncode =  0 [output.py at line 263] 
Output to directory /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gg_tt done.
Type "launch" to generate events from this process, or see
/data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gg_tt/README
Run "open index.html" to see more information about this process.
quit

real 0m1.997s
user 0m1.613s
sys 0m0.278s
real 0m2.042s
user 0m1.615s
sys 0m0.263s
Code generation completed in 2 seconds
************************************************************
* *
Expand Down
2 changes: 1 addition & 1 deletion epochX/cudacpp/gg_tt.mad/Cards/param_card.dat
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Block mass
Block sminputs
1 1.325070e+02 # aEWM1
2 1.166390e-05 # Gf
3 1.180000e-01 # aS (Note that Parameter not used if you use a PDF set)
3 1.180000e-01 # aS (Note: this Parameter is not used if you use a PDF set)

###################################
## INFORMATION FOR YUKAWA
Expand Down
2 changes: 1 addition & 1 deletion epochX/cudacpp/gg_tt.mad/Cards/param_card_default.dat
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Block mass
Block sminputs
1 1.325070e+02 # aEWM1
2 1.166390e-05 # Gf
3 1.180000e-01 # aS (Note that Parameter not used if you use a PDF set)
3 1.180000e-01 # aS (Note: this Parameter is not used if you use a PDF set)

###################################
## INFORMATION FOR YUKAWA
Expand Down
28 changes: 0 additions & 28 deletions epochX/cudacpp/gg_tt.mad/bin/internal/banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,18 +1006,10 @@ def __init__(self, finput=None, **opt):
self.allowed_value = {}

self.default_setup()
self.plugin_input(finput)


# if input is define read that input
if isinstance(finput, (file, str, StringIO.StringIO)):
self.read(finput, **opt)




def plugin_input(self, finput=None):
pass


def default_setup(self):
Expand Down Expand Up @@ -2654,26 +2646,6 @@ class RunCard(ConfigFile):
donewarning = []
include_as_parameter = []

def plugin_input(self, finput):

if not finput and not MADEVENT:
return
curr_dir = None
if isinstance(finput, file):
# expected path to be like "XXXX/Cards/run_card.dat"
curr_dir = os.path.dirname(os.path.dirname(finput.name))
elif isinstance(finput, str):
curr_dir = os.path.dirname(os.path.dirname(finput))

if curr_dir:
if os.path.exists(pjoin(curr_dir, 'bin', 'internal', 'plugin_run_card')):
# expected format {} passing everything as optional argument
for line in open(pjoin(curr_dir, 'bin', 'internal', 'plugin_run_card')):
if line.startswith('#'):
continue
opts = dict(eval(line))
self.add_param(**opts)

@classmethod
def fill_post_set_from_blocks(cls):
"""set the post_set function for any parameter defined in a run_block"""
Expand Down
3 changes: 0 additions & 3 deletions epochX/cudacpp/gg_tt.mad/bin/internal/launch_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ def reset_makeopts(self, old_value, new_value, name):
Sourcedir = pjoin(os.path.dirname(os.path.dirname(self.path)), 'Source')
subprocess.call(['make', 'cleanall'], cwd=Sourcedir, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

def plugin_input(self, finput):
return

def default_setup(self):
super().default_setup()
self.add_param('floating_type', 'm', include=False, hidden=True,
Expand Down
18 changes: 12 additions & 6 deletions epochX/cudacpp/gg_tt.mad/bin/internal/madevent_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2959,6 +2959,7 @@ def update_width_in_param_card(decay_info, initial=None, output=None):
param_card_file.close()

decay_lines = []
comment = collections.defaultdict(str)
line_number = 0
# Read and remove all decays from the param_card
while line_number < len(param_card):
Expand All @@ -2968,6 +2969,7 @@ def update_width_in_param_card(decay_info, initial=None, output=None):
# DECAY 6 1.455100e+00
line = param_card.pop(line_number)
line = line.split()
comment[int(line[1])] = ' '.join(line).split('#',1)[1] if '#' in line else ''
particle = 0
if int(line[1]) not in decay_info:
try: # If formatting is wrong, don't want this particle
Expand Down Expand Up @@ -3013,7 +3015,7 @@ def update_width_in_param_card(decay_info, initial=None, output=None):
for key in sorted(decay_info.keys()):
width = sum([r for p,r in decay_info[key]])
param_card.append("#\n# PDG Width")
param_card.append("DECAY %i %e" % (key, width.real))
param_card.append("DECAY %i %e # %s" % (key, width.real, comment[int(key)]))
if not width:
continue
if decay_info[key][0][0]:
Expand Down Expand Up @@ -6883,11 +6885,15 @@ def launch(self, nb_event, seed):
self.exec_cmd('systematics %s --from_card' % self.run_name,
postcmd=False,printcmd=False)
self.exec_cmd('decay_events -from_cards', postcmd=False)
elif self.run_card['use_syst'] and self.run_card['systematics_program'] == 'systematics':
self.options['nb_core'] = 1
self.exec_cmd('systematics %s --from_card' %
pjoin('Events', self.run_name, 'unweighted_events.lhe.gz'),
postcmd=False,printcmd=False)
if self.run_card['time_of_flight']>=0:
self.exec_cmd("add_time_of_flight --threshold=%s" % self.run_card['time_of_flight'] ,postcmd=False)
else:
path = pjoin('Events', self.run_name, 'unweighted_events.lhe.gz')
if self.run_card['use_syst'] and self.run_card['systematics_program'] == 'systematics':
self.options['nb_core'] = 1
self.exec_cmd('systematics %s --from_card' % path, postcmd=False, printcmd=False)
if self.run_card['time_of_flight']>=0:
self.exec_cmd("add_time_of_flight %s --threshold=%s" % (path, self.run_card['time_of_flight']) ,postcmd=False)


def refine4grid(self, nb_event):
Expand Down
Loading

0 comments on commit 750af82

Please sign in to comment.