CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMProtobufReader_cff.py
Go to the documentation of this file.
2 import FWCore.ParameterSet.VarParsing as VarParsing
3 
4 options = VarParsing.VarParsing('analysis')
5 
6 options.register('runNumber',
7  100, # default value
8  VarParsing.VarParsing.multiplicity.singleton,
9  VarParsing.VarParsing.varType.int,
10  "Run number.")
11 
12 options.register('runInputDir',
13  '/build1/micius/OnlineDQM_sample/', # default value
14  VarParsing.VarParsing.multiplicity.singleton,
15  VarParsing.VarParsing.varType.string,
16  "Directory where the DQM files will appear.")
17 
18 options.register('streamLabel',
19  '_streamA', # default value
20  VarParsing.VarParsing.multiplicity.singleton,
21  VarParsing.VarParsing.varType.string,
22  "Stream label used in json discovery.")
23 
24 options.register('delayMillis',
25  500, # default value
26  VarParsing.VarParsing.multiplicity.singleton,
27  VarParsing.VarParsing.varType.int,
28  "Number of milliseconds to wait between file checks.")
29 
30 options.register('skipFirstLumis',
31  False, # default value
32  VarParsing.VarParsing.multiplicity.singleton,
33  VarParsing.VarParsing.varType.bool,
34  "Skip (and ignore the minEventsPerLumi parameter) for the files which have been available at the begining of the processing. ")
35 
36 options.register('deleteDatFiles',
37  False, # default value
38  VarParsing.VarParsing.multiplicity.singleton,
39  VarParsing.VarParsing.varType.bool,
40  "Delete data files after they have been closed, in order to save disk space.")
41 
42 options.register('endOfRunKills',
43  False, # default value
44  VarParsing.VarParsing.multiplicity.singleton,
45  VarParsing.VarParsing.varType.bool,
46  "Kill the processing as soon as the end-of-run file appears, even if there are/will be unprocessed lumisections.")
47 
48 options.parseArguments()
49 
50 # Input source
51 DQMProtobufReader = cms.Source("DQMProtobufReader",
52  runNumber = cms.untracked.uint32(options.runNumber),
53  runInputDir = cms.untracked.string(options.runInputDir),
54  streamLabel = cms.untracked.string(options.streamLabel),
55 
56  delayMillis = cms.untracked.uint32(options.delayMillis),
57  skipFirstLumis = cms.untracked.bool(options.skipFirstLumis),
58  deleteDatFiles = cms.untracked.bool(options.deleteDatFiles),
59  endOfRunKills = cms.untracked.bool(options.endOfRunKills),
60 )