A single hadd job
Definition at line 41 of file rhadd.py.
◆ __init__()
def rhadd.haddJob.__init__ |
( |
|
self, |
|
|
|
inputFiles, |
|
|
|
outputFile |
|
) |
| |
Definition at line 43 of file rhadd.py.
43 def __init__(self, inputFiles, outputFile):
44 self._inputFiles = inputFiles
45 self._outputFile = outputFile
◆ __call__()
def rhadd.haddJob.__call__ |
( |
|
self | ) |
|
Wrapper to call my own exe function and return the exit code of hadd
Definition at line 79 of file rhadd.py.
80 '''Wrapper to call my own exe function and return the exit code of hadd'''
◆ __str__()
def rhadd.haddJob.__str__ |
( |
|
self | ) |
|
Definition at line 76 of file rhadd.py.
77 return str(self._inputFiles) +
' -> ' +
str(self._outputFile)
◆ exe()
def rhadd.haddJob.exe |
( |
|
self | ) |
|
Execute the hadd command
Definition at line 61 of file rhadd.py.
62 '''Execute the hadd command'''
63 mergeCmd = [
'hadd',
'-f']
64 mergeCmd.append(self._outputFile)
65 mergeCmd.extend(self._inputFiles)
67 logging.info(
'Will now execute merge: %s' %
' '.
join(mergeCmd))
69 job = Popen(mergeCmd, stdout=PIPE, stderr=STDOUT, bufsize=1, close_fds=
True)
70 while job.poll()
is None:
71 output.append(job.stdout.readline().strip())
72 self._exitCode = job.returncode
73 if self._exitCode != 0:
74 logging.warning(
'Non zero return code from hadd. STDOUT/ERR follows:\n%s' % os.linesep.join(output))
◆ exitCode() [1/2]
def rhadd.haddJob.exitCode |
( |
|
self | ) |
|
◆ exitCode() [2/2]
def rhadd.haddJob.exitCode |
( |
|
self, |
|
|
|
value |
|
) |
| |
Definition at line 58 of file rhadd.py.
58 def exitCode(self, value):
59 self._exitCode = value
◆ outputFile()
def rhadd.haddJob.outputFile |
( |
|
self | ) |
|
Definition at line 49 of file rhadd.py.
50 return(self._outputFile)
◆ _exitCode
◆ _inputFiles
rhadd.haddJob._inputFiles |
|
private |
◆ _outputFile
rhadd.haddJob._outputFile |
|
private |
The documentation for this class was generated from the following file: