]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/fastSimul/simul.sh
AliCaloTrackReader, AliAnaCalorimterQA, AliAnaPi0: Leak with PHOS rotation matrices...
[u/mrichter/AliRoot.git] / TPC / fastSimul / simul.sh
1 #!/bin/sh
2
3 # 1 argument      - the path to the environment setup
4 # 2 argument      - the job ID
5 # 3 argument      - number of events in the file
6 # 4 argument      - output path
7
8 # Example
9 # myvar=0
10 # $ALICE_ROOT/TPC/fastSimul/simul.sh  /u/miranov/.balice64HEAD0108 $myvar 1000 `pwd`
11 # while [ $myvar -ne 100 ] ; do bsub  do something ;  myvar=$(( $myvar + 1 )) ; echo $myvar ; done
12 #
13 # 1 SETUP given ROOT and ALIROOT
14 #
15 echo   $1
16 source $1
17 echo  $ROOTSYS
18 which root.exe
19 which aliroot
20 #
21 #  make directory
22 #
23
24 cd $4
25 mkdir $2
26 cd $2
27 cp ~/rootlogon.C .
28 echo Job ID  $2
29 echo
30 echo PWD `pwd`
31
32 command aliroot  -q -b  "$ALICE_ROOT/TPC/fastSimul/simul.C($3)"