JHUGen MELA  v2.4.1
Matrix element calculations as used in JHUGen. MELA is an important tool that was used for the Higgs boson discovery and for precise measurements of its structure and interactions. Please see the website https://spin.pha.jhu.edu/ and papers cited there for more details, and kindly cite those papers when using this code.
Public Member Functions | Public Attributes | List of all members
pythonmelautils.NamedTemporaryMacro Class Reference
Inheritance diagram for pythonmelautils.NamedTemporaryMacro:
Inheritance graph
[legend]
Collaboration diagram for pythonmelautils.NamedTemporaryMacro:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self)
 
def write (self, contents)
 
def compile (self)
 

Public Attributes

 f
 
 compiled
 

Detailed Description

Definition at line 22 of file pythonmelautils.py.

Constructor & Destructor Documentation

◆ __init__()

def pythonmelautils.NamedTemporaryMacro.__init__ (   self)

Definition at line 23 of file pythonmelautils.py.

23  def __init__(self):
24  self.f = tempfile.NamedTemporaryFile(suffix=".C", bufsize=0)
25  self.compiled = False

Member Function Documentation

◆ compile()

def pythonmelautils.NamedTemporaryMacro.compile (   self)

Definition at line 29 of file pythonmelautils.py.

29  def compile(self):
30  if not self.compiled:
31  compile(self.f.name)
32  self.compiled = True
33 
34 ROOT.gROOT.Macro(os.path.join(os.path.dirname(__file__), "..", "test", "loadMELA.C+"))
35 include("Mela.h")
36 include("TCouplingsBase.hh")
37 
38 #extract all the enums from the anonymous namespace in TCouplingsBase.hh

◆ write()

def pythonmelautils.NamedTemporaryMacro.write (   self,
  contents 
)

Definition at line 26 of file pythonmelautils.py.

26  def write(self, contents):
27  self.f.write(contents)
28  self.compiled = False

Member Data Documentation

◆ compiled

pythonmelautils.NamedTemporaryMacro.compiled

Definition at line 25 of file pythonmelautils.py.

◆ f

pythonmelautils.NamedTemporaryMacro.f

Definition at line 24 of file pythonmelautils.py.


The documentation for this class was generated from the following file:
pythonmelautils.include
def include(filename)
Definition: pythonmelautils.py:7
pythonmelautils.compile
def compile(filename, loadMELA=True)
Definition: pythonmelautils.py:10