Skip to content

Commit

Permalink
bypassVersionCheck should not apply to DQMRootSource
Browse files Browse the repository at this point in the history
  • Loading branch information
Norraphat committed Mar 11, 2019
1 parent bcf1f07 commit f9dc29e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Configuration/DataProcessing/python/Merge.py
Expand Up @@ -27,6 +27,7 @@ def mergeProcess(*inputFiles, **options):
- 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
- mergeNANO : to merge NanoAOD
- bypassVersionCheck : to bypass version check in case merging happened in lower version of CMSSW (i.e. UL HLT case). This will be TRUE by default.
"""
Expand Down Expand Up @@ -54,6 +55,7 @@ def mergeProcess(*inputFiles, **options):
process.add_(Service("DQMStore"))
else:
process.source = Source("PoolSource")
process.source.bypassVersionCheck = CfgTypes.untracked.bool(bypassVersionCheck)
if dropDQM:
process.source.inputCommands = CfgTypes.untracked.vstring('keep *','drop *_EDMtoMEConverter_*_*')
process.source.fileNames = CfgTypes.untracked(CfgTypes.vstring())
Expand All @@ -71,9 +73,6 @@ def mergeProcess(*inputFiles, **options):
else:
outMod = OutputModule("PoolOutputModule")

# To bypass the version check in the merge process (TRUE by default)
process.source.bypassVersionCheck = CfgTypes.untracked.bool(bypassVersionCheck)

outMod.fileName = CfgTypes.untracked.string(outputFilename)
if outputLFN != None:
outMod.logicalFileName = CfgTypes.untracked.string(outputLFN)
Expand Down

0 comments on commit f9dc29e

Please sign in to comment.