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)
 
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 282 of file mergeLHE.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 287 of file mergeLHE.py.

287  def __init__(self, input_files, output_file, **kwargs):
288  super(MG5LOLHEMerger, self).__init__(input_files, output_file)
289  self._merger_script_url = \
290  'https://raw.githubusercontent.com/cms-sw/genproductions/5c1e865a6fbe3a762a28363835d9a804c9cf0dbe/bin/MadGraph5_aMCatNLO/Utilities/merge.pl'
291 
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 292 of file mergeLHE.py.

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

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

Member Data Documentation

◆ _merger_script_url

mergeLHE.MG5LOLHEMerger._merger_script_url
private