Package madgraph :: Package core :: Module diagram_generation
[hide private]
[frames] | no frames]

Module diagram_generation

source code

Classes for diagram generation. Amplitude performs the diagram generation, DecayChainAmplitude keeps track of processes with decay chains, and MultiProcess allows generation of processes with multiparticle definitions. DiagramTag allows to identify diagrams based on relevant properties.

Classes [hide private]
  DiagramTag
Class to tag diagrams based on objects with some __lt__ measure, e.g.
  DiagramTagChainLink
Chain link for a DiagramTag.
  Amplitude
Amplitude: process + list of diagrams (ordered) Initialize with a process, then call generate_diagrams() to generate the diagrams for the amplitude
  AmplitudeList
List of Amplitude objects
  DecayChainAmplitude
A list of amplitudes + a list of decay chain amplitude lists; corresponding to a ProcessDefinition with a list of decay chains
  DecayChainAmplitudeList
List of DecayChainAmplitude objects
  MultiProcess
MultiProcess: list of process definitions list of processes (after cleaning) list of amplitudes (after generation)
Functions [hide private]
 
expand_list(mylist)
Takes a list of lists and elements and returns a list of flat lists.
source code
 
expand_list_list(mylist)
Recursive function.
source code
Variables [hide private]
  logger = logging.getLogger('madgraph.diagram_generation')
  __package__ = 'madgraph.core'
Function Details [hide private]

expand_list(mylist)

source code 

Takes a list of lists and elements and returns a list of flat lists. Example: [[1,2], 3, [4,5]] -> [[1,3,4], [1,3,5], [2,3,4], [2,3,5]]

expand_list_list(mylist)

source code 

Recursive function. Takes a list of lists and lists of lists and returns a list of flat lists. Example: [[1,2],[[4,5],[6,7]]] -> [[1,2,4,5], [1,2,6,7]]