Package models :: Module import_ufo :: Class UFOMG5Converter
[hide private]
[frames] | no frames]

Class UFOMG5Converter

source code

object --+
         |
        UFOMG5Converter

Convert a UFO model to the MG5 format

Instance Methods [hide private]
 
__init__(self, model, auto=False)
initialize empty list for particles/interactions
source code
 
load_model(self)
load the different of the model first particles then interactions
source code
 
add_particle(self, particle_info)
convert and add a particle in the particle list
source code
 
find_color_anti_color_rep(self)
find which color are in the 3/3bar states
source code
 
detect_incoming_fermion(self)
define which fermion should be incoming for that we look at F F~ X interactions
source code
 
add_interaction(self, interaction_info, color_info)
add an interaction in the MG5 model.
source code
 
treat_color(self, data_string, interaction_info, color_info)
convert the string to ColorString
source code

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

Class Variables [hide private]
  use_lower_part_names = False
  _pat_T = re.compile(r'T\((?P<first>\d*),(?P<second>\d*)\)')
  _pat_id = re.compile(r'Identity\((?P<first>\d*),(?P<second>\d*...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, model, auto=False)
(Constructor)

source code 

initialize empty list for particles/interactions

Overrides: object.__init__

add_interaction(self, interaction_info, color_info)

source code 

add an interaction in the MG5 model. interaction_info is the UFO vertices information.


Class Variable Details [hide private]

_pat_id

Value:
re.compile(r'Identity\((?P<first>\d*),(?P<second>\d*)\)')