File indexing completed on 2024-04-06 12:07:46
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from DQMServices.Core.DQM_cfg import *
0004
0005 from DQM.L1TMonitor.environment_file_cfi import *
0006
0007
0008
0009 import sys
0010 from FWCore.ParameterSet.VarParsing import VarParsing
0011 from DQM.Integration.test.dqmPythonTypes import *
0012
0013 runParameters = VarParsing ('analysis')
0014 runParameters.register ('runtype',
0015 'pp_run',
0016 VarParsing.multiplicity.singleton,
0017 VarParsing.varType.string,
0018 "Type of Run in CMS")
0019
0020 runParameters.register ('runkey',
0021 'pp_run',
0022 VarParsing.multiplicity.singleton,
0023 VarParsing.varType.string,
0024 "Run Keys of CMS")
0025
0026
0027 if len(sys.argv) > 1:
0028 runParameters.parseArguments()
0029
0030 runType = RunType(['pp_run','cosmic_run','hi_run','hpu_run'])
0031 if not runParameters.runkey.strip():
0032 runParameters.runkey = 'pp_run'
0033
0034 runType.setRunType(runParameters.runkey.strip())
0035
0036