Package madgraph :: Package core :: Module helas_objects :: Class HelasWavefunctionList
[hide private]
[frames] | no frames]

Class HelasWavefunctionList

source code

                object --+        
                         |        
                      list --+    
                             |    
base_objects.PhysicsObjectList --+
                                 |
                                HelasWavefunctionList

List of HelasWavefunction objects. This class has the routine check_and_fix_fermion_flow, which checks for fermion flow clashes among the mothers of an amplitude or wavefunction.

Nested Classes [hide private]

Inherited from base_objects.PhysicsObjectList: PhysicsObjectListError

Instance Methods [hide private]
 
is_valid_element(self, obj)
Test if object obj is a valid HelasWavefunction for the list.
source code
 
to_array(self) source code
 
check_and_fix_fermion_flow(self, wavefunctions, diagram_wavefunctions, external_wavefunctions, my_wf, wf_number, force_flip_flow=False, number_to_wavefunctions=[])
Check for clashing fermion flow (N(incoming) != N(outgoing)).
source code
 
insert_own_mothers(self)
Recursively go through a wavefunction list and insert the mothers of all wavefunctions, return the result.
source code
 
sort_by_pdg_codes(self, pdg_codes, my_pdg_code=0)
Sort this HelasWavefunctionList according to the cyclic order of the pdg codes given.
source code
 
majorana_conjugates(self)
Returns a list [1,2,...] of fermion lines that need conjugate wfs due to wrong order of I/O Majorana particles compared to interaction order (or empty list if no Majorana particles).
source code

Inherited from base_objects.PhysicsObjectList: __init__, __str__, append

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, count, extend, index, insert, pop, remove, reverse, sort

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

Static Methods [hide private]
 
extract_wavefunctions(mothers)
Recursively extract the wavefunctions from mothers of mothers
source code
Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

is_valid_element(self, obj)

source code 

Test if object obj is a valid HelasWavefunction for the list.

Overrides: base_objects.PhysicsObjectList.is_valid_element

check_and_fix_fermion_flow(self, wavefunctions, diagram_wavefunctions, external_wavefunctions, my_wf, wf_number, force_flip_flow=False, number_to_wavefunctions=[])

source code 

Check for clashing fermion flow (N(incoming) != N(outgoing)). If found, we need to trace back through the mother structure (only looking at fermions), until we find a Majorana fermion. Then flip fermion flow along this line all the way from the initial clash to the external fermion (in the right way, see check_majorana_and_flip_flow), and consider an incoming particle with fermionflow -1 as outgoing (and vice versa). Continue until we have N(incoming) = N(outgoing).

Since the wavefunction number might get updated, return new wavefunction number.

insert_own_mothers(self)

source code 

Recursively go through a wavefunction list and insert the mothers of all wavefunctions, return the result. Assumes that all wavefunctions have unique numbers.

sort_by_pdg_codes(self, pdg_codes, my_pdg_code=0)

source code 

Sort this HelasWavefunctionList according to the cyclic order of the pdg codes given. my_pdg_code is the pdg code of the daughter wavefunction (or 0 if daughter is amplitude).

majorana_conjugates(self)

source code 

Returns a list [1,2,...] of fermion lines that need conjugate wfs due to wrong order of I/O Majorana particles compared to interaction order (or empty list if no Majorana particles). This is crucial if the Lorentz structure depends on the direction of the Majorana particles, as in MSSM with goldstinos.