-
Notifications
You must be signed in to change notification settings - Fork 18
/
runSCAnalyzer.py
23 lines (20 loc) · 920 Bytes
/
runSCAnalyzer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
cfg='RecHitAnalyzer/python/SCAnalyzer_cfg.py'
#inputFiles_='file:../step_full.root'
inputFiles_='file:/eos/uscms/store/user/mba2012/FEVTDEBUG/h24gamma_1j_1M_100MeV_noPU_FEVTDEBUG/180109_233954/0000/step_full_1.root'
maxEvents_=-1
skipEvents_=0
#outputFile_='output.root'
inputTag=inputFiles_.strip('file:').strip('_FEVTDEBUG.root')
inputTag='TEST'
#cmd="cmsRun %s inputFiles=%s maxEvents=%d skipEvents=%d outputFile=%s"%(cfg,inputFiles_,maxEvents_,skipEvents_,outputFile_)
#for ievt in range(1):
#if not os.path.isdir(inputTag):
# os.system('mkdir %s'%(inputTag))
#cmd="cmsRun %s inputFiles=%s maxEvents=%d skipEvents=%d"%(cfg,inputFiles_,maxEvents_,ievt)
cmd="cmsRun %s inputFiles=%s maxEvents=%d skipEvents=%d"%(cfg,inputFiles_,maxEvents_,skipEvents_)
print '%s'%cmd
os.system(cmd)
#os.system('mv c*.eps %s/'%(inputTag))
# os.system('mv cEB*_%d.eps %s/'%(ievt+1,inputTag))
#os.system('scram b -j8')