]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/SPECTRA/PiKaPr/TOF/pPb502/macros/TOFpid.sh
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / PiKaPr / TOF / pPb502 / macros / TOFpid.sh
CommitLineData
59e49925 1#! /bin/bash
2
3if [ "$1" = "" ]; then
4 echo "filename not specified"
5 exit 1
6fi
7
8if [ "$2" = "" ]; then
9 nevents=kMaxInt
10else
11 nevents=$2
12fi
13
14echo "*********************************************"
15echo " make libs"
16echo "*********************************************"
17
18aliroot -b -q MakeLibs.C &> makelibs.log
19
20echo "*********************************************"
21echo " starting TOFpid on $1"
22echo " run over $nevents events"
23echo "*********************************************"
24
25for (( icharge = 0; icharge < 2; icharge++ )); do
26 for (( ipart = 2; ipart < 5; ipart++ )); do
27 echo aliroot -b -q "TOFpid.C(\"$1\", $ipart, $icharge, $ipart, kTRUE, kFALSE, kFALSE, -2., 2., $nevents)"
28 aliroot -b -q "TOFpid.C(\"$1\", $ipart, $icharge, $ipart, kTRUE, kFALSE, kFALSE, -2., 2., $nevents)" &> "TOFpid.$ipart.$icharge.$ipart.$1.log" &
29
30# echo aliroot -b -q "TOFpid.C(\"$1\", $ipart, $icharge, $ipart, kFALSE, kFALSE, kFALSE, -2., 2., $nevents)"
31# aliroot -b -q "TOFpid.C(\"$1\", $ipart, $icharge, $ipart, kFALSE, kFALSE, kFALSE, -2., 2., $nevents)" &> "TOFpid.norapiditycut.$ipart.$icharge.$ipart.$1.log" &
32
33 done
34done
35
36echo "*********************************************"
37echo " TOFpid processes now running in background"
38echo "*********************************************"
39