|
list | FIELD_NAMES = ['nparticles', 'id', 'weight', 'scale', 'A_QED', 'A_QCD'] |
|
dictionary | FIELD_TYPES |
|
string | FMT = "{nparticles:7d} {id:6d} {weight: .5E} {scale: .5E} {A_QED: .5E} {A_QCD: .5E}" |
|
Definition at line 39 of file LHETools.py.
◆ from_string()
def LHETools.Record.from_string |
( |
|
cls, |
|
|
|
string |
|
) |
| |
|
inherited |
Definition at line 23 of file LHETools.py.
23 def from_string(cls, string):
24 if len(cls.FIELD_NAMES) != len(string.split()):
25 LHEToolsLog.warning(
"Inconsistent number of fields in lhe file line:")
26 LHEToolsLog.warning(string)
29 return cls(**dict(zip(cls.FIELD_NAMES, string.split())))
31 LHEToolsLog.warning(
"Impossible to interpret lhe file line:")
32 LHEToolsLog.warning(string)
◆ to_string()
def LHETools.Record.to_string |
( |
|
self | ) |
|
|
inherited |
Definition at line 35 of file LHETools.py.
36 return self.FMT.
format(**{field: getattr(self, field)
for field
in self.FIELD_NAMES})
if not self.invalid
else ""
◆ FIELD_NAMES
list LHETools.EventInfo.FIELD_NAMES = ['nparticles', 'id', 'weight', 'scale', 'A_QED', 'A_QCD'] |
|
static |
◆ FIELD_TYPES
dictionary LHETools.EventInfo.FIELD_TYPES |
|
static |
Initial value:= {
'nparticles': int,
'id': int,
'weight': float,
'scale': float,
'A_QCD': float,
'A_QED': float
}
Definition at line 44 of file LHETools.py.
◆ FMT
string LHETools.EventInfo.FMT = "{nparticles:7d} {id:6d} {weight: .5E} {scale: .5E} {A_QED: .5E} {A_QCD: .5E}" |
|
static |
◆ invalid
The documentation for this class was generated from the following file: