5 for stream
in process.streams.parameterNames_():
6 streamPaths = cms.vstring()
8 for dataset
in getattr( process.streams, stream ):
10 setattr( process,
'hltPreDataset'+dataset, cms.EDFilter(
"HLTPrescaler", L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" ), offset = cms.uint32( 0 ) ) )
12 paths = getattr( process.datasets, dataset )
13 setattr( process,
'hltDataset'+dataset, cms.EDFilter(
"PathStatusFilter" , verbose = cms.untracked.bool(
False ), logicalExpression = cms.string(
' or '.
join(paths) ) ) )
15 datasetPath =
'Dataset_'+dataset+
'_v1'
16 setattr( process, datasetPath, cms.Path( process.hltGtStage2Digis + getattr( process ,
'hltPreDataset'+dataset ) + getattr( process,
'hltDataset'+dataset ) + process.HLTEndSequence ) )
18 process.HLTSchedule.insert( process.HLTSchedule.index( process.HLTriggerFinalPath ), getattr( process, datasetPath ) )
19 setattr( process.datasets, dataset, cms.vstring( datasetPath ) )
20 streamPaths.append( datasetPath )
22 getattr( process,
'hltOutput'+stream ).SelectEvents.SelectEvents = streamPaths