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 26 of file mergeLHE.py.
def mergeLHE.DefaultLHEMerger.__init__ | ( | self, | |
input_files, | |||
output_file, | |||
kwargs | |||
) |
Definition at line 30 of file mergeLHE.py.
def mergeLHE.DefaultLHEMerger.check_header_compatibility | ( | self | ) |
Check if all headers for input files are consistent.
Definition at line 49 of file mergeLHE.py.
References mergeLHE.DefaultLHEMerger.bypass_check.
Referenced by mergeLHE.DefaultLHEMerger.merge().
def mergeLHE.DefaultLHEMerger.file_iterator | ( | self, | |
path | |||
) |
Line-by-line iterator of a txt file
Definition at line 43 of file mergeLHE.py.
def mergeLHE.DefaultLHEMerger.merge | ( | self | ) |
Definition at line 196 of file mergeLHE.py.
References mergeLHE.DefaultLHEMerger._f, edmStreamStallGrapher.StallMonitorParser._f, edmTracerCompactLogViewer.TracerCompactFileParser._f, mergeLHE.DefaultLHEMerger._header_str, mergeLHE.DefaultLHEMerger._init_str, mergeLHE.DefaultLHEMerger._is_mglo, mergeLHE.DefaultLHEMerger._nevent, mergeLHE.DefaultLHEMerger._uwgt, mergeLHE.DefaultLHEMerger._xsec_combined, mps_setup.append, mergeLHE.DefaultLHEMerger.bypass_check, mergeLHE.DefaultLHEMerger.check_header_compatibility(), ALCARECOEcalPhiSym_cff.float, watchdog.group, join(), mergeLHE.DefaultLHEMerger.merge_headers(), mergeLHE.DefaultLHEMerger.merge_init_blocks(), GetRecoTauVFromDQM_MC_cff.next, DTT0WireWorkflow.DTT0WireWorkflow.output_file, mergeLHE.BaseLHEMerger.output_file, DTVdriftWorkflow.DTvdriftWorkflow.output_file, DTTtrigWorkflow.DTttrigWorkflow.output_file, isotrackApplyRegressor.range, 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 82 of file mergeLHE.py.
References mergeLHE.DefaultLHEMerger._header_str, mergeLHE.DefaultLHEMerger._is_mglo, mergeLHE.DefaultLHEMerger._nevent, mergeLHE.DefaultLHEMerger._xsec_combined, python.cmstools.all(), mergeLHE.DefaultLHEMerger.bypass_check, ALCARECOEcalPhiSym_cff.float, watchdog.group, python.rootplot.root2matplotlib.replace(), and reco.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 115 of file mergeLHE.py.
References mergeLHE.DefaultLHEMerger._f, edmStreamStallGrapher.StallMonitorParser._f, edmTracerCompactLogViewer.TracerCompactFileParser._f, mergeLHE.DefaultLHEMerger._init_str, mergeLHE.DefaultLHEMerger._nevent, python.cmstools.all(), mergeLHE.DefaultLHEMerger.bypass_check, ALCARECOEcalPhiSym_cff.float, mergeLHE.BaseLHEMerger.input_files, DTWorkflow.DTWorkflow.input_files, createfilelist.int, relativeConstraints.keys, WZElectronSkims53X_cff.max, isotrackApplyRegressor.range, submitPVValidationJobs.split(), nano_mu_digi_cff.strip, and mkLumiAveragedPlots.tuple.
Referenced by mergeLHE.DefaultLHEMerger.merge().
|
private |
Definition at line 35 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), mergeLHE.DefaultLHEMerger.merge_init_blocks(), and edmModuleAllocMonitorAnalyze.ModuleAllocCompactFileParser.processingSteps().
|
private |
Definition at line 61 of file mergeLHE.py.
|
private |
Definition at line 36 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), and mergeLHE.DefaultLHEMerger.merge_headers().
|
private |
Definition at line 40 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), and mergeLHE.DefaultLHEMerger.merge_init_blocks().
|
private |
Definition at line 37 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), and mergeLHE.DefaultLHEMerger.merge_headers().
|
private |
Definition at line 179 of file mergeLHE.py.
|
private |
Definition at line 41 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), mergeLHE.DefaultLHEMerger.merge_headers(), and mergeLHE.DefaultLHEMerger.merge_init_blocks().
|
private |
Definition at line 39 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge().
|
private |
Definition at line 38 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.merge(), and mergeLHE.DefaultLHEMerger.merge_headers().
mergeLHE.DefaultLHEMerger.bypass_check |
Definition at line 33 of file mergeLHE.py.
Referenced by mergeLHE.DefaultLHEMerger.check_header_compatibility(), mergeLHE.DefaultLHEMerger.merge(), mergeLHE.DefaultLHEMerger.merge_headers(), and mergeLHE.DefaultLHEMerger.merge_init_blocks().