Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:12

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("HLTMuonOfflineAnalysis")
0004 
0005 process.load("HLTriggerOffline.Muon.HLTMuonVal_cff")
0006 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0007 
0008 ##############################################################################
0009 ##### Templates to change parameters in hltMuonValidator #####################
0010 # process.hltMuonValidator.hltPathsToCheck = ["HLT_IsoMu3"]
0011 # process.hltMuonValidator.genMuonCut = "abs(mother.pdgId) == 24"
0012 # process.hltMuonValidator.recMuonCut = "isGlobalMuon && eta < 1.2"
0013 ##############################################################################
0014 
0015 hltProcessName = "HLT"
0016 process.relvalMuonBits.TriggerResultsTag.setProcessName(hltProcessName)
0017 process.hltMuonValidator.hltProcessName = hltProcessName
0018 
0019 process.load("Configuration.StandardSequences.Reconstruction_cff")
0020 process.load("Configuration.StandardSequences.MagneticField_cff")
0021 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0022 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0023 from Configuration.AlCa.autoCond import autoCond
0024 process.GlobalTag.globaltag = cms.string(autoCond['startup'])
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(-1)
0028 )
0029 
0030 process.source = cms.Source("PoolSource",
0031     fileNames = cms.untracked.vstring(
0032         'file:/u0/zmm314debug.root'
0033     ),
0034     secondaryFileNames = cms.untracked.vstring(
0035 
0036     )
0037 )
0038 
0039 process.DQMStore = cms.Service("DQMStore")
0040 
0041 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0042 process.MessageLogger.cerr.FwkReport.reportEvery = 2000
0043 
0044 process.MessageLogger.debugModules += ['HLTMuonValidator']
0045 process.MessageLogger.files.HLTMuonValMessages = cms.untracked.PSet(
0046     threshold  = cms.untracked.string('DEBUG'),
0047     default    = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0048     HLTMuonVal = cms.untracked.PSet(limit = cms.untracked.int32(1000))
0049     )
0050 
0051 process.out = cms.OutputModule("PoolOutputModule",
0052     outputCommands = cms.untracked.vstring(
0053         'drop *', 
0054         'keep *_MEtoEDMConverter_*_HLTMuonOfflineAnalysis'),
0055     fileName = cms.untracked.string('hltMuonValidator.root')
0056 )
0057 
0058 process.analyzerpath = cms.Path(
0059     process.hltMuonValidator *
0060     process.relvalMuonBits *
0061     process.MEtoEDMConverter
0062 )
0063 
0064 process.outpath = cms.EndPath(process.out)