193 '''Setup the cascade of merge jobs and execute each level in turn'''
197 jobGraph.append(haddStep(bunchNumber = args[
'bunchNumber'],
198 inputFiles = args[
'inputFiles'],
199 finalOutputFile = args[
'outputFile'], level = level))
201 while jobGraph[-1].numHadds > 1:
203 jobGraph.append(haddStep(bunchNumber = args[
'bunchNumber'],
204 inputFiles = jobGraph[-1].outputFiles,
205 finalOutputFile = args[
'outputFile'], level = level))
206 logging.debug(jobGraph[-1])
209 for i, jobs
in enumerate(jobGraph):
210 logging.info(
'Executing merge interation step %d' % i)
211 jobs.executeAll(args[
'parallelMerge'])
213 logging.info(
'Final merge completed successfully.')