6 for stream
in process.streams.parameterNames_():
7 streamPaths = cms.vstring()
9 for dataset
in getattr( process.streams, stream ):
11 setattr( process,
'hltPreDataset'+dataset, cms.EDFilter(
"HLTPrescaler", L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" ), offset = cms.uint32( 0 ) ) )
13 paths = getattr( process.datasets, dataset )
14 setattr( process,
'hltDataset'+dataset, cms.EDFilter(
"PathStatusFilter" , verbose = cms.untracked.bool(
False ), logicalExpression = cms.string(
' or '.
join(paths) ) ) )
16 datasetPath =
'Dataset_'+dataset+
'_v1'
17 setattr( process, datasetPath, cms.Path( process.hltGtStage2Digis + getattr( process ,
'hltPreDataset'+dataset ) + getattr( process,
'hltDataset'+dataset ) + process.HLTEndSequence ) )
19 process.schedule.insert( process.schedule.index( process.HLTriggerFinalPath ), getattr( process, datasetPath ) )
20 setattr( process.datasets, dataset, cms.vstring( datasetPath ) )
21 streamPaths.append( datasetPath )
23 getattr( process,
'hltOutput'+stream ).SelectEvents.SelectEvents = streamPaths
def customizeHLTforNewDatasetDefinition
static std::string join(char **cmd)