CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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__ (self, input_files, output_file, kwargs)
 
def merge (self)
 
- Public Member Functions inherited from mergeLHE.BaseLHEMerger
def __init__ (self, input_files, output_file)
 
def merge (self)
 

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 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ merge()

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.

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 
int merge(int argc, char *argv[])
Definition: DMRmerge.cc:37
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Member Data Documentation

◆ _merger_script_url

mergeLHE.MG5LOLHEMerger._merger_script_url
private