2 import FWCore.ParameterSet.VarParsing
as VarParsing
6 options.register(
'runNumber',
8 VarParsing.VarParsing.multiplicity.singleton,
9 VarParsing.VarParsing.varType.int,
12 options.register(
'runInputDir',
13 '/build1/micius/OnlineDQM_sample/',
14 VarParsing.VarParsing.multiplicity.singleton,
15 VarParsing.VarParsing.varType.string,
16 "Directory where the DQM files will appear.")
18 options.register(
'streamLabel',
20 VarParsing.VarParsing.multiplicity.singleton,
21 VarParsing.VarParsing.varType.string,
22 "Stream label used in json discovery.")
24 options.register(
'minEventsPerLumi',
26 VarParsing.VarParsing.multiplicity.singleton,
27 VarParsing.VarParsing.varType.int,
28 "Minimum number of events to process per lumisection.")
30 options.register(
'delayMillis',
32 VarParsing.VarParsing.multiplicity.singleton,
33 VarParsing.VarParsing.varType.int,
34 "Number of milliseconds to wait between file checks.")
36 options.register(
'nextLumiTimeoutMillis',
38 VarParsing.VarParsing.multiplicity.singleton,
39 VarParsing.VarParsing.varType.int,
40 "Number of milliseconds to wait before switching to the next lumi section if the current is missing, -1 to disable.")
42 options.register(
'skipFirstLumis',
44 VarParsing.VarParsing.multiplicity.singleton,
45 VarParsing.VarParsing.varType.bool,
46 "Skip (and ignore the minEventsPerLumi parameter) for the files which have been available at the begining of the processing. ")
48 options.register(
'deleteDatFiles',
50 VarParsing.VarParsing.multiplicity.singleton,
51 VarParsing.VarParsing.varType.bool,
52 "Delete data files after they have been closed, in order to save disk space.")
54 options.register(
'endOfRunKills',
56 VarParsing.VarParsing.multiplicity.singleton,
57 VarParsing.VarParsing.varType.bool,
58 "Kill the processing as soon as the end-of-run file appears, even if there are/will be unprocessed lumisections.")
60 options.parseArguments()
63 DQMStreamerReader = cms.Source(
"DQMStreamerReader",
64 SelectEvents = cms.untracked.vstring(
"*"),
65 runNumber = cms.untracked.uint32(options.runNumber),
66 runInputDir = cms.untracked.string(options.runInputDir),
67 streamLabel = cms.untracked.string(options.streamLabel),
69 minEventsPerLumi = cms.untracked.int32(options.minEventsPerLumi),
70 delayMillis = cms.untracked.uint32(options.delayMillis),
71 nextLumiTimeoutMillis = cms.untracked.int32(options.nextLumiTimeoutMillis),
72 skipFirstLumis = cms.untracked.bool(options.skipFirstLumis),
73 deleteDatFiles = cms.untracked.bool(options.deleteDatFiles),
74 endOfRunKills = cms.untracked.bool(options.endOfRunKills),