9 if hasattr(process,
'HLTSchedule'):
10 if process.schedule_() !=
None:
11 raise Exception(
'process.schedule already exists')
12 process.setSchedule_(process.HLTSchedule)
13 del process.HLTSchedule
15 if (_customInfo
is not None):
17 _maxEvents = _customInfo[
'maxEvents']
18 _globalTag = _customInfo[
'globalTag']
19 _inputFile = _customInfo[
'inputFile']
20 _realData = _customInfo[
'realData']
22 import FWCore.ParameterSet.VarParsing
as VarParsing
25 cmsRunOptions.maxEvents = _maxEvents
26 cmsRunOptions.register(
'globalTag',_globalTag,cmsRunOptions.multiplicity.singleton,cmsRunOptions.varType.string,
"GlobalTag")
27 cmsRunOptions.inputFiles = _inputFile
28 cmsRunOptions.register(
'realData',_realData,cmsRunOptions.multiplicity.singleton,cmsRunOptions.varType.bool,
"Real Data?")
30 cmsRunOptions.parseArguments()
35 _maxEvents = cmsRunOptions.maxEvents
36 _globalTag = cmsRunOptions.globalTag
37 _inputFile = cmsRunOptions.inputFiles
38 _realData = cmsRunOptions.realData
42 _maxEvents = cms.untracked.int32( _maxEvents )
43 if hasattr(process,
'maxEvents'):
44 process.maxEvents.input = _maxEvents
46 process.maxEvents = cms.untracked.PSet( input = _maxEvents )
50 _globalTag = _customInfo[
'globalTags'][_realData]
52 if hasattr(process,
'GlobalTag'):
53 from Configuration.AlCa.GlobalTag
import GlobalTag
54 process.GlobalTag =
GlobalTag(process.GlobalTag, _globalTag,
'')
58 if _inputFile[0] ==
"@":
59 _inputFile[0] = _customInfo[
'inputFiles'][_realData]
61 if hasattr(process,
'source'):
62 process.source.fileNames = cms.untracked.vstring( _inputFile )
66 if menuType ==
"HIon":
68 from HLTrigger.Configuration.CustomConfigs
import MassReplaceInputTag
69 process = MassReplaceInputTag(process,
"rawDataRepacker",
"rawDataCollector")
72 from HLTrigger.Configuration.customizeHLTforMC
import customizeHLTforMC
74 if menuType ==
"HIon":
75 from HLTrigger.Configuration.CustomConfigs
import MassReplaceInputTag
76 process = MassReplaceInputTag(process,
"rawDataRepacker",
"rawDataCollector")