CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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__
 
def merge
 
- Public Member Functions inherited from mergeLHE.BaseLHEMerger
def __init__
 
def merge
 

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

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

Definition at line 284 of file mergeLHE.py.

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

Member Function Documentation

def mergeLHE.MG5LOLHEMerger.merge (   self)

Definition at line 289 of file mergeLHE.py.

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.

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

Member Data Documentation

mergeLHE.MG5LOLHEMerger._merger_script_url
private

Definition at line 286 of file mergeLHE.py.

Referenced by mergeLHE.MG5LOLHEMerger.merge(), and mergeLHE.ExternalCppLHEMerger.merge().