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 authored and srimanob committed Mar 12, 2019
1 parent defc586 commit 4846607
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Configuration/DataProcessing/python/Merge.py
Original file line number Diff line number Diff line change
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 @@ -72,9 +74,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 4846607

Please sign in to comment.