CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DQM/L1TMonitor/python/environment_file_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 from DQMServices.Core.DQM_cfg import *
00004 
00005 from DQM.L1TMonitor.environment_file_cfi import *
00006 
00007 
00008 #RunType, and Runkey selection from RCMS
00009 import sys
00010 from FWCore.ParameterSet.VarParsing import VarParsing
00011 from DQM.Integration.test.dqmPythonTypes import *
00012 
00013 runParameters = VarParsing ('analysis')
00014 runParameters.register ('runtype',
00015   'pp_run',
00016   VarParsing.multiplicity.singleton,
00017   VarParsing.varType.string,
00018   "Type of Run in CMS")
00019 
00020 runParameters.register ('runkey',
00021   'pp_run',
00022   VarParsing.multiplicity.singleton,
00023   VarParsing.varType.string,
00024   "Run Keys of CMS")
00025 
00026 # Fix to allow scram to compile
00027 if len(sys.argv) > 1:
00028   runParameters.parseArguments()
00029 
00030 runType = RunType(['pp_run','cosmic_run','hi_run','hpu_run'])
00031 if not runParameters.runkey.strip():
00032   runParameters.runkey = 'pp_run'
00033 
00034 runType.setRunType(runParameters.runkey.strip())
00035 
00036