ATLAS Offline Software
Loading...
Searching...
No Matches
LHE.py File Reference

Go to the source code of this file.

Namespaces

namespace  python
namespace  python.utility
namespace  python.utility.LHE
 Utility functions for manipulating LHE files.

Functions

 python.utility.LHE._open_file (filename)
 python.utility.LHE.merge (input_file_pattern, output_file)
 Merge many input LHE files into a single output file.
 python.utility.LHE.event_iterator (input_files, verbose=True)
 Python generator to iterate through events from input LHE files.
 python.utility.LHE.event_weight_iterator (input_files)
 Python generator to iterate through event weights from input LHE files.
 python.utility.LHE.event_counter (input_file_pattern)
 Count total number of events in input files.
 python.utility.LHE.add_weight_to_header (header, weightgroup_name, weight_name, weight_id)
 Add a weight to a header passed as input (can be a string or an ElementTree).
 python.utility.LHE.preamble (input_LHE_file)
 Get opening lines from file as a string.
 python.utility.LHE.postamble (input_LHE_file)
 Get closing lines from file as a string.
 python.utility.LHE.opening_tag (input_LHE_file)
 Get <LesHouchesEvents> opening tag from file as a string.
 python.utility.LHE.comment_block (input_LHE_file)
 Get comment block from file as a string.
 python.utility.LHE.header_block (input_LHE_file)
 Get <header> block from file as a string.
 python.utility.LHE.init_block (input_LHE_file)
 Get <init> block from file as a string.
 python.utility.LHE.get_first_event (input_LHE_file)
 Get first event from file as a string.
 python.utility.LHE.string_to_weight (input_event)
 Get weight name/value pairs from an input string.
 python.utility.LHE.ensure_coloured_quarks (input_event)
 Ensure that all final-state quarks in the event are coloured.
 python.utility.LHE.mu2tau (input_event)
 Swap out muons for taus, and muon neutrinos for tau neutrinos.
 python.utility.LHE.e2tau (input_event)
 Swap out electrons for taus, and electron neutrinos for tau neutrinos.
 python.utility.LHE.mu2e (input_event)
 Swap out muons for electrons, and muon neutrinos for electron neutrinos.
 python.utility.LHE.e2mu (input_event)
 Swap out electrons for muons, and electron neutrinos for muon neutrinos.
 python.utility.LHE.gg4l_emu2all (input_event)
 Algorithm specific to gg4l Powheg process, to obtain an inclusive sample starting from the only supported decay mode for ZZ production, 2e2mu.
 python.utility.LHE.update_XWGTUP_with_reweighted_nominal (input_event, wgtid_for_old_XWGTUP_value=None)
 Ensure that XWGTUP is equal to the reweighted nominal.
 python.utility.LHE.Powheg2LHEv3 (input_event, name_to_ID)
 Get new-style event weights from an input event string.
 python.utility.LHE.reindent_XML (elem)
 Re-indent XML so that elements are on their own line.

Variables

 python.utility.LHE.logger = Logging.logging.getLogger("PowhegControl")
 Get handle to Athena logging.