Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:30

0001 #!/bin/sh
0002 #trap -p "echo got a signal" SIGABRT SIGBUS SIGILL SIGINT SIGKILL SIGQUIT SIGSEGV SIGSTOP 
0003 echo preparing environment
0004 WORKDIR=`pwd`
0005 cd $2
0006 eval `scramv1 runtime -sh`
0007 cd $WORKDIR
0008 export SCRATCH=`pwd`
0009 cp $2/finedelayAnalysis_cfg.template finedelayAnalysis_cfg.py
0010 echo -n 's/INPUTFILE/' > theinput
0011 echo -n $1 | sed 's/\//\\\//g' >> theinput
0012 echo '/g' >> theinput
0013 sed -i -f theinput finedelayAnalysis_cfg.py 
0014 rm theinput
0015 echo using config file:
0016 cat finedelayAnalysis_cfg.py
0017 echo running in $SCRATCH
0018 set +e 
0019 cmsRun finedelayAnalysis_cfg.py || true
0020 echo copying back result
0021 cp SiStripCommissioning*.root $2
0022 set -e