5 Scenario supporting proton collisions 8 from __future__
import print_function
14 from Configuration.DataProcessing.Utils
import stepALCAPRODUCER,stepSKIMPRODUCER,addMonitoring,dictIO,dqmIOSource,harvestingMode,dqmSeq,gtNameAndConnect
15 import FWCore.ParameterSet.Config
as cms
16 from Configuration.DataProcessing.RecoTLR
import customisePrompt,customiseExpress
20 Scenario.__init__(self)
23 self.
cbSc=self.__class__.__name__
30 Implement configuration building for data processing for proton 37 if 'repacked' in args:
38 if args[
'repacked'] ==
True:
39 options.isRepacked =
True 41 options.isRepacked =
False 49 Proton collision data taking prompt reco 54 if (
"PhysicsSkims" in args) :
58 options.__dict__.update(defaultOptions.__dict__)
59 options.scenario = self.
cbSc 60 if (
'nThreads' in args) :
61 options.nThreads=args[
'nThreads']
67 for a
in args[
'outputs']:
68 if a[
'dataTier'] ==
'MINIAOD':
74 options.runUnscheduled=
True 79 options.customisation_file=args[
'customs']
85 options.step =
'RAW2DIGI,L1Reco,RECO'+self.
recoSeq+eiStep+step+PhysicsSkimStep+miniAODStep+
',DQM'+dqmStep+
',ENDJOB' 90 process = cms.Process(
'RECO', cms.ModifierChain(self.eras, self.
promptModifiers) )
91 cb =
ConfigBuilder(options, process = process, with_output =
True)
94 process.source = cms.Source(
"PoolSource",
95 fileNames = cms.untracked.vstring()
108 Proton collision data taking express processing 111 skims = args[
'skims']
113 pclWkflws = [x
for x
in skims
if "PromptCalibProd" in x]
114 for wfl
in pclWkflws:
120 options.__dict__.update(defaultOptions.__dict__)
121 options.scenario = self.
cbSc 122 if (
'nThreads' in args) :
123 options.nThreads=args[
'nThreads']
129 options.step =
'RAW2DIGI,L1Reco,RECO'+self.
recoSeq+eiStep+step+
',DQM'+dqmStep+
',ENDJOB' 135 options.filein =
'tobeoverwritten.xyz' 136 if 'inputSource' in args:
137 options.filetype = args[
'inputSource']
138 process = cms.Process(
'RECO', cms.ModifierChain(self.eras, self.
expressModifiers) )
140 if 'customs' in args:
141 options.customisation_file=args[
'customs']
145 cb =
ConfigBuilder(options, process = process, with_output =
True, with_input =
True)
156 _visualizationProcessing_ 161 options.__dict__.update(defaultOptions.__dict__)
162 options.scenario = self.
cbSc 165 if 'preFilter' in args:
166 options.step +=
'FILTER:'+args[
'preFilter']+
',' 172 options.step +=
'RAW2DIGI,L1Reco,RECO'+eiStep+
',ENDJOB' 177 options.timeoutOutput =
True 179 options.filein =
'tobeoverwritten.xyz' 181 if 'inputSource' in args:
182 options.filetype = args[
'inputSource']
185 options.filetype =
'DQMDAQ' 187 print(
"Using %s source"%options.filetype)
189 process = cms.Process(
'RECO', cms.ModifierChain(self.eras, self.
visModifiers) )
191 if 'customs' in args:
192 options.customisation_file=args[
'customs']
196 cb =
ConfigBuilder(options, process = process, with_output =
True, with_input =
True)
215 AlcaReco processing & skims for proton collisions 220 pclWflws = [x
for x
in skims
if "PromptCalibProd" in x]
221 skims = [x
for x
in skims
if x
not in pclWflws]
224 step +=
'ALCA:'+(
'+'.
join(pclWflws))
229 step +=
"ALCAOUTPUT:"+(
'+'.
join(skims))
232 options.__dict__.update(defaultOptions.__dict__)
233 options.scenario = self.
cbSc 235 options.conditions = args[
'globaltag']
if 'globaltag' in args
else 'None' 236 if 'globalTagConnect' in args
and args[
'globalTagConnect'] !=
'':
237 options.conditions +=
','+args[
'globalTagConnect']
239 options.triggerResultsProcess =
'RECO' 241 if 'customs' in args:
242 options.customisation_file=args[
'customs']
244 process = cms.Process(
'ALCA', self.eras)
248 process.source = cms.Source(
250 fileNames = cms.untracked.vstring()
258 methodToCall = getattr(process,
'ALCARECOStream'+wfl)
259 methodToCall.dataset.dataTier = cms.untracked.string(
'ALCAPROMPT')
268 Proton collisions data taking DQM Harvesting 271 options = defaultOptions
272 options.scenario = self.
cbSc 273 options.step =
"HARVESTING"+
dqmSeq(args,
':dqmHarvesting')
274 options.name =
"EDMtoMEConvert" 277 process = cms.Process(
"HARVESTING", self.eras)
280 if 'customs' in args:
281 options.customisation_file=args[
'customs']
284 configBuilder.prepare()
294 Proton collisions data taking AlCa Harvesting 299 skims = args[
'skims']
302 if 'alcapromptdataset' in args:
303 skims.append(
'@'+args[
'alcapromptdataset'])
305 if len(skims) == 0:
return None 306 options = defaultOptions
307 options.scenario = self.
cbSc if hasattr(self,
'cbSc')
else self.__class__.__name__
308 options.step =
"ALCAHARVEST:"+(
'+'.
join(skims))
309 options.name =
"ALCAHARVEST" 312 process = cms.Process(
"ALCAHARVEST", self.eras)
313 process.source = cms.Source(
"PoolSource")
315 if 'customs' in args:
316 options.customisation_file=args[
'customs']
319 configBuilder.prepare()
324 process.source.processingMode = cms.untracked.string(
'RunsAndLumis')
325 process.source.fileNames = cms.untracked(cms.vstring())
326 process.maxEvents.input = -1
327 process.dqmSaver.workflow = datasetName
335 skimming method overload for the prompt skiming 338 options = defaultOptions
339 options.scenario = self.
cbSc if hasattr(self,
'cbSc')
else self.__class__.__name__
340 options.step =
"SKIM:"+(
'+'.
join(skims))
341 options.name =
"SKIM" 343 process = cms.Process(
"SKIM", self.eras)
344 process.source = cms.Source(
"PoolSource")
346 if 'customs' in args:
347 options.customisation_file=args[
'customs']
350 configBuilder.prepare()
355 def repack(self, **args): 356 options = defaultOptions 358 options.filein='file.dat' 359 options.filetype='DAT' 360 options.scenario = self.cbSc if hasattr(self,'cbSc') else self.__class__.__name__ 361 process = cms.Process('REPACK', self.eras) 362 cb = ConfigBuilder(options, process = process, with_output = True,with_input=True) 364 print cb.pythonCfgCode def stepSKIMPRODUCER(PhysicsSkims)
def harvestingMode(process, datasetName, args, rANDl=True)
def skimming(self, skims, globalTag, options)
def dqmSeq(args, default)
def gtNameAndConnect(globalTag, args)
def expressProcessing(self, globalTag, args)
def visualizationProcessing(self, globalTag, args)
def alcaSkim(self, skims, args)
S & print(S &os, JobReport::InputFile const &f)
def dictIO(options, args)
def alcaHarvesting(self, globalTag, datasetName, args)
def addMonitoring(process)
def stepALCAPRODUCER(skims)
def promptReco(self, globalTag, args)
def dqmHarvesting(self, datasetName, runNumber, globalTag, args)
static std::string join(char **cmd)
def _checkRepackedFlag(self, options, args)