1 from __future__
import print_function
2 from __future__
import absolute_import
3 import FWCore.ParameterSet.Config
as cms
4 import FWCore.ParameterSet.VarParsing
as VarParsing
7 from .dqmPythonTypes
import *
11 options.register(
'runNumber',
13 VarParsing.VarParsing.multiplicity.singleton,
14 VarParsing.VarParsing.varType.int,
17 options.register(
'datafnPosition',
19 VarParsing.VarParsing.multiplicity.singleton,
20 VarParsing.VarParsing.varType.int,
21 "Data filename position in the positional arguments array 'data' in json file.")
23 options.register(
'runInputDir',
25 VarParsing.VarParsing.multiplicity.singleton,
26 VarParsing.VarParsing.varType.string,
27 "Directory where the DQM files will appear.")
29 options.register(
'scanOnce',
31 VarParsing.VarParsing.multiplicity.singleton,
32 VarParsing.VarParsing.varType.bool,
33 "Don't repeat file scans: use what was found during the initial scan. EOR file is ignored and the state is set to 'past end of run'.")
35 options.register(
'skipFirstLumis',
37 VarParsing.VarParsing.multiplicity.singleton,
38 VarParsing.VarParsing.varType.bool,
39 "Skip (and ignore the minEventsPerLumi parameter) for the files which have been available at the beginning of the processing.")
41 options.register(
'BeamSplashRun',
43 VarParsing.VarParsing.multiplicity.singleton,
44 VarParsing.VarParsing.varType.bool,
45 "Set client source settings for beam SPLASH run")
49 options.register(
'runkey',
51 VarParsing.VarParsing.multiplicity.singleton,
52 VarParsing.VarParsing.varType.string,
57 options.register(
'runUniqueKey',
59 VarParsing.VarParsing.multiplicity.singleton,
60 VarParsing.VarParsing.varType.string,
61 "Unique run key from RCMS for Frontier")
63 options.parseArguments()
70 if not options.runkey.strip():
71 options.runkey =
'pp_run' 73 runType.setRunType(options.runkey.strip())
76 nextLumiTimeoutMillis = 120000
81 nextLumiTimeoutMillis = 0
83 source = cms.Source(
"DQMProtobufReader",
84 runNumber = cms.untracked.uint32(options.runNumber),
85 runInputDir = cms.untracked.string(options.runInputDir),
86 streamLabel = cms.untracked.string(
'streamDQMHistograms'),
87 scanOnce = cms.untracked.bool(options.scanOnce),
88 datafnPosition = cms.untracked.uint32(options.datafnPosition),
89 delayMillis = cms.untracked.uint32(500),
90 nextLumiTimeoutMillis = cms.untracked.int32(nextLumiTimeoutMillis),
91 skipFirstLumis = cms.untracked.bool(options.skipFirstLumis),
92 deleteDatFiles = cms.untracked.bool(
False),
93 loadFiles = cms.untracked.bool(
True),
94 endOfRunKills = cms.untracked.bool(endOfRunKills),
100 source.nextLumiTimeoutMillis = 15000
104 print(
"Initial Source settings:", source)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def set_BeamSplashRun_settings(source)