CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
mergeLHE.MG5LOLHEMerger Class Reference
Inheritance diagram for mergeLHE.MG5LOLHEMerger:
mergeLHE.BaseLHEMerger

Public Member Functions

def __init__ (self, input_files, output_file, **kwargs)
 
def merge (self)
 
- Public Member Functions inherited from mergeLHE.BaseLHEMerger
def __init__ (self, input_files, output_file)
 

Private Attributes

 _merger_script_url
 

Additional Inherited Members

- Public Attributes inherited from mergeLHE.BaseLHEMerger
 input_files
 
 output_file
 

Detailed Description

Use the merger script dedicated for MG5 LO LHEs, as introduced in
https://github.com/cms-sw/genproductions/blob/master/bin/MadGraph5_aMCatNLO/Utilities/merge.pl

Definition at line 279 of file mergeLHE.py.

Constructor & Destructor Documentation

◆ __init__()

def mergeLHE.MG5LOLHEMerger.__init__ (   self,
  input_files,
  output_file,
**  kwargs 
)

Definition at line 284 of file mergeLHE.py.

284  def __init__(self, input_files, output_file, **kwargs):
285  super(MG5LOLHEMerger, self).__init__(input_files, output_file)
286  self._merger_script_url = \
287  'https://raw.githubusercontent.com/cms-sw/genproductions/5c1e865a6fbe3a762a28363835d9a804c9cf0dbe/bin/MadGraph5_aMCatNLO/Utilities/merge.pl'
288 

Member Function Documentation

◆ merge()

def mergeLHE.MG5LOLHEMerger.merge (   self)
Output the merged LHE

Reimplemented from mergeLHE.BaseLHEMerger.

Definition at line 289 of file mergeLHE.py.

289  def merge(self):
290  logging.info(
291  ('Use the merger script in genproductions dedicated for '
292  'MadGraph5-produced LHEs'))
293  os.system('curl -s -L %s | perl - %s %s.gz banner.txt' \
294  % (self._merger_script_url, ' '.join(self.input_files), self.output_file))
295  os.system('gzip -df %s.gz' % self.output_file)
296  os.system('rm banner.txt')
297 
298 

References mergeLHE.MG5LOLHEMerger._merger_script_url, mergeLHE.BaseLHEMerger.input_files, DTWorkflow.DTWorkflow.input_files, join(), mergeLHE.BaseLHEMerger.output_file, DTT0WireWorkflow.DTT0WireWorkflow.output_file, DTVdriftWorkflow.DTvdriftWorkflow.output_file, and DTTtrigWorkflow.DTttrigWorkflow.output_file.

Member Data Documentation

◆ _merger_script_url

mergeLHE.MG5LOLHEMerger._merger_script_url
private
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
MatrixUtil.merge
def merge(dictlist, TELL=False)
Definition: MatrixUtil.py:201