Package aloha :: Module create_aloha :: Class AbstractALOHAModel
[hide private]
[frames] | no frames]

Class AbstractALOHAModel

source code

object --+    
         |    
      dict --+
             |
            AbstractALOHAModel

A class to build and store the full set of Abstract ALOHA Routine

Instance Methods [hide private]
new empty dictionary

__init__(self, model_name, write_dir=None, format='Fortran')
load the UFO model and init the dictionary
source code
 
main(self, output_dir, format='Fortran')
Compute if not already compute.
source code
 
save(self, filepos=None)
save the current model in a pkl file
source code
 
load(self, filepos=None)
reload the pickle file
source code
D[k] if k in D, else d
get(self, lorentzname, outgoing)
return the AbstractRoutine with a given lorentz name, and for a given outgoing particle
source code
 
set(self, lorentzname, outgoing, abstract_routine)
add in the dictionary
source code
 
compute_all(self, save=True, wanted_lorentz=[])
define all the AbstractRoutine linked to a model
source code
 
compute_subset(self, data)
create the requested ALOHA routine.
source code
 
compute_aloha(self, builder, symmetry=None, routines=None)
define all the AbstractRoutine linked to a given lorentz structure symmetry authorizes to use the symmetry of anoter lorentz structure.
source code
 
compute_aloha_without_kernel(self, builder, symmetry=None, routines=None)
define all the AbstractRoutine linked to a given lorentz structure symmetry authorizes to use the symmetry of anoter lorentz structure.
source code
 
write(self, output_dir, language)
write the full set of Helicity Routine in output_dir
source code
 
locate_external(self, name, language, output_dir=None)
search a valid external file and copy it to output_dir directory
source code
 
look_for_symmetries(self)
Search some symmetries in the vertices.
source code
 
look_for_multiple_lorentz_interactions(self)
Search the interaction associate with more than one lorentz structure.
source code
 
has_massless_spin2(self)
Search if the spin2 particles are massless or not
source code
 
has_symmetries(self, l_name, outgoing, out=None, valid_output=None)
This returns out if no symmetries are available, otherwise it finds the lowest equivalent outgoing by recursivally calling this function.
source code
 
look_for_conjugate(self)
create a list for the routine needing to be conjugate
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, model_name, write_dir=None, format='Fortran')
(Constructor)

source code 

load the UFO model and init the dictionary

Returns:
new empty dictionary

Overrides: object.__init__

main(self, output_dir, format='Fortran')

source code 

Compute if not already compute. Write file in models/MY_MODEL/MY_FORMAT. copy the file to output_dir

get(self, lorentzname, outgoing)

source code 

return the AbstractRoutine with a given lorentz name, and for a given outgoing particle

Returns: D[k] if k in D, else d
Overrides: dict.get

compute_subset(self, data)

source code 

create the requested ALOHA routine. data should be a list of tuple (lorentz, tag, outgoing) tag should be the list of special tag (like conjugation on pair) to apply on the object

compute_aloha(self, builder, symmetry=None, routines=None)

source code 

define all the AbstractRoutine linked to a given lorentz structure symmetry authorizes to use the symmetry of anoter lorentz structure. routines to define only a subset of the routines.

compute_aloha_without_kernel(self, builder, symmetry=None, routines=None)

source code 

define all the AbstractRoutine linked to a given lorentz structure symmetry authorizes to use the symmetry of anoter lorentz structure. routines to define only a subset of the routines. Compare to compute_aloha, each routines are computed independently.

look_for_symmetries(self)

source code 

Search some symmetries in the vertices. We search if some identical particles are in a vertices in order to avoid to compute symmetrical contributions

look_for_multiple_lorentz_interactions(self)

source code 

Search the interaction associate with more than one lorentz structure. If those lorentz structure have the same order and the same color then associate a multiple lorentz routines to ALOHA

has_symmetries(self, l_name, outgoing, out=None, valid_output=None)

source code 

This returns out if no symmetries are available, otherwise it finds the lowest equivalent outgoing by recursivally calling this function. auth is a list of authorize output, if define