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

Additional Inherited Members

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

Detailed Description

Definition at line 50 of file lhefile.py.

Member Function Documentation

◆ extracteventparticles()

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

Reimplemented from lhefile.LHEEvent.

Definition at line 52 of file lhefile.py.

52  def extracteventparticles(cls, lines, isgen):
53  daughters, mothers, associated = [], [], []
54  ids = [None]
55  mother1s = [None]
56  mother2s = [None]
57  for line in lines:
58  id, status, mother1, mother2 = (int(_) for _ in line.split()[0:4])
59  ids.append(id)
60  if (1 <= abs(id) <= 6 or abs(id) == 21) and not isgen:
61  line = line.replace(str(id), "0", 1) #replace the first instance of the jet id with 0, which means unknown jet
62  mother1s.append(mother1)
63  mother2s.append(mother2)
64  if status == -1:
65  mothers.append(line)
66  elif status == 1 and (1 <= abs(id) <= 6 or 11 <= abs(id) <= 16 or abs(id) in (21, 22)):
67  while True:
68  if mother1 != mother2 or mother1 is None:
69  associated.append(line)
70  break
71  if ids[mother1] in (25, 39):
72  daughters.append(line)
73  break
74  mother2 = mother2s[mother1]
75  mother1 = mother1s[mother1]
76 
77  if not isgen: mothers = None
78  return daughters, associated, mothers
79 

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