Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-22 06:24:59

0001 #from __future__ import print_function
0002 #from __future__ import absolute_import
0003 import FWCore.ParameterSet.Config as cms
0004 import FWCore.ParameterSet.VarParsing as VarParsing
0005 from FWCore.ParameterSet.Types import PSet
0006 
0007 process = cms.Process("DQMTEST")
0008 
0009 options = VarParsing.VarParsing('analysis')
0010 
0011 options.register('runNumber',
0012                  100101,
0013                  VarParsing.VarParsing.multiplicity.singleton,
0014                  VarParsing.VarParsing.varType.int,
0015                  "Run number.")
0016 
0017 options.register('runInputDir',
0018                  '/tmp',
0019                  VarParsing.VarParsing.multiplicity.singleton,
0020                  VarParsing.VarParsing.varType.string,
0021                  "Directory where the DQM files will appear.")
0022 
0023 options.parseArguments()
0024 
0025 
0026 process.MessageLogger = cms.Service("MessageLogger",
0027                                     destinations = cms.untracked.vstring('cout'),
0028                                     cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'))
0029                                     )
0030 process.source = cms.Source("DQMStreamerReader",
0031         runNumber = cms.untracked.uint32(options.runNumber),
0032         runInputDir = cms.untracked.string(options.runInputDir),
0033         streamLabel = cms.untracked.string('streamDQM'),
0034         scanOnce = cms.untracked.bool(True),
0035         minEventsPerLumi = cms.untracked.int32(1),
0036         delayMillis = cms.untracked.uint32(500),
0037         nextLumiTimeoutMillis = cms.untracked.int32(0),
0038         skipFirstLumis = cms.untracked.bool(False),
0039         deleteDatFiles = cms.untracked.bool(False),
0040         endOfRunKills  = cms.untracked.bool(False),
0041         inputFileTransitionsEachEvent = cms.untracked.bool(False),
0042         SelectEvents = cms.untracked.vstring("HLT*Mu*","HLT_*Physics*")
0043 )
0044