5 Module that generates standard merge job configurations for use in any
12 from FWCore.ParameterSet.Modules
import OutputModule, Source, Service
13 import FWCore.ParameterSet.Types
as CfgTypes
20 Creates and returns a merge process that will merge the provided
25 - process_name : name of the process, defaults to Merge
26 - outputmod_label : label of the output module, defaults to Merged
27 - newDQMIO : specifies if the new DQM format should be used to merge the files
28 - output_file : sets the output file name
29 - output_lfn : sets the output LFN
35 processName = options.get(
"process_name",
"Merge")
36 outputModLabel = options.get(
"outputmod_label",
"Merged")
37 outputFilename = options.get(
"output_file",
"Merged.root")
38 outputLFN = options.get(
"output_lfn",
None)
39 dropDQM = options.get(
"drop_dqm",
False)
40 newDQMIO = options.get(
"newDQMIO",
False)
45 process = Process(processName)
51 process.source =
Source(
"DQMRootSource")
52 process.add_(Service(
"DQMStore"))
54 process.source =
Source(
"PoolSource")
56 process.source.inputCommands = CfgTypes.untracked.vstring(
'keep *',
'drop *_EDMtoMEConverter_*_*')
57 process.source.fileNames = CfgTypes.untracked(CfgTypes.vstring())
58 for entry
in inputFiles:
59 process.source.fileNames.append(str(entry))
65 outMod = OutputModule(
"DQMRootOutputModule")
67 outMod = OutputModule(
"PoolOutputModule")
68 outMod.fileName = CfgTypes.untracked.string(outputFilename)
70 outMod.logicalFileName = CfgTypes.untracked.string(outputLFN)
71 setattr(process, outputModLabel, outMod)
73 process.outputPath = EndPath(outMod)