_mergeProcess_
Creates and returns a merge process that will merge the provided
filenames
supported options:
- process_name : name of the procee, defaults to Merge
- output_file : sets the output file name
- output_lfn : sets the output LFN
Definition at line 16 of file Merge.py.
00017 :
00018 """
00019 _mergeProcess_
00020
00021 Creates and returns a merge process that will merge the provided
00022 filenames
00023
00024 supported options:
00025
00026 - process_name : name of the procee, defaults to Merge
00027 - output_file : sets the output file name
00028 - output_lfn : sets the output LFN
00029
00030 """
00031
00032
00033
00034 processName = options.get("process_name", "Merge")
00035 outputFilename = options.get("output_file", "Merged.root")
00036 outputLFN = options.get("output_lfn", None)
00037
00038
00039
00040
00041 process = Process(processName)
00042
00043
00044
00045
00046 process.source = Source("PoolSource")
00047 process.source.fileNames = CfgTypes.untracked(CfgTypes.vstring())
00048 for entry in inputFiles:
00049 process.source.fileNames.append(str(entry))
00050
00051
00052
00053
00054 process.Merged = OutputModule("PoolOutputModule")
00055 process.Merged.fileName = CfgTypes.untracked(CfgTypes.string(
00056 outputFilename))
00057
00058 if outputLFN != None:
00059 process.Merged.logicalFileName = CfgTypes.untracked(CfgTypes.string(
00060 outputLFN))
00061
00062
00063 process.outputPath = EndPath(process.Merged)
00064 return process