6 if (_customInfo
is not None):
8 _maxEvents = _customInfo[
'maxEvents']
9 _globalTag = _customInfo[
'globalTag']
10 _inputFile = _customInfo[
'inputFile']
11 _realData = _customInfo[
'realData']
12 _fastSim = _customInfo[
'fastSim']
14 import FWCore.ParameterSet.VarParsing
as VarParsing
17 cmsRunOptions.maxEvents = _maxEvents
18 cmsRunOptions.register(
'globalTag',_globalTag,cmsRunOptions.multiplicity.singleton,cmsRunOptions.varType.string,
"GlobalTag")
19 cmsRunOptions.inputFiles = _inputFile
20 cmsRunOptions.register(
'realData',_realData,cmsRunOptions.multiplicity.singleton,cmsRunOptions.varType.bool,
"Real Data?")
21 cmsRunOptions.register(
'fastSim' ,_fastSim ,cmsRunOptions.multiplicity.singleton,cmsRunOptions.varType.bool,
"Fast Sim ?")
23 cmsRunOptions.parseArguments()
28 _maxEvents = cmsRunOptions.maxEvents
29 _globalTag = cmsRunOptions.globalTag
30 _inputFile = cmsRunOptions.inputFiles
31 _realData = cmsRunOptions.realData
32 _fastSim = cmsRunOptions.fastSim
36 _maxEvents = cms.untracked.int32( _maxEvents )
37 if hasattr(process,
'maxEvents'):
38 process.maxEvents.input = _maxEvents
40 process.maxEvents = cms.untracked.PSet( input = _maxEvents )
44 _globalTag = _customInfo[
'globalTags'][_realData]
46 if hasattr(process,
'GlobalTag'):
47 from Configuration.AlCa.GlobalTag_condDBv2
import GlobalTag
48 process.GlobalTag =
GlobalTag(process.GlobalTag, _globalTag,
'')
51 if _inputFile[0] ==
"@":
52 _inputFile[0] = _customInfo[
'inputFiles'][_realData]
54 if hasattr(process,
'source'):
55 process.source.fileNames = cms.untracked.vstring( _inputFile )
59 from HLTrigger.Configuration.customizeHLTforMC
import customizeHLTforMC
61 if _customInfo[
'menuType'] ==
"HIon":
62 from HLTrigger.Configuration.CustomConfigs
import MassReplaceInputTag
68 from HLTrigger.Configuration.customizeHLTforCMSSW
import customiseHLTforCMSSW