Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:45

0001 #!/bin/tcsh 
0002 
0003 # Save current dir on lxbatch machine
0004 setenv LXBATCH_DIR `pwd`
0005 setenv CMSSW_DIR   TEMPLATECMSDIR
0006 setenv OUTPUT_DIR  TEMPLATEOUTDIR
0007 setenv jobidx      JOBINDEX 
0008 
0009 # Set scram runtime environment
0010 cd $CMSSW_DIR
0011 cmsenv
0012 cd $LXBATCH_DIR
0013 
0014 # Create the cmsswrc file for the current job
0015 cp ${OUTPUT_DIR}/../MuScleFit_cfg.py .
0016 cp ${OUTPUT_DIR}/TreeSplitter_${jobidx}_cfg.py .
0017 rfcp /castor/cern.ch/user/t/trocino/MuScleFit/tree_Summer10JPsiPromptSTARTUP.root .
0018 rfcp /castor/cern.ch/user/t/trocino/MuScleFit/Probs_merge.root .
0019 
0020 date
0021 echo "cmsRun TreeSplitter_${jobidx}_cfg.py"
0022 cmsRun TreeSplitter_${jobidx}_cfg.py > log1.log
0023 echo "cmsRun MuScleFit_cfg.py"
0024 cmsRun MuScleFit_cfg.py > log2.log
0025 
0026 date
0027 echo "Content of working directory is: "
0028 \ls -lrt
0029 
0030 echo "scp FitParameters.txt ${OUTPUT_DIR}/FitParameters_${jobidx}.txt"
0031 scp FitParameters.txt ${OUTPUT_DIR}/FitParameters_${jobidx}.txt
0032 echo "rm ${OUTPUT_DIR}/TreeSplitter_${jobidx}_cfg.py"
0033 rm ${OUTPUT_DIR}/TreeSplitter_${jobidx}_cfg.py
0034 
0035 exit 0