test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
fileinputsource_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 source = cms.Source("PoolSource",
4  fileNames = cms.untracked.vstring(
5  "file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/DQMTest/MinimumBias__RAW__v1__165633__1CC420EE-B686-E011-A788-0030487CD6E8.root",
6 # "/store/data/Commissioning2014/Cosmics/RAW//v3/000/224/380/00000/E05943D1-1227-E411-BB8E-02163E00F0C4.root"
7 # "/store/data/Commissioning2014/Cosmics/RAW/v3/000/224/380/00000/68FDADE5-1227-E411-8AA6-02163E00A10C.root"
8  )
9 )
10 maxEvents = cms.untracked.PSet(
11  input = cms.untracked.int32(-1)
12 # input = cms.untracked.int32(1000)
13 )
14 
15 # Parameters for runType
16 import FWCore.ParameterSet.VarParsing as VarParsing
17 import sys
18 from dqmPythonTypes import *
19 
20 options = VarParsing.VarParsing('analysis')
21 
22 options.register ('runkey',
23  'cosmic_run',
24  VarParsing.VarParsing.multiplicity.singleton,
25  VarParsing.VarParsing.varType.string,
26  "Run Keys of CMS")
27 
28 options.parseArguments()
29 
30 # Fix to allow scram to compile
31 #if len(sys.argv) > 1:
32 # options.parseArguments()
33 
34 runType = RunType()
35 if not options.runkey.strip():
36  options.runkey = 'pp_run'
37 
38 runType.setRunType(options.runkey.strip())