def customizeForSetup(process): inputFileNames = [ 'root://cms-xrd-global.cern.ch//store/mc/RunIISummer17DRStdmix/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/GEN-SIM-RAW/NZSFlatPU28to62_92X_upgrade2017_realistic_v10-v2/50000/0043237F-0DA1-E711-AD49-346AC29F11B8.root', 'root://cms-xrd-global.cern.ch//store/mc/RunIISummer17DRStdmix/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/GEN-SIM-RAW/NZSFlatPU28to62_92X_upgrade2017_realistic_v10-v2/50000/0078B52F-F5A0-E711-BCF6-0090FAA57360.root', 'root://cms-xrd-global.cern.ch//store/mc/RunIISummer17DRStdmix/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/GEN-SIM-RAW/NZSFlatPU28to62_92X_upgrade2017_realistic_v10-v2/50000/008E6A3C-BEA0-E711-BB0F-FA163E86F14F.root', 'root://cms-xrd-global.cern.ch//store/mc/RunIISummer17DRStdmix/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/GEN-SIM-RAW/NZSFlatPU28to62_92X_upgrade2017_realistic_v10-v2/50000/008F1C4B-10A1-E711-8E3C-008CFAC942DC.root', 'root://cms-xrd-global.cern.ch//store/mc/RunIISummer17DRStdmix/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/GEN-SIM-RAW/NZSFlatPU28to62_92X_upgrade2017_realistic_v10-v2/50000/00A1E603-FEA0-E711-A3B4-FA163E12D9E7.root', ] _customInfo2 = {} _customInfo2['menuType'] = "GRun" _customInfo2['globalTags'] = {} _customInfo2['globalTags'][True] = "auto:run2_hlt_GRun" _customInfo2['globalTags'][False] = "auto:run2_mc_GRun" _customInfo2['inputFiles'] = {} _customInfo2['inputFiles'][True] = "file:RelVal_Raw_GRun_DATA.root" _customInfo2['inputFiles'][False] = "file:RelVal_Raw_GRun_MC.root" _customInfo2['maxEvents'] = -1 _customInfo2['globalTag'] = "101X_mc2017_realistic_TSG_2018_04_09_20_43_53" _customInfo2['inputFile'] = inputFileNames _customInfo2['realData'] = False from HLTrigger.Configuration.customizeHLTforALL import customizeHLTforAll process = customizeHLTforAll(process, "GRun", _customInfo2)
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)
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)
'frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace( 'frontier://FrontierProd/', 'frontier://FrontierProd/') # fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool(False) process.GlobalTag.ReconnectEachRun = cms.untracked.bool(False) if 'MessageLogger' in process.__dict__: process.MessageLogger.categories.append('TriggerSummaryProducerAOD') process.MessageLogger.categories.append('L1GtTrigReport') process.MessageLogger.categories.append('HLTrigReport') process.MessageLogger.categories.append('FastReport') # add specific customizations _customInfo = {} _customInfo['menuType'] = "Fake" _customInfo['globalTags'] = {} _customInfo['globalTags'][True] = "auto:run1_hlt_Fake" _customInfo['globalTags'][False] = "auto:run1_mc_Fake" _customInfo['inputFiles'] = {} _customInfo['inputFiles'][True] = "file:RelVal_Raw_Fake_DATA.root" _customInfo['inputFiles'][False] = "file:RelVal_Raw_Fake_MC.root" _customInfo['maxEvents'] = 100 _customInfo['globalTag'] = "auto:run1_hlt_Fake" _customInfo['inputFile'] = ['file:RelVal_Raw_Fake_DATA.root'] _customInfo['realData'] = True _customInfo['fastSim'] = False from HLTrigger.Configuration.customizeHLTforALL import customizeHLTforAll process = customizeHLTforAll(process, _customInfo)
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.hltGtDigis + fragment.hltScalersRawToDigi + fragment.hltFEDSelector + fragment.hltTriggerSummaryAOD + fragment.hltTriggerSummaryRAW) fragment.HLTSchedule = cms.Schedule(*(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath)) # 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)
fragment.hltTriggerSummaryRAW = cms.EDProducer( "TriggerSummaryProducerRAW", processName = cms.string( "@" ) ) fragment.HLTL1UnpackerSequence = cms.Sequence( fragment.hltGtDigis + fragment.hltGctDigis + fragment.hltL1GtObjectMap + fragment.hltL1extraParticles ) fragment.HLTBeamSpot = cms.Sequence( fragment.hltScalersRawToDigi + fragment.hltOnlineBeamSpot ) fragment.HLTBeginSequence = cms.Sequence( fragment.hltTriggerType + fragment.HLTL1UnpackerSequence + fragment.HLTBeamSpot ) fragment.HLTEndSequence = cms.Sequence( fragment.hltBoolEnd ) 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.HLTSchedule = cms.Schedule( *(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_Random_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath )) # 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)
_customInfo['globalTags'] = {} _customInfo['globalTags'][ True] = "106X_upgrade2021_realistic_v5" #"auto:phase1_2021_realistic"#106X_mc2017_realistic_v3" _customInfo['globalTags'][ False] = "106X_upgrade2021_realistic_v5" #"auto:phase1_2021_realistic"#106X_mc2017_realistic_v3" _customInfo['inputFiles'] = {} _customInfo['inputFiles'][True] = "file:default.root" _customInfo['inputFiles'][False] = [options.inputfile] _customInfo['maxEvents'] = 10 _customInfo['reportEvery'] = 10 _customInfo[ 'globalTag'] = "106X_upgrade2021_realistic_v5" #"auto:phase1_2021_realistic"#106X_mc2017_realistic_v3" _customInfo['inputFile'] = [options.inputfile] _customInfo['realData'] = False from HLTrigger.Configuration.customizeHLTforALL import customizeHLTforAll process = customizeHLTforAll(process, "GRun", _customInfo) from HLTrigger.Configuration.customizeHLTforCMSSW import customizeHLTforCMSSW process = customizeHLTforCMSSW(process, "GRun") process.load('FWCore/MessageService/MessageLogger_cfi') keep_msgs = ['TRTClient'] for msg in keep_msgs: process.MessageLogger.categories.append(msg) setattr( process.MessageLogger.cerr, msg, cms.untracked.PSet( optionalPSet=cms.untracked.bool(True), limit=cms.untracked.int32(10000000), ))
process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') # fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False ) if 'MessageLogger' in process.__dict__: process.MessageLogger.categories.append('TriggerSummaryProducerAOD') process.MessageLogger.categories.append('L1GtTrigReport') process.MessageLogger.categories.append('HLTrigReport') process.MessageLogger.categories.append('FastReport') # add specific customizations _customInfo = {} _customInfo['menuType' ]= "Fake" _customInfo['globalTags']= {} _customInfo['globalTags'][True ] = "auto:run1_hlt_Fake" _customInfo['globalTags'][False] = "auto:run1_mc_Fake" _customInfo['inputFiles']={} _customInfo['inputFiles'][True] = "file:RelVal_Raw_Fake_DATA.root" _customInfo['inputFiles'][False] = "file:RelVal_Raw_Fake_MC.root" _customInfo['maxEvents' ]= 100 _customInfo['globalTag' ]= "auto:run1_hlt_Fake" _customInfo['inputFile' ]= ['file:RelVal_Raw_Fake_DATA.root'] _customInfo['realData' ]= True from HLTrigger.Configuration.customizeHLTforALL import customizeHLTforAll process = customizeHLTforAll(process,_customInfo)
process.DQMOutput = cms.EndPath( process.dqmOutput ) # add specific customizations _customInfo = {} _customInfo['menuType' ]= "GRun" _customInfo['globalTags']= {} _customInfo['globalTags'][True ] = "auto:run2_hlt_GRun" _customInfo['globalTags'][False] = "auto:run2_mc_GRun" _customInfo['inputFiles']={} _customInfo['inputFiles'][True] = "file:RelVal_Raw_GRun_DATA.root" _customInfo['inputFiles'][False] = "file:RelVal_Raw_GRun_MC.root" _customInfo['maxEvents' ]= 100 _customInfo['globalTag' ]= "100X_dataRun2_v1" _customInfo['inputFile' ]= ['root://xrootd.cmsaf.mit.edu//store/hidata/XeXeRun2017/HIMinimumBias8/RAW/v1/000/304/898/00000/A0E925FB-89AF-E711-8C82-02163E0144E9.root'] _customInfo['realData' ]= True from HLTrigger.Configuration.customizeHLTforALL import customizeHLTforAll process = customizeHLTforAll(process,"GRun",_customInfo) from HLTrigger.Configuration.customizeHLTforCMSSW import customizeHLTforCMSSW process = customizeHLTforCMSSW(process,"GRun") # Eras-based customisations from HLTrigger.Configuration.Eras import modifyHLTforEras modifyHLTforEras(process) #User-defined customization functions from FWCore.ParameterSet.MassReplace import massReplaceInputTag process = massReplaceInputTag(process)