5 if (_customInfo
is not None):
7 _maxEvents = _customInfo[
'maxEvents']
8 _globalTag = _customInfo[
'globalTag']
9 _inputFile = _customInfo[
'inputFile']
10 _realData = _customInfo[
'realData']
12 import FWCore.ParameterSet.VarParsing
as VarParsing
15 cmsRunOptions.maxEvents = _maxEvents
16 cmsRunOptions.register(
'globalTag',_globalTag,cmsRunOptions.multiplicity.singleton,cmsRunOptions.varType.string,
"GlobalTag")
17 cmsRunOptions.inputFiles = _inputFile
18 cmsRunOptions.register(
'realData',_realData,cmsRunOptions.multiplicity.singleton,cmsRunOptions.varType.bool,
"Real Data?")
20 cmsRunOptions.parseArguments()
25 _maxEvents = cmsRunOptions.maxEvents
26 _globalTag = cmsRunOptions.globalTag
27 _inputFile = cmsRunOptions.inputFiles
28 _realData = cmsRunOptions.realData
32 _maxEvents = cms.untracked.int32( _maxEvents )
33 if hasattr(process,
'maxEvents'):
34 process.maxEvents.input = _maxEvents
36 process.maxEvents = cms.untracked.PSet( input = _maxEvents )
40 _globalTag = _customInfo[
'globalTags'][_realData]
42 if hasattr(process,
'GlobalTag'):
43 from Configuration.AlCa.GlobalTag
import GlobalTag
44 process.GlobalTag =
GlobalTag(process.GlobalTag, _globalTag,
'')
48 if _inputFile[0] ==
"@":
49 _inputFile[0] = _customInfo[
'inputFiles'][_realData]
51 if hasattr(process,
'source'):
52 process.source.fileNames = cms.untracked.vstring( _inputFile )
56 if menuType ==
"HIon":
58 from HLTrigger.Configuration.CustomConfigs
import MassReplaceInputTag
59 process = MassReplaceInputTag(process,
"rawDataRepacker",
"rawDataCollector")
62 from HLTrigger.Configuration.customizeHLTforMC
import customizeHLTforMC
64 if menuType ==
"HIon":
65 from HLTrigger.Configuration.CustomConfigs
import MassReplaceInputTag
66 process = MassReplaceInputTag(process,
"rawDataRepacker",
"rawDataCollector")
72 def customizeHLTforAll(process, menuType="GRun", _customInfo=None)