Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import optparse
0002 import os
0003 
0004 usage="--list"
0005 parser = optparse.OptionParser(usage)
0006 parser.add_option("--GT")
0007 parser.add_option("--TLR",default="--customise Configuration/DataProcessing/RecoTLR")
0008 parser.add_option("--options",default="")
0009 parser.add_option("--output",default="RECO,AOD,DQM")
0010 parser.add_option("--rel",default="39X")
0011 
0012 (options,args)=parser.parse_args()
0013 
0014 com='cmsDriver.py reco -s RAW2DIGI,L1Reco,RECO%s,DQM%s  --data --magField AutoFromDBCurrent --scenario %s --datatier %s --eventcontent %s %s%s --no_exec --python_filename=rereco_%s%s.py --conditions %s '+options.options
0015 
0016 #collision config no Alca
0017 os.system(com%('','','pp',options.output,options.output,options.TLR,'.customisePPData','','pp',options.GT))
0018 
0019 #cosmics config without Alca
0020 os.system(com%('','','cosmics',options.output,options.output,options.TLR,'.customiseCosmicData','','cosmics',options.GT))
0021 
0022 from Configuration.AlCa.autoAlca import autoAlca
0023 for PD in autoAlca:
0024     recoSpec=''
0025     scenario='pp'
0026     customise='.customisePPData'
0027     output=options.output
0028     if PD=='Cosmics':
0029         scenario='cosmics'
0030         customise='.customiseCosmicData'
0031         output="RECO,DQM"
0032     if PD=='HcalNZS':
0033         recoSpec=':reconstruction_HcalNZS'
0034         output="RECO,DQM"
0035 
0036     os.system(com%(recoSpec,',ALCA:'+autoAlca[PD],scenario,output,output,options.TLR,customise,PD+'_',scenario,options.GT))
0037 
0038