Public Member Functions | |
def | __init__ (self, input_files, output_file, kwargs) |
def | check_header_compatibility (self) |
def | file_iterator (self, path) |
def | merge (self) |
def | merge_headers (self) |
def | merge_init_blocks (self) |
Public Member Functions inherited from mergeLHE.BaseLHEMerger | |
def | __init__ (self, input_files, output_file) |
def | merge (self) |
Public Attributes | |
bypass_check | |
Public Attributes inherited from mergeLHE.BaseLHEMerger | |
input_files | |
output_file | |
Private Attributes | |
_f | |
_header_lines | |
_header_str | |
_init_str | |
_is_mglo | |
_merged_init_str | |
_nevent | |
_uwgt | |
_xsec_combined | |
Default LHE merge scheme that copies the header of the first LHE file, merges and outputs the init block, then concatenates all event blocks.
Definition at line 23 of file mergeLHE.py.
def mergeLHE.DefaultLHEMerger.__init__ | ( | self, | |
input_files, | |||
output_file, | |||
kwargs | |||
) |
Definition at line 27 of file mergeLHE.py.
def mergeLHE.DefaultLHEMerger.check_header_compatibility | ( | self | ) |
Check if all headers for input files are consistent.
Definition at line 46 of file mergeLHE.py.
References mergeLHE.DefaultLHEMerger.bypass_check.
Referenced by mergeLHE.DefaultLHEMerger.merge().
def mergeLHE.DefaultLHEMerger.file_iterator | ( | self, | |
path | |||
) |
def mergeLHE.DefaultLHEMerger.merge | ( | self | ) |
Definition at line 193 of file mergeLHE.py.
References mergeLHE.DefaultLHEMerger._f, edmStreamStallGrapher.StallMonitorParser._f, mergeLHE.DefaultLHEMerger._header_str, mergeLHE.DefaultLHEMerger._is_mglo, mergeLHE.DefaultLHEMerger._nevent, mergeLHE.DefaultLHEMerger._uwgt, mergeLHE.DefaultLHEMerger._xsec_combined, mergeLHE.DefaultLHEMerger.bypass_check, mergeLHE.DefaultLHEMerger.check_header_compatibility(), objects.autophobj.float, edmIntegrityCheck.group, join(), mergeLHE.DefaultLHEMerger.merge_headers(), mergeLHE.DefaultLHEMerger.merge_init_blocks(), GetRecoTauVFromDQM_MC_cff.next, mergeLHE.BaseLHEMerger.output_file, DTT0WireWorkflow.DTT0WireWorkflow.output_file, DTVdriftWorkflow.DTvdriftWorkflow.output_file, DTTtrigWorkflow.DTttrigWorkflow.output_file, and Validation_hcalonly_cfi.sign.
def mergeLHE.DefaultLHEMerger.merge_headers | ( | self | ) |
Merge the headers of input LHEs. Need special handle for the MG5 LO case.
Definition at line 79 of file mergeLHE.py.
References mergeLHE.DefaultLHEMerger._header_str, mergeLHE.DefaultLHEMerger._is_mglo, mergeLHE.DefaultLHEMerger._nevent, mergeLHE.DefaultLHEMerger._xsec_combined, Vispa.Plugins.EdmBrowser.EdmDataAccessor.all(), mergeLHE.DefaultLHEMerger.bypass_check, objects.autophobj.float, edmIntegrityCheck.group, python.rootplot.root2matplotlib.replace(), and ComparisonHelper.zip().
Referenced by mergeLHE.DefaultLHEMerger.merge().
def mergeLHE.DefaultLHEMerger.merge_init_blocks | ( | self | ) |
If all <init> blocks are identical, return the same <init> block (in the case of Powheg LHEs); otherwise, calculate the output <init> blocks by merging the input blocks info using formula (same with the MG5LOLHEMerger scheme): XSECUP = sum(xsecup * no.events) / tot.events XERRUP = sqrt( sum(sigma^2 * no.events^2) ) / tot.events XMAXUP = max(xmaxup)
Definition at line 112 of file mergeLHE.py.
References mergeLHE.DefaultLHEMerger._f, edmStreamStallGrapher.StallMonitorParser._f, mergeLHE.DefaultLHEMerger._init_str, mergeLHE.DefaultLHEMerger._nevent, Vispa.Plugins.EdmBrowser.EdmDataAccessor.all(), mergeLHE.DefaultLHEMerger.bypass_check, objects.autophobj.float, mergeLHE.BaseLHEMerger.input_files, DTWorkflow.DTWorkflow.input_files, createfilelist.int, relativeConstraints.keys, list(), SiStripPI.max, split, and digitizers_cfi.strip.
Referenced by mergeLHE.DefaultLHEMerger.merge().
|
private |
Definition at line 32 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), and mergeLHE.DefaultLHEMerger.merge_init_blocks().
|
private |
Definition at line 58 of file mergeLHE.py.
|
private |
Definition at line 33 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), and mergeLHE.DefaultLHEMerger.merge_headers().
|
private |
Definition at line 37 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge_init_blocks().
|
private |
Definition at line 34 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), and mergeLHE.DefaultLHEMerger.merge_headers().
|
private |
Definition at line 176 of file mergeLHE.py.
|
private |
Definition at line 38 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), mergeLHE.DefaultLHEMerger.merge_headers(), and mergeLHE.DefaultLHEMerger.merge_init_blocks().
|
private |
Definition at line 36 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge().
|
private |
Definition at line 35 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), and mergeLHE.DefaultLHEMerger.merge_headers().
mergeLHE.DefaultLHEMerger.bypass_check |
Definition at line 30 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.check_header_compatibility(), mergeLHE.DefaultLHEMerger.merge(), mergeLHE.DefaultLHEMerger.merge_headers(), and mergeLHE.DefaultLHEMerger.merge_init_blocks().