Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 from DQMServices.Core.DQM_cfg import *
00004
00005 DQM.collectorHost = 'lxplus444.cern.ch'
00006 DQM.collectorPort = 9190
00007
00008 from DQMServices.Components.DQMEnvironment_cfi import *
00009
00010 dqmSaver.convention = 'Online'
00011 dqmSaver.referenceHandling = 'all'
00012 dqmSaver.dirName = '.'
00013 dqmSaver.producer = 'DQM'
00014 dqmSaver.saveByTime = -1
00015 dqmSaver.saveByLumiSection = -1
00016 dqmSaver.saveByMinute = 8
00017 dqmSaver.saveByRun = 1
00018 dqmSaver.saveAtJobEnd = True
00019
00020
00021
00022 import sys
00023 from FWCore.ParameterSet.VarParsing import VarParsing
00024 from DQM.Integration.test.dqmPythonTypes import *
00025
00026 runParameters = VarParsing ('analysis')
00027 runParameters.register ('runtype',
00028 'pp_run',
00029 VarParsing.multiplicity.singleton,
00030 VarParsing.varType.string,
00031 "Type of Run in CMS")
00032
00033 runParameters.register ('runkey',
00034 'pp_run',
00035 VarParsing.multiplicity.singleton,
00036 VarParsing.varType.string,
00037 "Run Keys of CMS")
00038
00039
00040 if len(sys.argv) > 1:
00041 runParameters.parseArguments()
00042
00043 runType = RunType(['pp_run','cosmic_run','hi_run','hpu_run'])
00044 if not runParameters.runkey.strip():
00045 runParameters.runkey = 'pp_run'
00046
00047 runType.setRunType(runParameters.runkey.strip())
00048
00049