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
33 Proton collision data taking prompt reco
38 if (args.has_key(
"PhysicsSkims")) :
42 options.__dict__.update(defaultOptions.__dict__)
43 options.scenario = self.
cbSc
49 for a
in args[
'outputs']:
50 if a[
'dataTier'] ==
'MINIAOD':
52 options.runUnscheduled=
True
56 options.customisation_file=args[
'customs']
62 options.step =
'RAW2DIGI,L1Reco,RECO'+self.
recoSeq+eiStep+step+PhysicsSkimStep+miniAODStep+
',DQM'+dqmStep+
',ENDJOB'
68 process = cms.Process(
'RECO')
69 cb =
ConfigBuilder(options, process = process, with_output =
True)
72 process.source = cms.Source(
"PoolSource",
73 fileNames = cms.untracked.vstring()
86 Proton collision data taking express processing
91 pclWkflws = [x
for x
in skims
if "PromptCalibProd" in x]
98 options.__dict__.update(defaultOptions.__dict__)
99 options.scenario = self.
cbSc
102 if self.
cbSc ==
'pp':
105 options.step =
'RAW2DIGI,L1Reco,RECO'+eiStep+step+
',DQM'+dqmStep+
',ENDJOB'
108 options.filein =
'tobeoverwritten.xyz'
109 if 'inputSource' in args:
110 options.filetype = args[
'inputSource']
111 process = cms.Process(
'RECO')
113 if 'customs' in args:
114 options.customisation_file=args[
'customs']
116 cb =
ConfigBuilder(options, process = process, with_output =
True, with_input =
True)
127 _visualizationProcessing_
132 options.__dict__.update(defaultOptions.__dict__)
133 options.scenario = self.
cbSc
136 if 'preFilter' in args:
137 options.step +=
'FILTER:'+args[
'preFilter']+
','
140 if self.
cbSc ==
'pp':
143 options.step +=
'RAW2DIGI,L1Reco,RECO'+eiStep+
',ENDJOB'
148 options.timeoutOutput =
True
150 options.filein =
'tobeoverwritten.xyz'
152 if 'inputSource' in args:
153 options.filetype = args[
'inputSource']
156 options.filetype =
'DQMDAQ'
158 print "Using %s source"%options.filetype
160 process = cms.Process(
'RECO')
162 if 'customs' in args:
163 options.customisation_file=args[
'customs']
165 cb =
ConfigBuilder(options, process = process, with_output =
True, with_input =
True)
184 AlcaReco processing & skims for proton collisions
189 pclWflws = [x
for x
in skims
if "PromptCalibProd" in x]
190 skims =
filter(
lambda x: x
not in pclWflws, skims)
193 step +=
'ALCA:'+(
'+'.
join(pclWflws))
198 step +=
"ALCAOUTPUT:"+(
'+'.
join(skims))
201 options.__dict__.update(defaultOptions.__dict__)
202 options.scenario = self.
cbSc
204 options.conditions = args[
'globaltag']
if 'globaltag' in args
else 'None'
205 if args.has_key(
'globalTagConnect')
and args[
'globalTagConnect'] !=
'':
206 options.conditions +=
','+args[
'globalTagConnect']
208 options.triggerResultsProcess =
'RECO'
210 if 'customs' in args:
211 options.customisation_file=args[
'customs']
213 process = cms.Process(
'ALCA')
217 process.source = cms.Source(
219 fileNames = cms.untracked.vstring()
227 methodToCall = getattr(process,
'ALCARECOStream'+wfl)
228 methodToCall.dataset.dataTier = cms.untracked.string(
'ALCAPROMPT')
237 Proton collisions data taking DQM Harvesting
240 options = defaultOptions
241 options.scenario = self.
cbSc
242 options.step =
"HARVESTING"+
dqmSeq(args,
':dqmHarvesting')
243 options.name =
"EDMtoMEConvert"
246 process = cms.Process(
"HARVESTING")
249 if 'customs' in args:
250 options.customisation_file=args[
'customs']
253 configBuilder.prepare()
263 Proton collisions data taking AlCa Harvesting
268 skims = args[
'skims']
271 if 'alcapromptdataset' in args:
272 skims.append(
'@'+args[
'alcapromptdataset'])
274 if len(skims) == 0:
return None
275 options = defaultOptions
276 options.scenario = self.
cbSc if hasattr(self,
'cbSc')
else self.__class__.__name__
277 options.step =
"ALCAHARVEST:"+(
'+'.
join(skims))
278 options.name =
"ALCAHARVEST"
281 process = cms.Process(
"ALCAHARVEST")
282 process.source = cms.Source(
"PoolSource")
284 if 'customs' in args:
285 options.customisation_file=args[
'customs']
288 configBuilder.prepare()
293 process.source.processingMode = cms.untracked.string(
'RunsAndLumis')
294 process.source.fileNames = cms.untracked(cms.vstring())
295 process.maxEvents.input = -1
296 process.dqmSaver.workflow = datasetName
304 skimming method overload for the prompt skiming
307 options = defaultOptions
308 options.scenario = self.
cbSc if hasattr(self,
'cbSc')
else self.__class__.__name__
309 options.step =
"SKIM:"+(
'+'.
join(skims))
310 options.name =
"SKIM"
312 process = cms.Process(
"SKIM")
313 process.source = cms.Source(
"PoolSource")
315 if 'customs' in args:
316 options.customisation_file=args[
'customs']
319 configBuilder.prepare()
324 def repack(self, **args):
325 options = defaultOptions
327 options.filein='file.dat'
328 options.filetype='DAT'
329 options.scenario = self.cbSc if hasattr(self,'cbSc') else self.__class__.__name__
330 process = cms.Process('REPACK')
331 cb = ConfigBuilder(options, process = process, with_output = True,with_input=True)
333 print cb.pythonCfgCode
def visualizationProcessing
static std::string join(char **cmd)