Definition at line 196 of file BeamSpotPostProcessing.py.
◆ run()
def python.BeamSpotPostProcessing.MergeNt.run |
( |
|
self | ) |
|
Definition at line 197 of file BeamSpotPostProcessing.py.
198 ntFileName = self.getFileName(
'-nt.root')
199 if os.path.exists(
'/'.
join([self.taskDir,ntFileName])):
200 self.logExec(
'cd %s; rm -f %s' % (self.taskDir,ntFileName))
201 postProcFiles = self.taskFileList(
'*-nt.root',
'POSTPROCESSING',self.jobName)
202 self.log(text=
'Found %i ntuple files from POSTPROCESSING jobs ...' % len(postProcFiles))
203 completedFiles = self.taskFileList(
'*-nt.root',
'COMPLETED',self.jobName)
204 self.log(text=
'Found %i ntuple files from COMPLETED jobs ...' % len(completedFiles))
205 ntFiles =
sorted(postProcFiles+completedFiles)
208 self.hadd(self.taskDir,ntFileName,ntFiles)
209 self.addResult(ntFileName)
211 raise PostProcessingError(
'WARNING: No beam spot ntuple files to merge',self.executedSteps)
The documentation for this class was generated from the following file: