6 if (_customInfo
is not None):
8 _maxEvents = _customInfo[
'maxEvents']
9 _globalTag = _customInfo[
'globalTag']
10 _inputFile = _customInfo[
'inputFile']
11 _realData = _customInfo[
'realData']
13 import FWCore.ParameterSet.VarParsing
as VarParsing
16 cmsRunOptions.maxEvents = _maxEvents
17 cmsRunOptions.register(
'globalTag',_globalTag,cmsRunOptions.multiplicity.singleton,cmsRunOptions.varType.string,
"GlobalTag")
18 cmsRunOptions.inputFiles = _inputFile
19 cmsRunOptions.register(
'realData',_realData,cmsRunOptions.multiplicity.singleton,cmsRunOptions.varType.bool,
"Real Data?")
21 cmsRunOptions.parseArguments()
26 _maxEvents = cmsRunOptions.maxEvents
27 _globalTag = cmsRunOptions.globalTag
28 _inputFile = cmsRunOptions.inputFiles
29 _realData = cmsRunOptions.realData
33 _maxEvents = cms.untracked.int32( _maxEvents )
34 if hasattr(process,
'maxEvents'):
35 process.maxEvents.input = _maxEvents
37 process.maxEvents = cms.untracked.PSet( input = _maxEvents )
41 _globalTag = _customInfo[
'globalTags'][_realData]
43 if hasattr(process,
'GlobalTag'):
44 from Configuration.AlCa.GlobalTag_condDBv2
import GlobalTag
45 process.GlobalTag =
GlobalTag(process.GlobalTag, _globalTag,
'')
49 if _inputFile[0] ==
"@":
50 _inputFile[0] = _customInfo[
'inputFiles'][_realData]
52 if hasattr(process,
'source'):
53 process.source.fileNames = cms.untracked.vstring( _inputFile )
57 from HLTrigger.Configuration.customizeHLTforMC
import customizeHLTforMC
59 if _customInfo[
'menuType'] ==
"HIon":
60 from HLTrigger.Configuration.CustomConfigs
import MassReplaceInputTag
66 from HLTrigger.Configuration.customizeHLTforCMSSW
import customiseHLTforCMSSW