A single hadd job
Definition at line 42 of file rhadd.py.
◆ __init__()
def rhadd.haddJob.__init__ |
( |
|
self, |
|
|
|
inputFiles, |
|
|
|
outputFile |
|
) |
| |
Definition at line 44 of file rhadd.py.
44 def __init__(self, inputFiles, outputFile):
45 self._inputFiles = inputFiles
46 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 80 of file rhadd.py.
81 '''Wrapper to call my own exe function and return the exit code of hadd'''
◆ __str__()
def rhadd.haddJob.__str__ |
( |
|
self | ) |
|
Definition at line 77 of file rhadd.py.
78 return str(self._inputFiles) +
' -> ' +
str(self._outputFile)
◆ exe()
def rhadd.haddJob.exe |
( |
|
self | ) |
|
Execute the hadd command
Definition at line 62 of file rhadd.py.
63 '''Execute the hadd command'''
64 mergeCmd = [
'hadd',
'-f']
65 mergeCmd.append(self._outputFile)
66 mergeCmd.extend(self._inputFiles)
68 logging.info(
'Will now execute merge: %s' %
' '.
join(mergeCmd))
70 job = Popen(mergeCmd, stdout=PIPE, stderr=STDOUT, bufsize=1, close_fds=
True)
71 while job.poll()
is None:
72 output.append(job.stdout.readline().strip())
73 self._exitCode = job.returncode
74 if self._exitCode != 0:
75 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 59 of file rhadd.py.
59 def exitCode(self, value):
60 self._exitCode = value
◆ outputFile()
def rhadd.haddJob.outputFile |
( |
|
self | ) |
|
Definition at line 50 of file rhadd.py.
51 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: