Example #1
0
    *(process.HLTriggerFirstPath, process.HLT_Physics_v1,
      process.HLT_Random_v1, process.HLT_ZeroBias_v1,
      process.HLTriggerFinalPath, process.AOutput, process.DQMOutput))

process.source = cms.Source("PoolSource",
                            fileNames=cms.untracked.vstring(
                                'file:RelVal_Raw_Fake_MC.root', ),
                            inputCommands=cms.untracked.vstring('keep *'))

# customise the HLT menu for running on MC
from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC
process = customizeHLTforMC(process)

# add release-specific customizations
from HLTrigger.Configuration.customizeHLTforCMSSW import customise
process = customise(process)

# adapt HLT modules to the correct process name
if 'hltTrigReport' in process.__dict__:
    process.hltTrigReport.HLTriggerResults = cms.InputTag(
        'TriggerResults', '', 'HLTFake')

if 'hltPreExpressCosmicsOutputSmart' in process.__dict__:
    process.hltPreExpressCosmicsOutputSmart.hltResults = cms.InputTag(
        'TriggerResults', '', 'HLTFake')

if 'hltPreExpressOutputSmart' in process.__dict__:
    process.hltPreExpressOutputSmart.hltResults = cms.InputTag(
        'TriggerResults', '', 'HLTFake')

if 'hltPreDQMForHIOutputSmart' in process.__dict__:
Example #2
0
process.HLTSchedule = cms.Schedule( *(process.HLTriggerFirstPath, process.HLT_Physics_v1, process.HLT_Random_v1, process.HLT_ZeroBias_v1, process.HLTriggerFinalPath, process.AOutput, process.DQMOutput ))


process.source = cms.Source( "PoolSource",
    fileNames = cms.untracked.vstring(
        'file:RelVal_Raw_Fake_DATA.root',
    ),
    inputCommands = cms.untracked.vstring(
        'keep *'
    )
)

# add release-specific customizations
from HLTrigger.Configuration.customizeHLTforCMSSW import customise
process = customise(process)

# adapt HLT modules to the correct process name
if 'hltTrigReport' in process.__dict__:
    process.hltTrigReport.HLTriggerResults                    = cms.InputTag( 'TriggerResults', '', 'HLTFake' )

if 'hltPreExpressCosmicsOutputSmart' in process.__dict__:
    process.hltPreExpressCosmicsOutputSmart.hltResults = cms.InputTag( 'TriggerResults', '', 'HLTFake' )

if 'hltPreExpressOutputSmart' in process.__dict__:
    process.hltPreExpressOutputSmart.hltResults        = cms.InputTag( 'TriggerResults', '', 'HLTFake' )

if 'hltPreDQMForHIOutputSmart' in process.__dict__:
    process.hltPreDQMForHIOutputSmart.hltResults       = cms.InputTag( 'TriggerResults', '', 'HLTFake' )

if 'hltPreDQMForPPOutputSmart' in process.__dict__:
Example #3
0
    L1GtReadoutRecordTag = cms.InputTag( "simGtDigis" ),
    offset = cms.uint32( 0 )
)
fragment.hltTriggerSummaryAOD = cms.EDProducer( "TriggerSummaryProducerAOD",
    processName = cms.string( "@" )
)
fragment.hltTriggerSummaryRAW = cms.EDProducer( "TriggerSummaryProducerRAW",
    processName = cms.string( "@" )
)

fragment.HLTriggerFirstPath = cms.Path( fragment.hltGetConditions + fragment.hltGetRaw + fragment.hltBoolFalse )
fragment.HLT_Physics_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltPrePhysics + cms.SequencePlaceholder( "HLTEndSequence" ) )
fragment.HLT_ZeroBias_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltL1sL1ZeroBias + fragment.hltPreZeroBias + cms.SequencePlaceholder( "HLTEndSequence" ) )
fragment.HLTriggerFinalPath = cms.Path( fragment.HLTBeginSequence + fragment.hltScalersRawToDigi + fragment.hltFEDSelector + fragment.hltTriggerSummaryAOD + fragment.hltTriggerSummaryRAW )


fragment.HLTSchedule = cms.Schedule( *(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath ))


# add release-specific customizations
from HLTrigger.Configuration.customizeHLTforCMSSW import customise
fragment = customise(fragment)

# dummyfy hltGetConditions in cff's
if 'hltGetConditions' in fragment.__dict__ and 'HLTriggerFirstPath' in fragment.__dict__ :
    fragment.hltDummyConditions = cms.EDFilter( "HLTBool",
        result = cms.bool( True )
    )
    fragment.HLTriggerFirstPath.replace(fragment.hltGetConditions,fragment.hltDummyConditions)

Example #4
0
                                   fragment.HLTEndSequence)
fragment.HLT_Random_v1 = cms.Path(fragment.hltRandomEventsFilter +
                                  fragment.hltGtDigis + fragment.hltPreRandom +
                                  fragment.HLTEndSequence)
fragment.HLT_ZeroBias_v1 = cms.Path(fragment.HLTBeginSequence +
                                    fragment.hltL1sL1ZeroBias +
                                    fragment.hltPreZeroBias +
                                    fragment.HLTEndSequence)
fragment.HLTriggerFinalPath = cms.Path(fragment.hltGtDigis +
                                       fragment.hltScalersRawToDigi +
                                       fragment.hltFEDSelector +
                                       fragment.hltTriggerSummaryAOD +
                                       fragment.hltTriggerSummaryRAW)

fragment.HLTSchedule = cms.Schedule(*(fragment.HLTriggerFirstPath,
                                      fragment.HLT_Physics_v1,
                                      fragment.HLT_Random_v1,
                                      fragment.HLT_ZeroBias_v1,
                                      fragment.HLTriggerFinalPath))

# add release-specific customizations
from HLTrigger.Configuration.customizeHLTforCMSSW import customise
fragment = customise(fragment)

# dummyfy hltGetConditions in cff's
if 'hltGetConditions' in fragment.__dict__ and 'HLTriggerFirstPath' in fragment.__dict__:
    fragment.hltDummyConditions = cms.EDFilter("HLTBool",
                                               result=cms.bool(True))
    fragment.HLTriggerFirstPath.replace(fragment.hltGetConditions,
                                        fragment.hltDummyConditions)