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 | Static Public Attributes | List of all members
lhefile.LHEEvent_StableHiggs Class Reference
Inheritance diagram for lhefile.LHEEvent_StableHiggs:
Inheritance graph
[legend]
Collaboration diagram for lhefile.LHEEvent_StableHiggs:
Collaboration graph
[legend]

Public Member Functions

def extracteventparticles (cls, lines, isgen)
 
- Public Member Functions inherited from lhefile.LHEEvent
def __init__ (self, event, isgen)
 
def __iter__ (self)
 

Static Public Attributes

 nassociatedparticles = None
 

Additional Inherited Members

- Public Attributes inherited from lhefile.LHEEvent
 weights
 
 weight
 
 isgen
 
 inputevent
 

Detailed Description

Definition at line 80 of file lhefile.py.

Member Function Documentation

◆ extracteventparticles()

def lhefile.LHEEvent_StableHiggs.extracteventparticles (   cls,
  lines,
  isgen 
)

Reimplemented from lhefile.LHEEvent.

Definition at line 82 of file lhefile.py.

82  def extracteventparticles(cls, lines, isgen):
83  daughters, mothers, associated = [], [], []
84  for line in lines:
85  id, status, mother1, mother2 = (int(_) for _ in line.split()[0:4])
86  if (1 <= abs(id) <= 6 or abs(id) == 21) and not isgen:
87  line = line.replace(str(id), "0", 1) #replace the first instance of the jet id with 0, which means unknown jet
88  if status == -1:
89  mothers.append(line)
90  if id == 25:
91  if status != 1:
92  raise ValueError("Higgs has status {}, expected it to be 1\n\n".format(status) + "\n".join(lines))
93  daughters.append(line)
94  if abs(id) in (0, 1, 2, 3, 4, 5, 11, 12, 13, 14, 15, 16, 21) and status == 1:
95  associated.append(line)
96 
97  if len(daughters) != 1:
98  raise ValueError("More than one H in the event??\n\n"+"\n".join(lines))
99  if cls.nassociatedparticles is not None and len(associated) != cls.nassociatedparticles:
100  raise ValueError("Wrong number of associated particles (expected {}, found {})\n\n".format(cls.nassociatedparticles, len(associated))+"\n".join(lines))
101  if len(mothers) != 2:
102  raise ValueError("{} mothers in the event??\n\n".format(len(mothers))+"\n".join(lines))
103 
104  if not isgen: mothers = None
105  return daughters, associated, mothers
106 

Member Data Documentation

◆ nassociatedparticles

lhefile.LHEEvent_StableHiggs.nassociatedparticles = None
static

Definition at line 107 of file lhefile.py.


The documentation for this class was generated from the following file:
testME_all.int
int
Definition: testME_all.py:13