_Merge_
Module that generates standard merge job configurations for use in any
standard processing
def Merge.mergeProcess |
( |
|
inputFiles, |
|
|
|
options |
|
) |
| |
_mergeProcess_
Creates and returns a merge process that will merge the provided
filenames
supported options:
- process_name : name of the process, defaults to Merge
- outputmod_label : label of the output module, defaults to Merged
- newDQMIO : specifies if the new DQM format should be used to merge the files
- output_file : sets the output file name
- output_lfn : sets the output LFN
Definition at line 17 of file Merge.py.
References PFJetToCaloProducer_cfi.Source, and harvestTrackValidationPlots.str.
Referenced by Scenario.Scenario.merge().
21 Creates and returns a merge process that will merge the provided 26 - process_name : name of the process, defaults to Merge 27 - outputmod_label : label of the output module, defaults to Merged 28 - newDQMIO : specifies if the new DQM format should be used to merge the files 29 - output_file : sets the output file name 30 - output_lfn : sets the output LFN 36 processName = options.get(
"process_name",
"Merge")
37 outputModLabel = options.get(
"outputmod_label",
"Merged")
38 outputFilename = options.get(
"output_file",
"Merged.root")
39 outputLFN = options.get(
"output_lfn",
None)
40 dropDQM = options.get(
"drop_dqm",
False)
41 newDQMIO = options.get(
"newDQMIO",
False)
42 mergeNANO = options.get(
"mergeNANO",
False)
46 process = Process(processName)
52 process.source =
Source(
"DQMRootSource")
53 process.add_(Service(
"DQMStore"))
55 process.source =
Source(
"PoolSource")
57 process.source.inputCommands = CfgTypes.untracked.vstring(
'keep *',
'drop *_EDMtoMEConverter_*_*')
58 process.source.fileNames = CfgTypes.untracked(CfgTypes.vstring())
59 for entry
in inputFiles:
60 process.source.fileNames.append(
str(entry))
66 outMod = OutputModule(
"DQMRootOutputModule")
68 outMod = OutputModule(
"NanoAODOutputModule",NANOAODEventContent.clone())
70 outMod = OutputModule(
"PoolOutputModule")
72 outMod.fileName = CfgTypes.untracked.string(outputFilename)
74 outMod.logicalFileName = CfgTypes.untracked.string(outputLFN)
75 setattr(process, outputModLabel, outMod)
77 process.outputPath = EndPath(outMod)
80
def mergeProcess(inputFiles, options)