Package madgraph :: Package madweight :: Module write_MadWeight :: Class MG_diagram
[hide private]
[frames] | no frames]

Class MG_diagram

source code

substructure_class.diagram --+    
                             |    
      diagram_class.MG_diagram --+
                                 |
                                MG_diagram

add the write routine for fortran code in this file

Instance Methods [hide private]
 
__init__(self, dir_file, param_card, tf_file, config, opt='default')
update object to add write content
source code
 
create_all_fortran_code(self)
go in each subprocesses and create the fortran code in each of them
source code
 
load_fortran_code(self, num_sol=0)
create the code
source code
 
create_permutation_weight_functions_caller(self)
Define the function to associate a initial weight to each permutation.
source code
 
def_text_for_channel_weight(self, all_peak)
return the text for the definition of external routine and local variable needed for the multichannel routine
source code
 
write_channel_weight(self, peak_by_channel, all_peak, label)
all peak contains the list of the dictionary {peak:nb_of_appearance} each associated to a specific channel.
source code
 
create_multi_channel_weight(self, label, num_sol)
create the fortran code defining the weighting of each integration channel
source code
 
create_MadWeight_main(self, full_sol_obj, num_sol)
create the main_code_$i.inc for all solution and the associate d_choices(.f)(.inc)
source code
 
create_MadWeight_data(self, full_sol_obj, num_sol)
create the data_$i.inc for all solution
source code
 
is_new_sol(self, code)
check if this code is new or already defined
source code
 
write_code(self, template)
write the data_file and the main_code file
source code
 
write_f77_parameter(self)
define the f77 parameter for the data file
source code
 
write_d_choices(self, listpart)
updates/creates the files d_choices.inc, d_choices.f return the three particle tag needed to call the block d
source code
 
write_permutations_file(self)
write the permutations.inc file
source code
 
init_d_choices_file(self)
write banner in the fortran/inc file
source code
 
close_d_choices_file(self, template)
write the end of the D block related files
source code
 
collect_generated_propa(self, ECS, blob_sol_list)
return all the propagator that must be generated following BW distibution
source code
 
collect_unaligned_peaks(self)
first create for each solution a list of all unaligned peaks secondly make a full list for the full set of solution check if a specific peak is never aligned
source code
 
unaligned_correct_for_identical_solution(self)
correct self.unaligned from the fact that some solution was take into account more than once
source code
 
return_propa_generation(self, list, pos, num_sol)
return the line for the definition of how to generate the mass typical output are: data (propa_???($,label),label=1,$) /$,$,$,$,$,0/
source code
 
already_generated_in_decay(self, particle, generated_propa)
give (recurently) all the first particle already generated in the branchs of desintegration
source code
 
check_invisible_decay(self)
check if one of the invisible particle decay in 2 invisible particle return 0 if not return a text with the call of the equivalent subroutine
source code
 
create_output_type_info(self)
create output file containing the number of muon/electron/jet/bjet/invisible_part
source code
 
check_redondant_peak(self, dict_all, list_local)
check that in each solution each peaks appears at most one times and remove peaks present in all solution (if any) check also conflicts D/E peaks occur
source code

Inherited from diagram_class.MG_diagram: __str__, check_decay, clear_solution, define_Constraint_sector, define_ECS_as_solution, define_neutrino_stuff, define_parameter, define_tf_width, define_twin, detect_invisible_propa, detect_non_resonant_area, find_ECS_0neut, find_ECS_1neut, find_ECS_2neut, find_lowest_particle, find_num_neut_decay, identify_production_area, import_ext_part, import_process, organize_particle_content, output_type_info, select_ECS, set_option, solve_blob_sector, tag_unaligned

Inherited from substructure_class.diagram: add_content, contains_particle, define_level, define_neut_content, order_in_level

Method Details [hide private]

__init__(self, dir_file, param_card, tf_file, config, opt='default')
(Constructor)

source code 

update object to add write content

Overrides: substructure_class.diagram.__init__

create_permutation_weight_functions_caller(self)

source code 

Define the function to associate a initial weight to each permutation. Those weight can be use both to remove permutation and/or to initialize the grid on the permutation.

write_channel_weight(self, peak_by_channel, all_peak, label)

source code 
all peak contains the list of the dictionary {peak:nb_of_appearance} each associated 
   to a specific channel.
   label is the tag for the channel under study
returns the text defining, in fortran, the weight for this channel
   the sum of the peaks ponderate by the appearance