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

Class CanonicalConfigTag

source code

                   object --+    
                            |    
diagram_generation.DiagramTag --+
                                |
                               CanonicalConfigTag

DiagramTag daughter class to create canonical order of
config. Need to compare leg number, mass, width, and color.
Also implement find s- and t-channels from the tag.
Warning! The sorting in this tag must be identical to that of
   IdentifySGConfigTag in diagram_symmetry.py (apart from leg number)
   to make sure symmetry works!

Nested Classes [hide private]

Inherited from diagram_generation.DiagramTag: DiagramTagError

Instance Methods [hide private]
 
get_s_and_t_channels(self, ninitial, model, new_pdg, max_final_leg=2)
Get s and t channels from the tag, as two lists of vertices ordered from the outermost s-channel and in/down towards the highest number initial state leg.
source code

Inherited from diagram_generation.DiagramTag: __eq__, __gt__, __init__, __lt__, __ne__, __repr__, __str__, diagram_from_tag, get_external_numbers

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

Class Methods [hide private]
 
vertex_from_link(cls, legs, vertex_id, model)
Return a vertex given a leg list and a vertex id
source code

Inherited from diagram_generation.DiagramTag: legPDGs_from_vertex_id, leg_from_legs, vertices_from_link

Static Methods [hide private]
 
link_from_leg(leg, model)
Returns the end link for a leg needed to identify configs: ((leg numer, mass, width, color), number).
source code
 
vertex_id_from_vertex(vertex, last_vertex, model, ninitial)
Returns the info needed to identify configs: interaction color, mass, width.
source code
 
flip_vertex(new_vertex, old_vertex, links)
Move the wavefunction part of propagator id appropriately
source code
 
leg_from_link(link)
Return a leg from a link
source code
 
id_from_vertex_id(vertex_id)
Return the numerical vertex id from a link.vertex_id
source code

Inherited from diagram_generation.DiagramTag: loop_info_from_vertex_id, reorder_permutation

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get_s_and_t_channels(self, ninitial, model, new_pdg, max_final_leg=2)

source code 

Get s and t channels from the tag, as two lists of vertices ordered from the outermost s-channel and in/down towards the highest number initial state leg. Algorithm: Start from the final tag. Check for final leg number for all links and move in the direction towards leg 2 (or 1, if 1 and 2 are in the same direction).

link_from_leg(leg, model)
Static Method

source code 

Returns the end link for a leg needed to identify configs: ((leg numer, mass, width, color), number).

Overrides: diagram_generation.DiagramTag.link_from_leg

vertex_id_from_vertex(vertex, last_vertex, model, ninitial)
Static Method

source code 

Returns the info needed to identify configs: interaction color, mass, width. Also provide propagator PDG code. The third element of the tuple vertex_id serves to store potential necessary information regarding the shrunk loop.

Overrides: diagram_generation.DiagramTag.vertex_id_from_vertex

flip_vertex(new_vertex, old_vertex, links)
Static Method

source code 

Move the wavefunction part of propagator id appropriately

Overrides: diagram_generation.DiagramTag.flip_vertex

leg_from_link(link)
Static Method

source code 

Return a leg from a link

Overrides: diagram_generation.DiagramTag.leg_from_link

vertex_from_link(cls, legs, vertex_id, model)
Class Method

source code 

Return a vertex given a leg list and a vertex id

Overrides: diagram_generation.DiagramTag.vertex_from_link

id_from_vertex_id(vertex_id)
Static Method

source code 

Return the numerical vertex id from a link.vertex_id

Overrides: diagram_generation.DiagramTag.id_from_vertex_id