5 Scenario supporting proton collisions
13 from Configuration.DataProcessing.Utils
import stepALCAPRODUCER,stepSKIMPRODUCER,addMonitoring,dictIO,dqmIOSource,harvestingMode,dqmSeq,gtNameAndConnect
15 from Configuration.DataProcessing.RecoTLR
import customisePrompt,customiseExpress
20 self.
cbSc=self.__class__.__name__
24 Implement configuration building for data processing for proton
31 if 'repacked' in args:
32 if args[
'repacked'] ==
True:
33 options.isRepacked =
True
35 options.isRepacked =
False
43 Proton collision data taking prompt reco
48 if (args.has_key(
"PhysicsSkims")) :
52 options.__dict__.update(defaultOptions.__dict__)
53 options.scenario = self.
cbSc
59 for a
in args[
'outputs']:
60 if a[
'dataTier'] ==
'MINIAOD':
66 options.runUnscheduled=
True
71 options.customisation_file=args[
'customs']
77 options.step =
'RAW2DIGI,L1Reco,RECO'+self.
recoSeq+eiStep+step+PhysicsSkimStep+miniAODStep+
',DQM'+dqmStep+
',ENDJOB'
82 process = cms.Process(
'RECO')
83 cb =
ConfigBuilder(options, process = process, with_output =
True)
86 process.source = cms.Source(
"PoolSource",
87 fileNames = cms.untracked.vstring()
100 Proton collision data taking express processing
103 skims = args[
'skims']
105 pclWkflws = [x
for x
in skims
if "PromptCalibProd" in x]
106 for wfl
in pclWkflws:
112 options.__dict__.update(defaultOptions.__dict__)
113 options.scenario = self.
cbSc
116 if self.
cbSc ==
'pp':
119 options.step =
'RAW2DIGI,L1Reco,RECO'+eiStep+step+
',DQM'+dqmStep+
',ENDJOB'
122 options.filein =
'tobeoverwritten.xyz'
123 if 'inputSource' in args:
124 options.filetype = args[
'inputSource']
125 process = cms.Process(
'RECO')
127 if 'customs' in args:
128 options.customisation_file=args[
'customs']
132 cb =
ConfigBuilder(options, process = process, with_output =
True, with_input =
True)
143 _visualizationProcessing_
148 options.__dict__.update(defaultOptions.__dict__)
149 options.scenario = self.
cbSc
152 if 'preFilter' in args:
153 options.step +=
'FILTER:'+args[
'preFilter']+
','
156 if self.
cbSc ==
'pp':
159 options.step +=
'RAW2DIGI,L1Reco,RECO'+eiStep+
',ENDJOB'
164 options.timeoutOutput =
True
166 options.filein =
'tobeoverwritten.xyz'
168 if 'inputSource' in args:
169 options.filetype = args[
'inputSource']
172 options.filetype =
'DQMDAQ'
174 print "Using %s source"%options.filetype
176 process = cms.Process(
'RECO')
178 if 'customs' in args:
179 options.customisation_file=args[
'customs']
183 cb =
ConfigBuilder(options, process = process, with_output =
True, with_input =
True)
202 AlcaReco processing & skims for proton collisions
207 pclWflws = [x
for x
in skims
if "PromptCalibProd" in x]
208 skims =
filter(
lambda x: x
not in pclWflws, skims)
211 step +=
'ALCA:'+(
'+'.
join(pclWflws))
216 step +=
"ALCAOUTPUT:"+(
'+'.
join(skims))
219 options.__dict__.update(defaultOptions.__dict__)
220 options.scenario = self.
cbSc
222 options.conditions = args[
'globaltag']
if 'globaltag' in args
else 'None'
223 if args.has_key(
'globalTagConnect')
and args[
'globalTagConnect'] !=
'':
224 options.conditions +=
','+args[
'globalTagConnect']
226 options.triggerResultsProcess =
'RECO'
228 if 'customs' in args:
229 options.customisation_file=args[
'customs']
231 process = cms.Process(
'ALCA')
235 process.source = cms.Source(
237 fileNames = cms.untracked.vstring()
245 methodToCall = getattr(process,
'ALCARECOStream'+wfl)
246 methodToCall.dataset.dataTier = cms.untracked.string(
'ALCAPROMPT')
255 Proton collisions data taking DQM Harvesting
258 options = defaultOptions
259 options.scenario = self.
cbSc
260 options.step =
"HARVESTING"+
dqmSeq(args,
':dqmHarvesting')
261 options.name =
"EDMtoMEConvert"
264 process = cms.Process(
"HARVESTING")
267 if 'customs' in args:
268 options.customisation_file=args[
'customs']
271 configBuilder.prepare()
281 Proton collisions data taking AlCa Harvesting
286 skims = args[
'skims']
289 if 'alcapromptdataset' in args:
290 skims.append(
'@'+args[
'alcapromptdataset'])
292 if len(skims) == 0:
return None
293 options = defaultOptions
294 options.scenario = self.
cbSc if hasattr(self,
'cbSc')
else self.__class__.__name__
295 options.step =
"ALCAHARVEST:"+(
'+'.
join(skims))
296 options.name =
"ALCAHARVEST"
299 process = cms.Process(
"ALCAHARVEST")
300 process.source = cms.Source(
"PoolSource")
302 if 'customs' in args:
303 options.customisation_file=args[
'customs']
306 configBuilder.prepare()
311 process.source.processingMode = cms.untracked.string(
'RunsAndLumis')
312 process.source.fileNames = cms.untracked(cms.vstring())
313 process.maxEvents.input = -1
314 process.dqmSaver.workflow = datasetName
322 skimming method overload for the prompt skiming
325 options = defaultOptions
326 options.scenario = self.
cbSc if hasattr(self,
'cbSc')
else self.__class__.__name__
327 options.step =
"SKIM:"+(
'+'.
join(skims))
328 options.name =
"SKIM"
330 process = cms.Process(
"SKIM")
331 process.source = cms.Source(
"PoolSource")
333 if 'customs' in args:
334 options.customisation_file=args[
'customs']
337 configBuilder.prepare()
342 def repack(self, **args):
343 options = defaultOptions
345 options.filein='file.dat'
346 options.filetype='DAT'
347 options.scenario = self.cbSc if hasattr(self,'cbSc') else self.__class__.__name__
348 process = cms.Process('REPACK')
349 cb = ConfigBuilder(options, process = process, with_output = True,with_input=True)
351 print cb.pythonCfgCode
def visualizationProcessing
static std::string join(char **cmd)