ATLAS Offline Software
Namespaces | Functions | Variables
LHE.py File Reference

Go to the source code of this file.

Namespaces

 python.utility.LHE
 

Functions

def python.utility.LHE._open_file (filename)
 
def python.utility.LHE.merge (input_file_pattern, output_file)
 Merge many input LHE files into a single output file. More...
 
def python.utility.LHE.event_iterator (input_files, verbose=True)
 Python generator to iterate through events from input LHE files. More...
 
def python.utility.LHE.event_weight_iterator (input_files)
 Python generator to iterate through event weights from input LHE files. More...
 
def python.utility.LHE.event_counter (input_file_pattern)
 Count total number of events in input files. More...
 
def 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). More...
 
def python.utility.LHE.preamble (input_LHE_file)
 Get opening lines from file as a string. More...
 
def python.utility.LHE.postamble (input_LHE_file)
 Get closing lines from file as a string. More...
 
def python.utility.LHE.opening_tag (input_LHE_file)
 Get <LesHouchesEvents> opening tag from file as a string. More...
 
def python.utility.LHE.comment_block (input_LHE_file)
 Get comment block from file as a string. More...
 
def python.utility.LHE.header_block (input_LHE_file)
 Get <header> block from file as a string. More...
 
def python.utility.LHE.init_block (input_LHE_file)
 Get <init> block from file as a string. More...
 
def python.utility.LHE.get_first_event (input_LHE_file)
 Get first event from file as a string. More...
 
def python.utility.LHE.string_to_weight (input_event)
 Get weight name/value pairs from an input string. More...
 
def python.utility.LHE.ensure_coloured_quarks (input_event)
 Ensure that all final-state quarks in the event are coloured. More...
 
def python.utility.LHE.mu2tau (input_event)
 Swap out muons for taus, and muon neutrinos for tau neutrinos. More...
 
def python.utility.LHE.e2tau (input_event)
 Swap out electrons for taus, and electron neutrinos for tau neutrinos. More...
 
def python.utility.LHE.mu2e (input_event)
 Swap out muons for electrons, and muon neutrinos for electron neutrinos. More...
 
def python.utility.LHE.e2mu (input_event)
 Swap out electrons for muons, and electron neutrinos for muon neutrinos. More...
 
def 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. More...
 
def 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. More...
 
def python.utility.LHE.Powheg2LHEv3 (input_event, name_to_ID)
 Get new-style event weights from an input event string. More...
 
def python.utility.LHE.reindent_XML (elem)
 Re-indent XML so that elements are on their own line. More...
 

Variables

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