Newer
Older
TB_Chris / Kepler / Scripts / .svn / text-base / UTDaemonScript.sh.svn-base
  1. #!/bin/bash
  2. . /etc/bashrc
  3.  
  4. shopt -s expand_aliases
  5.  
  6. . SetupProject.sh Kepler v3r0
  7.  
  8. EOS_PATH=eos/lhcb/testbeam/ut/TelescopeData/Sept2015/
  9. EOS_CMD=/afs/cern.ch/project/eos/installation/0.3.15/bin/eos.select
  10. KEPLER=$KEPLERROOT/Scripts/Kepler
  11. OPT_PATH=$KEPLERROOT/options/
  12. OutputFolder=$EOS_PATH/RootFiles/Run$1/
  13. hist=$(pwd)/Kepler-histos.root
  14. tree=$(pwd)/Kepler-tuple.root
  15.  
  16. if [ -n "$2" ] ; then
  17. echo "Running alignment of run $1 ($2)"
  18. AlignmentFile=eos/lhcb/user/t/tevans/Alignment/Nov2015/Default_$2.dat
  19. $KEPLER $1 -i $EOS_PATH/RawData/Run$1/ -a $AlignmentFile -o $OPT_PATH/align.py -h $hist -t $tree | tee Alignment_Run$1.std.out
  20. # $EOS_CMD cp $(pwd)/Alignment_out.dat $EOS_PATH/RootFiles/Run$1/Conditions/Alignment$1mille.dat
  21. # $EOS_CMD cp $(pwd)/Alignment_Run$1.std.out $EOS_PATH/RootFiles/Run$1/Output/Alignment_Run$1.std.out
  22. fi
  23.  
  24. $KEPLER $1 -i $EOS_PATH/RawData/Run$1/ -a $EOS_PATH/RootFiles/Run$1/Conditions/Alignment$1mille.dat -o $OPT_PATH/tuple.py -h $hist -t $tree | tee Batch_Run$1.std.out
  25. #$EOS_CMD cp $(pwd)/Batch_Run$1.std.out $OutputFolder/Output/Batch_Run$1.std.out
  26. #$EOS_CMD cp $(pwd)/Kepler-histos.root $OutputFolder/Output/Kepler-histos.root
  27. #$EOS_CMD cp $(pwd)/Kepler-tuple.root $OutputFolder/Output/Kepler-tuple.root