Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:48

0001 from __future__ import print_function
0002 import optparse
0003 import os
0004 
0005 usage="--list"
0006 parser = optparse.OptionParser(usage)
0007 parser.add_option("--GT")
0008 parser.add_option("--option",default="")
0009 (options,args)=parser.parse_args()
0010 
0011 from Configuration.Skimming.autoSkim import autoSkim
0012 for PD in autoSkim:
0013     com='cmsDriver.py skim -s SKIM:%s --data --conditions %s --python_filenam skim_%s.py --magField AutoFromDBCurrent --no_exec %s'%(autoSkim[PD],options.GT,PD,options.option)            
0014     if 'cosmic' in PD.lower():
0015         com+=' --scenario cosmics'
0016     print(com)
0017     os.system(com)
0018