Package models :: Module usermod :: Class UFOModel
[hide private]
[frames] | no frames]

Class UFOModel

source code

object --+
         |
        UFOModel

The class storing the current status of the model

Instance Methods [hide private]
 
__init__(self, modelpath, addon='__1')
load the model from a valid UFO directory (otherwise keep everything as empty.
source code
 
write(self, outputdir) source code
 
mod_file(self, inputpath, outputpath) source code
 
write_restrict_card(self, outputdir)
propagate model restriction of the original model.
source code
 
format_param(self, param)
convert param to string in order to have it written correctly for the UFO file
source code
 
create_data_text(self, obj)
create the data associate to the object
source code
 
create_file_content(self, datalist) source code
 
write_particles(self, outputdir) source code
 
write_vertices(self, outputdir) source code
 
write_ctvertices(self, outputdir) source code
 
write_couplings(self, outputdir) source code
 
write_lorentz(self, outputdir) source code
 
write_parameters(self, outputdir) source code
 
write_ctparameters(self, outputdir) source code
 
write_orders(self, outputdir) source code
 
write_functions(self, outputdir) source code
 
write_propagators(self, outputdir) source code
 
write_external_files(self, outputdir)
Copy/merge the routines written in Fortran/C++/pyhton
source code
 
get_particle(self, name) source code
 
add_parameter(self, parameter, identify_pid={})
wrapper to call the correct function
source code
 
add_particle(self, particle, identify=None)
Add a particle in a consistent way
source code
 
check_mass_width_of_particle(self, p_base, p_plugin) source code
 
add_external_parameter(self, parameter, identify_pid)
adding a param_card parameter inside the current model.
source code
 
add_internal_parameter(self, parameter)
add a parameter of type internal
source code
 
add_coupling(self, coupling)
add one coupling
source code
 
add_coupling_order(self, coupling_order)
adding a new coupling order inside the model
source code
 
add_lorentz(self, lorentz)
add one coupling
source code
 
add_interaction(self, interaction, model)
Add one interaction to the model.
source code
 
add_CTinteraction(self, interaction)
Add one interaction to the model.
source code
 
add_model(self, model=None, path=None, identify_particles=None)
add another model in the current one
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, modelpath, addon='__1')
(Constructor)

source code 

load the model from a valid UFO directory (otherwise keep everything as empty.

Overrides: object.__init__

add_external_parameter(self, parameter, identify_pid)

source code 

adding a param_card parameter inside the current model. if the parameter block/lhcode already exists then just do nothing (but if the name are different then keep the info for future translation) If the name already exists in the model. raise an exception.

add_interaction(self, interaction, model)

source code 

Add one interaction to the model. This is UNCONDITIONAL! if the same interaction is in the model this means that the interaction will appear twice. This is now weaken if both interaction are exactly identical! (EXACT same color/lorentz/coupling expression)

add_CTinteraction(self, interaction)

source code 

Add one interaction to the model. This is UNCONDITIONAL! if the same interaction is in the model this means that the interaction will appear twice.