Package madgraph :: Package iolibs :: Module import_v4
[hide private]
[frames] | no frames]

Module import_v4

source code

Classes [hide private]
  ParticleError
A class to carch the error
  WrongFileFormat
A specific class error for wrong V4 proc_card
  ProcCardv4Reader
read a proc_card.dat in the mg4 format and creates the equivalent routine for mg5
  ProcessInfo
This is the basic object for storing process information
Functions [hide private]
 
import_model(model_path, mgme_dir='/Users/alwall/MadGraph/madgraph5/MadGraph5_v1_4_8')
create a model from a MG4 model directory.
source code
 
find_model_path(model_path, mgme_dir)
Find the path to the model, starting with path model_path.
source code
 
read_particles_v4(fsock)
Read a list of particle from stream fsock, using the old v4 format
source code
 
read_interactions_v4(fsock, ref_part_list)
Read a list of interactions from stream fsock, using the old v4 format.
source code
 
read_proc_card_v4(fsock)
A simple function reading the files in fsock and returning a ProcCardv4Reader object.
source code
Variables [hide private]
  logger = logging.getLogger('madgraph.import_v4')
  __package__ = 'madgraph.iolibs'
Function Details [hide private]

read_interactions_v4(fsock, ref_part_list)

source code 

Read a list of interactions from stream fsock, using the old v4 format. Requires a ParticleList object as an input to recognize particle names.

read_proc_card_v4(fsock)

source code 

A simple function reading the files in fsock and returning a ProcCardv4Reader object. This function authorize to have the same syntax as for the other files treatment