5 Scenario supporting proton collisions
13 from Configuration.DataProcessing.Utils
import stepALCAPRODUCER,addMonitoring,dictIO,dqmIOSource,harvestingMode,dqmSeq
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
39 options.__dict__.update(defaultOptions.__dict__)
40 options.scenario = self.
cbSc
41 options.step =
'RAW2DIGI,L1Reco,RECO'+self.
recoSeq+step+
',DQM'+dqmStep+
',ENDJOB'
43 options.conditions = globalTag
45 process = cms.Process(
'RECO')
46 cb =
ConfigBuilder(options, process = process, with_output =
True)
49 process.source = cms.Source(
"PoolSource",
50 fileNames = cms.untracked.vstring()
63 Proton collision data taking express processing
68 pclWkflws = [x
for x
in skims
if "PromptCalibProd" in x]
75 options.__dict__.update(defaultOptions.__dict__)
76 options.scenario = self.
cbSc
77 options.step =
'RAW2DIGI,L1Reco,RECO'+step+
',DQM'+dqmStep+
',ENDJOB'
79 options.conditions = globalTag
80 options.filein =
'tobeoverwritten.xyz'
81 if 'inputSource' in args:
82 options.fileType = args[
'inputSource']
83 process = cms.Process(
'RECO')
84 cb =
ConfigBuilder(options, process = process, with_output =
True, with_input =
True)
95 _visualizationProcessing_
100 options.__dict__.update(defaultOptions.__dict__)
101 options.scenario = self.
cbSc
104 if 'preFilter' in args:
105 options.step +=
'FILTER:'+args[
'preFilter']+
','
107 options.step +=
'RAW2DIGI,L1Reco,RECO,ENDJOB'
111 options.conditions = globalTag
112 options.timeoutOutput =
True
114 options.filein =
'tobeoverwritten.xyz'
116 if 'inputSource' in args:
117 options.filetype = args[
'inputSource']
120 options.filetype =
'DQMDAQ'
122 print "Using %s source"%options.filetype
124 process = cms.Process(
'RECO')
125 cb =
ConfigBuilder(options, process = process, with_output =
True, with_input =
True)
144 AlcaReco processing & skims for proton collisions
149 pclWflws = [x
for x
in skims
if "PromptCalibProd" in x]
159 step +=
"ALCAOUTPUT:"+(
'+'.
join(skims))
162 options.__dict__.update(defaultOptions.__dict__)
163 options.scenario = self.
cbSc
165 options.conditions = args[
'globaltag']
if 'globaltag' in args
else 'None'
166 options.triggerResultsProcess =
'RECO'
168 process = cms.Process(
'ALCA')
172 process.source = cms.Source(
174 fileNames = cms.untracked.vstring()
182 methodToCall = getattr(process,
'ALCARECOStream'+wfl)
183 methodToCall.dataset.dataTier = cms.untracked.string(
'ALCAPROMPT')
192 Proton collisions data taking DQM Harvesting
195 options = defaultOptions
196 options.scenario = self.
cbSc
197 options.step =
"HARVESTING"+
dqmSeq(args,
':dqmHarvesting')
198 options.name =
"EDMtoMEConvert"
199 options.conditions = globalTag
201 process = cms.Process(
"HARVESTING")
204 configBuilder.prepare()
214 Proton collisions data taking AlCa Harvesting
217 if not 'skims' in args:
return None
218 options = defaultOptions
219 options.scenario = self.
cbSc if hasattr(self,
'cbSc')
else self.__class__.__name__
220 options.step =
"ALCAHARVEST:"+(
'+'.
join(args[
'skims']))
221 options.name =
"ALCAHARVEST"
222 options.conditions = globalTag
224 process = cms.Process(
"ALCAHARVEST")
225 process.source = cms.Source(
"PoolSource")
227 configBuilder.prepare()
232 process.source.processingMode = cms.untracked.string(
'RunsAndLumis')
233 process.source.fileNames = cms.untracked(cms.vstring())
234 process.maxEvents.input = -1
235 process.dqmSaver.workflow = datasetName
243 skimming method overload for the prompt skiming
246 options = defaultOptions
247 options.scenario = self.
cbSc if hasattr(self,
'cbSc')
else self.__class__.__name__
248 options.step =
"SKIM:"+(
'+'.
join(skims))
249 options.name =
"SKIM"
250 options.conditions = globalTag
251 process = cms.Process(
"SKIM")
252 process.source = cms.Source(
"PoolSource")
254 configBuilder.prepare()
259 def repack(self, **args):
260 options = defaultOptions
262 options.filein='file.dat'
263 options.filetype='DAT'
264 options.scenario = self.cbSc if hasattr(self,'cbSc') else self.__class__.__name__
265 process = cms.Process('REPACK')
266 cb = ConfigBuilder(options, process = process, with_output = True,with_input=True)
268 print cb.pythonCfgCode
def visualizationProcessing
static std::string join(char **cmd)