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'
67 process = cms.Process(
'RECO')
68 cb =
ConfigBuilder(options, process = process, with_output =
True)
71 process.source = cms.Source(
"PoolSource",
72 fileNames = cms.untracked.vstring()
85 Proton collision data taking express processing
90 pclWkflws = [x
for x
in skims
if "PromptCalibProd" in x]
97 options.__dict__.update(defaultOptions.__dict__)
98 options.scenario = self.
cbSc
101 if self.
cbSc ==
'pp':
104 options.step =
'RAW2DIGI,L1Reco,RECO'+eiStep+step+
',DQM'+dqmStep+
',ENDJOB'
107 options.filein =
'tobeoverwritten.xyz'
108 if 'inputSource' in args:
109 options.filetype = args[
'inputSource']
110 process = cms.Process(
'RECO')
112 if 'customs' in args:
113 options.customisation_file=args[
'customs']
115 cb =
ConfigBuilder(options, process = process, with_output =
True, with_input =
True)
126 _visualizationProcessing_
131 options.__dict__.update(defaultOptions.__dict__)
132 options.scenario = self.
cbSc
135 if 'preFilter' in args:
136 options.step +=
'FILTER:'+args[
'preFilter']+
','
139 if self.
cbSc ==
'pp':
142 options.step +=
'RAW2DIGI,L1Reco,RECO'+eiStep+
',ENDJOB'
147 options.timeoutOutput =
True
149 options.filein =
'tobeoverwritten.xyz'
151 if 'inputSource' in args:
152 options.filetype = args[
'inputSource']
155 options.filetype =
'DQMDAQ'
157 print "Using %s source"%options.filetype
159 process = cms.Process(
'RECO')
161 if 'customs' in args:
162 options.customisation_file=args[
'customs']
164 cb =
ConfigBuilder(options, process = process, with_output =
True, with_input =
True)
183 AlcaReco processing & skims for proton collisions
188 pclWflws = [x
for x
in skims
if "PromptCalibProd" in x]
189 skims =
filter(
lambda x: x
not in pclWflws, skims)
192 step +=
'ALCA:'+(
'+'.
join(pclWflws))
197 step +=
"ALCAOUTPUT:"+(
'+'.
join(skims))
200 options.__dict__.update(defaultOptions.__dict__)
201 options.scenario = self.
cbSc
203 options.conditions = args[
'globaltag']
if 'globaltag' in args
else 'None'
204 if args.has_key(
'globalTagConnect')
and args[
'globalTagConnect'] !=
'':
205 options.conditions +=
','+args[
'globalTagConnect']
207 options.triggerResultsProcess =
'RECO'
209 if 'customs' in args:
210 options.customisation_file=args[
'customs']
212 process = cms.Process(
'ALCA')
216 process.source = cms.Source(
218 fileNames = cms.untracked.vstring()
226 methodToCall = getattr(process,
'ALCARECOStream'+wfl)
227 methodToCall.dataset.dataTier = cms.untracked.string(
'ALCAPROMPT')
236 Proton collisions data taking DQM Harvesting
239 options = defaultOptions
240 options.scenario = self.
cbSc
241 options.step =
"HARVESTING"+
dqmSeq(args,
':dqmHarvesting')
242 options.name =
"EDMtoMEConvert"
245 process = cms.Process(
"HARVESTING")
248 if 'customs' in args:
249 options.customisation_file=args[
'customs']
252 configBuilder.prepare()
262 Proton collisions data taking AlCa Harvesting
267 skims = args[
'skims']
270 if 'alcapromptdataset' in args:
271 skims.append(
'@'+args[
'alcapromptdataset'])
273 if len(skims) == 0:
return None
274 options = defaultOptions
275 options.scenario = self.
cbSc if hasattr(self,
'cbSc')
else self.__class__.__name__
276 options.step =
"ALCAHARVEST:"+(
'+'.
join(skims))
277 options.name =
"ALCAHARVEST"
280 process = cms.Process(
"ALCAHARVEST")
281 process.source = cms.Source(
"PoolSource")
283 if 'customs' in args:
284 options.customisation_file=args[
'customs']
287 configBuilder.prepare()
292 process.source.processingMode = cms.untracked.string(
'RunsAndLumis')
293 process.source.fileNames = cms.untracked(cms.vstring())
294 process.maxEvents.input = -1
295 process.dqmSaver.workflow = datasetName
303 skimming method overload for the prompt skiming
306 options = defaultOptions
307 options.scenario = self.
cbSc if hasattr(self,
'cbSc')
else self.__class__.__name__
308 options.step =
"SKIM:"+(
'+'.
join(skims))
309 options.name =
"SKIM"
311 process = cms.Process(
"SKIM")
312 process.source = cms.Source(
"PoolSource")
314 if 'customs' in args:
315 options.customisation_file=args[
'customs']
318 configBuilder.prepare()
323 def repack(self, **args):
324 options = defaultOptions
326 options.filein='file.dat'
327 options.filetype='DAT'
328 options.scenario = self.cbSc if hasattr(self,'cbSc') else self.__class__.__name__
329 process = cms.Process('REPACK')
330 cb = ConfigBuilder(options, process = process, with_output = True,with_input=True)
332 print cb.pythonCfgCode
def visualizationProcessing
static std::string join(char **cmd)