fragment.HLTriggerFirstPath = cms.Path( fragment.hltGetConditions + fragment.hltGetRaw + fragment.hltBoolFalse ) fragment.HLT_Physics_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltPrePhysics + 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.hltBoolFalse ) fragment.HLTAnalyzerEndpath = cms.EndPath( fragment.hltGtDigis + fragment.hltPreHLTAnalyzerEndpath + fragment.hltL1GtTrigReport + fragment.hltTrigReport ) fragment.HLTSchedule = cms.Schedule( *(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_Random_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath, fragment.HLTAnalyzerEndpath )) # 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) # add specific customizations from HLTrigger.Configuration.customizeHLTforALL import customizeHLTforAll fragment = customizeHLTforAll(fragment,"Fake") from HLTrigger.Configuration.customizeHLTforCMSSW import customizeHLTforCMSSW fragment = customizeHLTforCMSSW(fragment,"Fake") # Eras-based customisations from HLTrigger.Configuration.Eras import modifyHLTforEras modifyHLTforEras(fragment)
if 'MessageLogger' in process.__dict__: process.MessageLogger.categories.append('TriggerSummaryProducerAOD') process.MessageLogger.categories.append('L1GtTrigReport') process.MessageLogger.categories.append('L1TGlobalSummary') process.MessageLogger.categories.append('HLTrigReport') process.MessageLogger.categories.append('FastReport') # add specific customizations _customInfo = {} _customInfo['menuType' ]= "Fake1" _customInfo['globalTags']= {} _customInfo['globalTags'][True ] = "auto:run2_hlt_Fake1" _customInfo['globalTags'][False] = "auto:run2_mc_Fake1" _customInfo['inputFiles']={} _customInfo['inputFiles'][True] = "file:RelVal_Raw_Fake1_DATA.root" _customInfo['inputFiles'][False] = "file:RelVal_Raw_Fake1_MC.root" _customInfo['maxEvents' ]= 100 _customInfo['globalTag' ]= "auto:run2_hlt_Fake1" _customInfo['inputFile' ]= ['file:RelVal_Raw_Fake1_DATA.root'] _customInfo['realData' ]= True from HLTrigger.Configuration.customizeHLTforALL import customizeHLTforAll process = customizeHLTforAll(process,"Fake1",_customInfo) from HLTrigger.Configuration.customizeHLTforCMSSW import customizeHLTforCMSSW process = customizeHLTforCMSSW(process,"Fake1") # Eras-based customisations from HLTrigger.Configuration.Eras import modifyHLTforEras modifyHLTforEras(process)
fragment.hltTriggerSummaryAOD + fragment.hltTriggerSummaryRAW + fragment.hltBoolFalse) fragment.HLTAnalyzerEndpath = cms.EndPath(fragment.hltGtStage2Digis + fragment.hltPreHLTAnalyzerEndpath + fragment.hltL1TGlobalSummary + fragment.hltTrigReport) fragment.HLTSchedule = cms.Schedule( *(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_Random_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath, fragment.HLTAnalyzerEndpath)) # 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) # add specific customizations from HLTrigger.Configuration.customizeHLTforALL import customizeHLTforAll fragment = customizeHLTforAll(fragment, "Fake2") from HLTrigger.Configuration.customizeHLTforCMSSW import customizeHLTforCMSSW fragment = customizeHLTforCMSSW(fragment, "Fake2") # Eras-based customisations from HLTrigger.Configuration.Eras import modifyHLTforEras modifyHLTforEras(fragment)
if 'MessageLogger' in process.__dict__: process.MessageLogger.categories.append('TriggerSummaryProducerAOD') process.MessageLogger.categories.append('L1GtTrigReport') process.MessageLogger.categories.append('L1TGlobalSummary') process.MessageLogger.categories.append('HLTrigReport') process.MessageLogger.categories.append('FastReport') # add specific customizations _customInfo = {} _customInfo['menuType' ]= "Fake1" _customInfo['globalTags']= {} _customInfo['globalTags'][True ] = "auto:run2_hlt_Fake1" _customInfo['globalTags'][False] = "auto:run2_mc_Fake1" _customInfo['inputFiles']={} _customInfo['inputFiles'][True] = "file:RelVal_Raw_Fake1_DATA.root" _customInfo['inputFiles'][False] = "file:RelVal_Raw_Fake1_MC.root" _customInfo['maxEvents' ]= 100 _customInfo['globalTag' ]= "auto:run2_hlt_Fake1" _customInfo['inputFile' ]= ['file:RelVal_Raw_Fake1_DATA.root'] _customInfo['realData' ]= True from HLTrigger.Configuration.customizeHLTforALL import customizeHLTforAll process = customizeHLTforAll(process,"Fake1",_customInfo) from HLTrigger.Configuration.customizeHLTforCMSSW import customizeHLTforCMSSW process = customizeHLTforCMSSW(process,"Fake1") # Eras-based customisations from HLTrigger.Configuration.Eras import modifyHLTforEras modifyHLTforEras(process)