Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:18:35

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.options.numberOfThreads = 1
0006 process.options.numberOfStreams = 0
0007 process.options.wantSummary = True
0008 process.maxEvents.input = 100
0009 
0010 process.source = cms.Source('EmptySource')
0011 
0012 process.datasets = cms.PSet( 
0013     TestDatasetX = cms.vstring(
0014         'HLT_TestPathA_v1',
0015         'HLT_TestPathB_v1'
0016     ),
0017     TestDatasetY = cms.vstring(
0018         'HLT_TestPathC_v1'
0019     )
0020 )
0021 
0022 process.PrescaleService = cms.Service( "PrescaleService",
0023     lvl1Labels = cms.vstring(
0024         "PSColumn0",
0025         "PSColumn1"
0026     ),
0027     lvl1DefaultLabel = cms.string( "PSColumn0" ),
0028     forceDefault = cms.bool( False ),
0029     prescaleTable = cms.VPSet(
0030         cms.PSet(
0031             pathName = cms.string( "HLT_TestPathA_v1" ),
0032             prescales = cms.vuint32( 1, 5 )
0033         ),
0034         cms.PSet(
0035             pathName = cms.string( "HLT_TestPathB_v1" ),
0036             prescales = cms.vuint32( 2, 5 )
0037         ),
0038         cms.PSet(
0039             pathName = cms.string( "HLT_TestPathC_v1" ),
0040             prescales = cms.vuint32( 1, 5 )
0041         ),
0042         cms.PSet(
0043             pathName = cms.string( "Dataset_TestDatasetY" ),
0044             prescales = cms.vuint32( 4, 1 )
0045         )
0046     )
0047 )
0048 
0049 process.hltPSetMap = cms.EDProducer( "ParameterSetBlobProducer" )
0050 
0051 process.hltBoolFalse = cms.EDFilter( "HLTBool",
0052     result = cms.bool( False )
0053 )
0054 
0055 process.hltBoolEnd = cms.EDFilter( "HLTBool",
0056     result = cms.bool( True )
0057 )
0058 
0059 process.hltTriggerSummaryAOD = cms.EDProducer( "TriggerSummaryProducerAOD",
0060     throw = cms.bool( False ),
0061     processName = cms.string( "@" ),
0062     moduleLabelPatternsToMatch = cms.vstring( 'hlt*' ),
0063     moduleLabelPatternsToSkip = cms.vstring(  )
0064 )
0065 
0066 process.hltTriggerSummaryRAW = cms.EDProducer( "TriggerSummaryProducerRAW",
0067     processName = cms.string( "@" )
0068 )
0069 
0070 process.hltHLTriggerJSONMonitoring = cms.EDAnalyzer( "HLTriggerJSONMonitoring",
0071     triggerResults = cms.InputTag( 'TriggerResults::@currentProcess' )
0072 )
0073 
0074 process.hltDatasetTestDatasetX = cms.EDFilter( "TriggerResultsFilter",
0075     usePathStatus = cms.bool( True ),
0076     hltResults = cms.InputTag( "" ),
0077     l1tResults = cms.InputTag( "" ),
0078     l1tIgnoreMaskAndPrescale = cms.bool( False ),
0079     throw = cms.bool( True ),
0080     triggerConditions = cms.vstring(
0081       'HLT_TestPathA_v1 / 5',
0082       'HLT_TestPathB_v1 / 3'
0083     )
0084 )
0085 
0086 process.hltPreDatasetTestDatasetX = cms.EDFilter( "HLTPrescaler",
0087     offset = cms.uint32( 0 ),
0088     L1GtReadoutRecordTag = cms.InputTag( "" )
0089 )
0090 
0091 process.hltDatasetTestDatasetY = cms.EDFilter( "TriggerResultsFilter",
0092     usePathStatus = cms.bool( True ),
0093     hltResults = cms.InputTag( "" ),
0094     l1tResults = cms.InputTag( "" ),
0095     l1tIgnoreMaskAndPrescale = cms.bool( False ),
0096     throw = cms.bool( True ),
0097     triggerConditions = cms.vstring(
0098       'HLT_TestPathC_v1 / 10'
0099     )
0100 )
0101 
0102 process.hltPreDatasetTestDatasetY = cms.EDFilter( "HLTPrescaler",
0103     offset = cms.uint32( 0 ),
0104     L1GtReadoutRecordTag = cms.InputTag( "" )
0105 )
0106 
0107 process.hltPreTestPathA = cms.EDFilter( "HLTPrescaler",
0108     offset = cms.uint32( 0 ),
0109     L1GtReadoutRecordTag = cms.InputTag( "" )
0110 )
0111 
0112 process.hltPreTestPathB = cms.EDFilter( "HLTPrescaler",
0113     offset = cms.uint32( 0 ),
0114     L1GtReadoutRecordTag = cms.InputTag( "" )
0115 )
0116 
0117 process.hltPreTestPathC = cms.EDFilter( "HLTPrescaler",
0118     offset = cms.uint32( 0 ),
0119     L1GtReadoutRecordTag = cms.InputTag( "" )
0120 )
0121 
0122 process.HLTDatasetPathBeginSequence = cms.Sequence( )
0123 
0124 process.HLTBeginSequence = cms.Sequence( )
0125 
0126 process.HLTEndSequence = cms.Sequence( process.hltBoolEnd )
0127 
0128 process.HLTriggerFirstPath = cms.Path( process.hltPSetMap + process.hltBoolFalse )
0129 
0130 process.HLT_TestPathA_v1 = cms.Path( process.HLTBeginSequence + process.hltPreTestPathA + process.HLTEndSequence )
0131 
0132 process.HLT_TestPathB_v1 = cms.Path( process.HLTBeginSequence + process.hltPreTestPathB + process.HLTEndSequence )
0133 
0134 process.HLT_TestPathC_v1 = cms.Path( process.HLTBeginSequence + process.hltPreTestPathC + process.HLTEndSequence )
0135 
0136 process.HLTriggerFinalPath = cms.Path( process.hltTriggerSummaryAOD + process.hltTriggerSummaryRAW + process.hltBoolFalse )
0137 
0138 process.RatesMonitoring = cms.EndPath( process.hltHLTriggerJSONMonitoring )
0139 
0140 process.Dataset_TestDatasetX = cms.Path( process.HLTDatasetPathBeginSequence + process.hltDatasetTestDatasetX + process.hltPreDatasetTestDatasetX )
0141 
0142 process.Dataset_TestDatasetY = cms.Path( process.HLTDatasetPathBeginSequence + process.hltDatasetTestDatasetY + process.hltPreDatasetTestDatasetY )
0143 
0144 process.schedule = cms.Schedule(
0145     process.HLTriggerFirstPath,
0146     process.HLT_TestPathA_v1,
0147     process.HLT_TestPathB_v1,
0148     process.HLT_TestPathC_v1,
0149     process.HLTriggerFinalPath,
0150     process.RatesMonitoring,
0151     process.Dataset_TestDatasetX,
0152     process.Dataset_TestDatasetY
0153 )