1 import FWCore.ParameterSet.Config
as cms
2 import FWCore.ParameterSet.VarParsing
as VarParsing
5 from dqmPythonTypes
import *
9 options.register(
'runNumber',
11 VarParsing.VarParsing.multiplicity.singleton,
12 VarParsing.VarParsing.varType.int,
15 options.register(
'runInputDir',
17 VarParsing.VarParsing.multiplicity.singleton,
18 VarParsing.VarParsing.varType.string,
19 "Directory where the DQM files will appear.")
21 options.register(
'skipFirstLumis',
23 VarParsing.VarParsing.multiplicity.singleton,
24 VarParsing.VarParsing.varType.bool,
25 "Skip (and ignore the minEventsPerLumi parameter) for the files which have been available at the begining of the processing. ")
29 options.register (
'runkey',
31 VarParsing.VarParsing.multiplicity.singleton,
32 VarParsing.VarParsing.varType.string,
35 options.parseArguments()
42 if not options.runkey.strip():
43 options.runkey =
'pp_run'
45 runType.setRunType(options.runkey.strip())
48 source = cms.Source(
"DQMProtobufReader",
49 runNumber = cms.untracked.uint32(options.runNumber),
50 runInputDir = cms.untracked.string(options.runInputDir),
52 streamLabel = cms.untracked.string(
'streamDQMHistograms'),
54 delayMillis = cms.untracked.uint32(500),
55 nextLumiTimeoutMillis = cms.untracked.int32(120000),
56 skipFirstLumis = cms.untracked.bool(options.skipFirstLumis),
57 deleteDatFiles = cms.untracked.bool(
False),
58 endOfRunKills = cms.untracked.bool(
True),