CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
environment_file_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQM_cfg import *
4 
6 
7 
8 #RunType, and Runkey selection from RCMS
9 import sys
10 from FWCore.ParameterSet.VarParsing import VarParsing
12 
13 runParameters = VarParsing ('analysis')
14 runParameters.register ('runtype',
15  'pp_run',
16  VarParsing.multiplicity.singleton,
17  VarParsing.varType.string,
18  "Type of Run in CMS")
19 
20 runParameters.register ('runkey',
21  'pp_run',
22  VarParsing.multiplicity.singleton,
23  VarParsing.varType.string,
24  "Run Keys of CMS")
25 
26 # Fix to allow scram to compile
27 if len(sys.argv) > 1:
28  runParameters.parseArguments()
29 
30 runType = RunType(['pp_run','cosmic_run','hi_run','hpu_run'])
31 if not runParameters.runkey.strip():
32  runParameters.runkey = 'pp_run'
33 
34 runType.setRunType(runParameters.runkey.strip())
35 
36 
Output File Configuration.