Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:10:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DQM")
0004 
0005 # DQM service
0006 process.load("DQMServices.Core.DQMStore_cfi")
0007 
0008 # MessageLogger
0009 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0010 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0011 #process.MessageLogger.cerr.INFO.limit = 1000
0012 import FWCore.ParameterSet.VarParsing as VarParsing
0013 options = VarParsing.VarParsing ('analysis') 
0014 options.register('dqmTag','/HLT/TrigObjTnpSource/All',options.multiplicity.singleton,options.varType.string," whether we are running on miniAOD or not")
0015 options.parseArguments()
0016 
0017 
0018 process.options = cms.untracked.PSet(
0019     wantSummary = cms.untracked.bool( True ),
0020     numberOfThreads = cms.untracked.uint32( 4 ),
0021     numberOfStreams = cms.untracked.uint32( 4 ),
0022 )
0023 
0024 # Source
0025 process.source = cms.Source("PoolSource",
0026   fileNames = cms.untracked.vstring(options.inputFiles)
0027 )
0028 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(options.maxEvents) )
0029 
0030 process.load("DQM.HLTEvF.trigObjTnPSource_cfi")
0031 
0032 process.load('DQMServices.Components.DQMFileSaver_cfi')
0033 process.dqmSaver.workflow = options.dqmTag
0034 
0035 process.endp = cms.EndPath( process.trigObjTnPSource + process.dqmSaver )