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_Offshell4l Class Reference
Inheritance diagram for lhefile.LHEEvent_Offshell4l:
Inheritance graph
[legend]
Collaboration diagram for lhefile.LHEEvent_Offshell4l:
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 115 of file lhefile.py.

Member Function Documentation

◆ extracteventparticles()

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

Reimplemented from lhefile.LHEEvent.

Definition at line 117 of file lhefile.py.

117  def extracteventparticles(cls, lines, isgen):
118  daughters, mothers, associated = [], [], []
119  for line in lines:
120  id, status, mother1, mother2 = (int(_) for _ in line.split()[0:4])
121  if (1 <= abs(id) <= 6 or abs(id) == 21) and not isgen:
122  line = line.replace(str(id), "0", 1) #replace the first instance of the jet id with 0, which means unknown jet
123  if status == -1:
124  mothers.append(line)
125  if abs(id) in (11, 12, 13, 14, 15, 16) and status == 1:
126  daughters.append(line)
127  if abs(id) in (0, 1, 2, 3, 4, 5, 21) and status == 1:
128  associated.append(line)
129 
130  if len(daughters) != 4:
131  raise ValueError("Wrong number of daughters (expected {}, found {})\n\n".format(4, len(daughters))+"\n".join(lines))
132  if cls.nassociatedparticles is not None and len(associated) != cls.nassociatedparticles:
133  raise ValueError("Wrong number of associated particles (expected {}, found {})\n\n".format(cls.nassociatedparticles, len(associated))+"\n".join(lines))
134  if len(mothers) != 2:
135  raise ValueError("{} mothers in the event??\n\n".format(len(mothers))+"\n".join(lines))
136 
137  if not isgen: mothers = None
138  return daughters, associated, mothers
139 

Member Data Documentation

◆ nassociatedparticles

lhefile.LHEEvent_Offshell4l.nassociatedparticles = None
static

Definition at line 140 of file lhefile.py.


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