5 if (_customInfo
is not None):
7 _maxEvents = _customInfo[
'maxEvents']
8 _globalTag = _customInfo[
'globalTag']
9 _inputFile = _customInfo[
'inputFile']
10 _realData = _customInfo[
'realData']
11 _fastSim = _customInfo[
'fastSim']
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?")
20 cmsRunOptions.register(
'fastSim' ,_fastSim ,cmsRunOptions.multiplicity.singleton,cmsRunOptions.varType.bool,
"Fast Sim ?")
22 cmsRunOptions.parseArguments()
27 _maxEvents = cmsRunOptions.maxEvents
28 _globalTag = cmsRunOptions.globalTag
29 _inputFile = cmsRunOptions.inputFiles
30 _realData = cmsRunOptions.realData
31 _fastSim = cmsRunOptions.fastSim
35 _maxEvents = cms.untracked.int32( _maxEvents )
36 if hasattr(process,
'maxEvents'):
37 process.maxEvents.input = _maxEvents
39 process.maxEvents = cms.untracked.PSet( input = _maxEvents )
43 _globalTag = _customInfo[
'globalTags'][_realData]
45 if hasattr(process,
'GlobalTag'):
46 from Configuration.AlCa.GlobalTag_condDBv2
import GlobalTag
47 process.GlobalTag =
GlobalTag(process.GlobalTag, _globalTag,
'')
50 if _inputFile[0] ==
"@":
51 _inputFile[0] = _customInfo[
'inputFiles'][_realData]
53 if hasattr(process,
'source'):
54 process.source.fileNames = cms.untracked.vstring( _inputFile )
58 from HLTrigger.Configuration.customizeHLTforMC
import customizeHLTforMC
60 if _customInfo[
'menuType'] ==
"HIon":
61 from HLTrigger.Configuration.CustomConfigs
import MassReplaceInputTag
67 from HLTrigger.Configuration.customizeHLTforCMSSW
import customiseHLTforCMSSW