ATLAS Offline Software
Loading...
Searching...
No Matches
LHETools.EventInfo Class Reference
Inheritance diagram for LHETools.EventInfo:
Collaboration diagram for LHETools.EventInfo:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 from_string (cls, string)
 to_string (self)

Public Attributes

 invalid = not (set(kwargs.keys()) == set(self.FIELD_NAMES))
 FIELD_NAMES

Static Public Attributes

dict FIELD_TYPES
str FMT = "{nparticles:7d} {id:6d} {weight: .5E} {scale: .5E} {A_QED: .5E} {A_QCD: .5E}"

Detailed Description

Definition at line 39 of file LHETools.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Member Function Documentation

◆ from_string()

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)
27 return cls()
28 try:
29 return cls(**dict(zip(cls.FIELD_NAMES, string.split())))
30 except:
31 LHEToolsLog.warning("Impossible to interpret lhe file line:")
32 LHEToolsLog.warning(string)
33 return cls()
34

◆ to_string()

LHETools.Record.to_string ( self)
inherited

Definition at line 35 of file LHETools.py.

35 def to_string(self):
36 return self.FMT.format(**{field: getattr(self, field) for field in self.FIELD_NAMES}) if not self.invalid else ""
37
38
static std::string to_string(const std::vector< T > &v)

Member Data Documentation

◆ FIELD_NAMES

LHETools.Record.FIELD_NAMES
inherited

Definition at line 24 of file LHETools.py.

◆ FIELD_TYPES

dict 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

str LHETools.EventInfo.FMT = "{nparticles:7d} {id:6d} {weight: .5E} {scale: .5E} {A_QED: .5E} {A_QCD: .5E}"
static

Definition at line 54 of file LHETools.py.

◆ invalid

LHETools.Record.invalid = not (set(kwargs.keys()) == set(self.FIELD_NAMES))
inherited

Definition at line 18 of file LHETools.py.


The documentation for this class was generated from the following file: