ATLAS Offline Software
|
Base class for configurable objects in the jobOptions. More...
Public Member Functions | |
def | __init__ (self, runArgs=None, opts=None) |
def | setUpInput (self) |
Initialise runcard with generic options. More... | |
def | merge (self) |
Initialise runcard with generic options. More... | |
def | reweight_for_negative_weights (self, powheg_LHE_output) |
def | output_events_file_name (self) |
Get output file name. More... | |
def | input_powheg_file_name (self) |
Get input Powheg file name. More... | |
def | input_powheg_file_name (self, value) |
Set input Powheg file name. More... | |
def | input_powheg_to_hto4l_file_name (self) |
Get input Hto4l file name. More... | |
def | output_hto4l4e_file_name (self) |
Get output Hto4l file name for 4e. More... | |
def | output_hto4l4mu_file_name (self) |
Get output Hto4l file name for 4mu. More... | |
def | output_hto4l2e2mu_file_name (self) |
Get output Hto4l file name for 2e2mu. More... | |
def | output_hto4l4e_file_name (self, value) |
Set output Hto4l file name for 4e. More... | |
def | output_hto4l4mu_file_name (self, value) |
Set output Hto4l file name for 4mu. More... | |
def | output_hto4l2e2mu_file_name (self, value) |
Set output Hto4l file name for 2e2mu. More... | |
def | random_seed (self) |
def | random_seed (self, value) |
def | logger (self) |
Get handle to logger. More... | |
def | merge_lhe_files (self, listOfFiles, outputFile) |
Private Attributes | |
__output_events_file_name | |
This needs to be set so that Generate_trf finds an appropriate file format for showering. More... | |
__output_hto4l4e_file_name | |
Using default output names from PowhegConfig_base and Hto4lConfig. More... | |
__output_hto4l4mu_file_name | |
__output_hto4l2e2mu_file_name | |
__random_seed | |
__input_powheg_to_hto4l_file_name | |
__input_powheg_file_name | |
Static Private Attributes | |
__run_directory = os.environ['PATH'] | |
Set up run directory and path to Hto4l. More... | |
__logger = Logging.logging.getLogger('Hto4lPowhegMerger') | |
Setup athena-compatible logger. More... | |
string | _merger_executable = 'mergeHto4l4f.exe' |
This must be defined by each derived class - don't change it in the jobOptions! More... | |
Base class for configurable objects in the jobOptions.
All subprocesses inherit from this class
Definition at line 13 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.__init__ | ( | self, | |
runArgs = None , |
|||
opts = None |
|||
) |
Definition at line 23 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.input_powheg_file_name | ( | self | ) |
Get input Powheg file name.
Definition at line 216 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.input_powheg_file_name | ( | self, | |
value | |||
) |
Set input Powheg file name.
Definition at line 221 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.input_powheg_to_hto4l_file_name | ( | self | ) |
Get input Hto4l file name.
Definition at line 226 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.logger | ( | self | ) |
Get handle to logger.
Definition at line 269 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.merge | ( | self | ) |
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.merge_lhe_files | ( | self, | |
listOfFiles, | |||
outputFile | |||
) |
Definition at line 274 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.output_events_file_name | ( | self | ) |
Get output file name.
Definition at line 211 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.output_hto4l2e2mu_file_name | ( | self | ) |
Get output Hto4l file name for 2e2mu.
Definition at line 241 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.output_hto4l2e2mu_file_name | ( | self, | |
value | |||
) |
Set output Hto4l file name for 2e2mu.
Definition at line 256 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.output_hto4l4e_file_name | ( | self | ) |
Get output Hto4l file name for 4e.
Definition at line 231 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.output_hto4l4e_file_name | ( | self, | |
value | |||
) |
Set output Hto4l file name for 4e.
Definition at line 246 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.output_hto4l4mu_file_name | ( | self | ) |
Get output Hto4l file name for 4mu.
Definition at line 236 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.output_hto4l4mu_file_name | ( | self, | |
value | |||
) |
Set output Hto4l file name for 4mu.
Definition at line 251 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.random_seed | ( | self | ) |
Definition at line 260 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.random_seed | ( | self, | |
value | |||
) |
Definition at line 264 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.reweight_for_negative_weights | ( | self, | |
powheg_LHE_output | |||
) |
Post-process the LHE file to update the weights for a negative Hto4l weight. We do two things: 1) check if the event weight (XWGTUP) is -1 (can be +/-1). If so, remember this so that the weights in the <rwgt> block can be corrected by multiplying by -1 2) After correcting the weights in the <rwgt> block, overwrite XWGTUP by the weight at id=0. Not completely sure if this step is necessary, but is done for Prophecy4f as well. Note: we do NOT save the original XWGTUP as an extra weight (i.e. +/-1). Normally, the sign of any weight should indicate this. The one exception is when BOTH PowHeg and Hto4l has a negative weight and so all weights are positive. This is pretty rare. #@param powheg_LHE_output Name of LHE file produced by merge of Hto4l files. @author RD Schaffer <r.d.schaffer@cern.ch> #
Definition at line 124 of file Hto4lPowhegMerge.py.
def python.Hto4lPowhegMerge.Hto4lPowhegMerge.setUpInput | ( | self | ) |
Initialise runcard with generic options.
Definition at line 51 of file Hto4lPowhegMerge.py.
|
private |
Definition at line 222 of file Hto4lPowhegMerge.py.
|
private |
Definition at line 89 of file Hto4lPowhegMerge.py.
|
staticprivate |
Setup athena-compatible logger.
Definition at line 18 of file Hto4lPowhegMerge.py.
|
private |
This needs to be set so that Generate_trf finds an appropriate file format for showering.
Definition at line 26 of file Hto4lPowhegMerge.py.
|
private |
Definition at line 33 of file Hto4lPowhegMerge.py.
|
private |
Using default output names from PowhegConfig_base and Hto4lConfig.
Definition at line 31 of file Hto4lPowhegMerge.py.
|
private |
Definition at line 32 of file Hto4lPowhegMerge.py.
|
private |
Definition at line 34 of file Hto4lPowhegMerge.py.
|
staticprivate |
Set up run directory and path to Hto4l.
Definition at line 15 of file Hto4lPowhegMerge.py.
|
staticprivate |
This must be defined by each derived class - don't change it in the jobOptions!
Definition at line 21 of file Hto4lPowhegMerge.py.