JHUGen MELA  JHUGen v7.5.6, MELA v2.4.2
Matrix element calculations as used in JHUGen.
write_bindings.txt File Reference

Functions

with open ("/mnt/sda1/RandomRantings/JHU/Andrei_Research/DocumentingMELA/raw_couplings.txt") as f
 

Function Documentation

◆ open()

with open ( "/mnt/sda1/RandomRantings/JHU/Andrei_Research/DocumentingMELA/raw_couplings.txt"  )

Definition at line 1 of file write_bindings.txt.

1  :
2  text = f.read()
3  for enumcontents in text.split("enum")[1:]:
4  enumcontents = enumcontents.strip()
5  # assert enumcontents.startswith("{")
6  enum_name = enumcontents.split("{")[0]
7  print(f'py::enum_<pymela::{enum_name}>(m, "{enum_name}")')
8  enumcontents = enumcontents.split("{")[1].split("}")[0]
9  for enumitem in enumcontents.split(","):
10  enumitem = enumitem.split("=")[0].strip()
11  if "SIZE" in enumitem:
12  print(f'\t.value("{enumitem}", pymela::{enumitem});\n')
13  else:
14  print(f'\t.value("{enumitem}", pymela::{enumitem})')
15 
16 with open("/mnt/sda1/RandomRantings/JHU/Andrei_Research/DocumentingMELA/raw_names.txt") as f:
17  for line in f:
18  var = line.strip().split()[1]
19  var = var[:var.find("[")]
20  str = f"""
21 .def("{var}", [](py::object &obj){{
def
def("selfDHggcoupl", [](py::object &obj){ Mela &D=obj.cast< Mela & >();return py::array_t< double >(std::vector< int >{nSupportedHiggses, SIZE_HGG, 2},(const double *) &D.selfDHggcoupl, obj);}) .def("selfDHg4g4coupl"
open
with open("/mnt/sda1/RandomRantings/JHU/Andrei_Research/DocumentingMELA/raw_couplings.txt") as f
Definition: write_bindings.txt:1
as
double as
Definition: TMCFM.hh:109
globalc::f
double complex, dimension(2) f
Definition: reductionC.F90:50