Main Page
Namespaces
Classes
Package Documentation
DPGAnalysis
Skims
python
runonSMtunnel.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
from
__future__
import
print_function
3
import
os,string,sys,commands,time
4
5
# template file to be used
6
MODFILE=
"reco_skim_cfg_mod.py"
7
8
# the output file is PREFIX_date.root
9
PREFIX=
"SkimSM"
10
11
# it produces a file every NUEVENTS events
12
NUMEVENTS=
"-1"
13
14
while
True
:
15
DATE=
str
(
int
(time.time()))
16
print
(
"Suffix:"
+DATE)
17
FILENAME=PREFIX+
"_"
+DATE+
"_cfg.py"
18
FILELOG=PREFIX+
"_"
+DATE+
".log"
19
COMMAND=
"sed 's/SUFFIX/"
+DATE+
"/;s/NUMEVENTS/"
+NUMEVENTS+
"/' "
+MODFILE+
" > "
+FILENAME
20
os.system(COMMAND)
21
print
(
"Created: "
+FILENAME+
" . Running cmsRun now and logging in "
+FILELOG)
22
os.system(
"cmsRun "
+FILENAME+
" 2>&1 | tee "
+FILELOG+
" | grep --line-buffered -e \"Begin processing\" -e \"BeamSplash\""
)
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition:
JobReport.cc:65
createfilelist.int
int
Definition:
createfilelist.py:10
str
#define str(s)
Definition:
TestProcessor.cc:47
Generated for CMSSW Reference Manual by
1.8.11