CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
customizeHLTforNewDatasetDefinition Namespace Reference

Functions

def customizeHLTforNewDatasetDefinition
 

Function Documentation

def customizeHLTforNewDatasetDefinition.customizeHLTforNewDatasetDefinition (   process)

Definition at line 3 of file customizeHLTforNewDatasetDefinition.py.

References join().

3 
5  # Loop over streams
6  for stream in process.streams.parameterNames_():
7  streamPaths = cms.vstring()
8  # Loop over datasets
9  for dataset in getattr( process.streams, stream ):
10  # Define dataset prescaler
11  setattr( process, 'hltPreDataset'+dataset, cms.EDFilter( "HLTPrescaler", L1GtReadoutRecordTag = cms.InputTag( "hltGtStage2Digis" ), offset = cms.uint32( 0 ) ) )
12  # Define dataset selection
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) ) ) )
15  # Create dataset path
16  datasetPath = 'Dataset_'+dataset+'_v1'
17  setattr( process, datasetPath, cms.Path( process.hltGtStage2Digis + getattr( process , 'hltPreDataset'+dataset ) + getattr( process, 'hltDataset'+dataset ) + process.HLTEndSequence ) )
18  # Append dataset path
19  process.schedule.insert( process.schedule.index( process.HLTriggerFinalPath ), getattr( process, datasetPath ) )
20  setattr( process.datasets, dataset, cms.vstring( datasetPath ) )
21  streamPaths.append( datasetPath )
22  # Set stream paths
23  getattr( process, 'hltOutput'+stream ).SelectEvents.SelectEvents = streamPaths
24 
25  return process
static std::string join(char **cmd)
Definition: RemoteFile.cc:19